Error initializing Zoom on iOS
KawaljeetSBagga opened this issue · 4 comments
Description
I followed the steps mentioned hence I did not face any compilation errors while building my project. As soon as I try to initialize the zoom sdk using
RNZoomUsBridge.initialize(
ZOOM_APP_KEY,
ZOOM_APP_SECRET,
);
Here I am passing the SDK key and the SDK secret.
I get an error which is pasted below.
React Native version: 0.62
Steps To Reproduce
Run the project and call initialize()
Expected Results
Start the video call
Error:
2020-05-13 16:31:10.433641+0530[52547:184460] [logging] misuse at line 162157 of [378230ae7f]
2020-05-13 16:31:10.682880+0530[52547:184460] No old cache folder exist
2020-05-13 16:31:10.683385+0530[52547:184460] [logging-persist] cannot open file at line 43353 of [378230ae7f]
2020-05-13 16:31:10.683501+0530[52547:184460] [logging-persist] os_unix.c:43353: (0) open(/Users/kawaljeet.bagga/Library/Developer/CoreSimulator/Devices/E86DE76D-115F-4CD5-89BB-F4ADEEE61FFA/data/Containers/Data/Application/2DF015D8-900F-4F02-9F32-B0D07E3B6F0D/Documents/data/zoomus.db) - Undefined error: 0
2020-05-13 16:31:10.684133+0530[52547:184460] [logging-persist] cannot open file at line 43353 of [378230ae7f]
2020-05-13 16:31:10.684268+0530[52547:184460] [logging-persist] os_unix.c:43353: (0) open(/Users/kawaljeet.bagga/Library/Developer/CoreSimulator/Devices/E86DE76D-115F-4CD5-89BB-F4ADEEE61FFA/data/Containers/Data/Application/2DF015D8-900F-4F02-9F32-B0D07E3B6F0D/Documents/data/zoomus.tmp.db) - Undefined error: 0
2020-05-13 16:31:10.689185+0530[52547:184460] [logging] table gg_user_profile_enc already exists in "create table gg_user_profile_enc (email text primary key, id text, verifiedEmail integer,name text, givenName text, familyName text,picUrl text, gender text, locale text)"
2020-05-13 16:31:10.714225+0530[52547:184460] [logging] table zoom_kv already exists in "create table zoom_kv (key text, value text, section text);"
2020-05-13 16:31:10.714378+0530[52547:184460] [logging] table gg_user_profile_enc already exists in "create table gg_user_profile_enc (email text primary key, id text, verifiedEmail integer,name text, givenName text, familyName text,picUrl text, gender text, locale text)"
2020-05-13 16:31:10.714494+0530[52547:184460] [logging] table zoom_user_account_enc already exists in "create table zoom_user_account_enc (uid text, snsType integer, uname text,zoom_uid text, account_id text, role integer,credential text, credForNOS text, tokenCreateTime integer64,expireInSeconds integer, recommendEmailSubject text, recommendEmailBody text,ggAccessToken text, ggRefreshToken text, FBAccessToken text, zoomRefreshToken text, zoomEmail text, zoomPsw text,bigPicUrl text, smallPicUrl text, localPicPath text,snsID text, userType integer, accountType integer,canUpgrade integer, ssoToken text,rcAccessToken text, rcRefreshToken text, rcPhoneNumber text, rcExt text, rcEmail text,firstName text default '', lastName text default '', reserve1 text default '', reserve2 text default '',asToken text default '',IMkmsToken text default '',IMkmsRefreshToken text default '');"
2020-05-13 16:31:10.718972+0530[52547:184460] [logging] table zoom_client_action already exists in "create table zoom_client_action (id integer primary key,type integer, p1 text,p2 text, p3 text, p4 text,p5 text, timeStamp integer64 default 0);"
2020-05-13 16:31:10.721612+0530[52547:184460] [logging] table zoom_kv already exists in "create table zoom_kv (key text, value text, section text);"
2020-05-13 16:31:10.924368+0530[52547:184460] [logging] table gg_user_profile already exists in "create table gg_user_profile (email text primary key, id text, verifiedEmail integer,name text, givenName text, familyName text,picUrl text, gender text, locale text)"
2020-05-13 16:31:10.957393+0530 InfiniteMD[52547:184460] SDK LOG - Auth Requested
2020-05-13 16:31:12.538383+0530 InfiniteMD[52547:184460] SDK LOG - Auth Returned 0
2020-05-13 16:31:12.538585+0530 InfiniteMD[52547:184460] *** Assertion failure in -RCTEventEmitter sendEventWithName:body:, /Users/kawaljeet.bagga/Documents/Jeet/Prod/node_modules/react-native/React/Modules/RCTEventEmitter.m:41
@KawaljeetSBagga thanks for noticing that, the listeners were missing and iOS didn't like that. releasing a new fix to make listeners optional instead to avoid the crash.
new version should be up on npm soon
new version is up on npm. version 0.0.5 @KawaljeetSBagga
Hey @jimji1005 Thanks for the prompt reply and quick fix. I will check it and get back to you soon.
Hey @jimji1005. Thanks for the awesome package. Works flawless on both android and iOS. Cheers