SDK Initialization failed

Hi there!,

I have downloaded sample app code for Android Platform from zoom, after this I’m adding JWT of user and trying to run sample app but when i run app i get error

below are logs from app

2022-03-10 14:13:39.926 15994-15994/us.zoom.sdkexample I/MultiDex: VM has multidex support, MultiDex support library is disabled.
2022-03-10 14:13:39.934 15994-15994/us.zoom.sdkexample E/Config:Grabber:OnePlusFontConfig: Index 0 requested, with a size of 0
2022-03-10 14:13:39.944 15994-15994/us.zoom.sdkexample E/zoom.sdkexampl: [frame_perf] perfboost open tb_ctl file failed, isApp[1], errno=No such file or directory
2022-03-10 14:13:39.944 15994-15994/us.zoom.sdkexample E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2022-03-10 14:13:40.010 15994-15994/us.zoom.sdkexample I/ZoomSDK: initialize context is us.zoom.sdksample.ui.InitAuthSDKActivity@5fa4
2022-03-10 14:13:40.040 15994-15994/us.zoom.sdkexample I/ZmUtils: isValidSignature, 308202e4308201cc020101300d06092a864886f70d010105050030373116301406035504030c0d416e64726f69642044656275673110300e060355040a0c07416e64726f6964310b30090603550406130255533020170d3232303232343034303130375a180f32303532303231373034303130375a30373116301406035504030c0d416e64726f69642044656275673110300e060355040a0c07416e64726f6964310b300906035504061302555330820122300d06092a864886f70d01010105000382010f003082010a0282010100e04c983dce79d2f3f1e20dff328c77a74184a4abedd65356bfe38114ad75b48cfd3625d9881eb2a5028527b501447fe97421f701b4d58c86fb91504a875049386be4da079f924041639effb8e1ce76f0d5f17f6405bf499c9150e4dd48c6293a109035029d6928aaa71d1ac6fb69f9ecb687dbd011becd2ba7b7d2a6c8e03ccf82ce1ca3799a03d28e94d495c95a43d320a3be6a386e45ac778d9ab44d65989b51ada6e4e4eb3efec5bfb18e5b25ff0665ec0fbb2388b85b461d71f91ed07582bc7eb046198ffc8983442e5a339fceaafd32c26a1da4cac8e1a50d7027226aa785972ff46450212e4df12e30ae5d0b59b2739e32b0849a5bd102d0c5d4923dcd0203010001300d06092a864886f70d01010505000382010100208468a023d37b74b28f6f3c3f811c7274920871d23460de72ff304acf73c71d2e9e86998f8cacbf80cb30cc90b16a21463cd88d8d1532c819d8903a922de7f88fa38566bcef7cc4bfa3e449b73b04c07ca53d64a16a3ec9b70681beb0bd4a3dded950711e969ae82e2e47275d53cc5cf14af7f1abdcc95f392f61228fac920e6250e0e8ffef8d29c9dbb4f47ce4eac6c2e69ebcd2b88302280b4a1c6fbf3e8f6f924ab557bce32b06a9122c5425a46bc102dfd2fb302209de167da3badb76c80788d9926ca0b26b20e76b55c597c0d99f0cc73104a0c6bcb31cf61df8c109af650b895fdf01d229b5fbb8e30c70f48be41e91cc41f93b407d3f1242f1091cfb
2022-03-10 14:13:40.074 15994-15994/us.zoom.sdkexample D/BluetoothAdapter: java.lang.Throwable
        at android.bluetooth.BluetoothAdapter.<init>(BluetoothAdapter.java:762)
        at android.bluetooth.BluetoothAdapter.getDefaultAdapter(BluetoothAdapter.java:735)
        at us.zoom.androidlib.util.HeadsetUtil.<init>(:88)
        at us.zoom.androidlib.util.HeadsetUtil.getInstance(:82)
        at com.zipow.videobox.VideoBoxApplication.onSDKCreated(:17)
        at com.zipow.videobox.VideoBoxApplication.initializeForSDK(:6)
        at us.zoom.sdk.ZoomSDK.initialize(:50)
        at us.zoom.sdksample.initsdk.InitAuthSDKHelper.initSDK(:48)
        at us.zoom.sdksample.ui.InitAuthSDKActivity.onCreate(:81)
        at android.app.Activity.performCreate(Activity.java:8006)
        at android.app.Activity.performCreate(Activity.java:7990)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3584)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3775)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2246)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:233)
        at android.app.ActivityThread.main(ActivityThread.java:8010)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)

I have downloaded latest version <5.9.6.4777>
please help on this

Hi @jovy,

Can you please elaborate on how you are creating the JWT you’re using with the SDK?

Thanks!

hi @jon.zoom

we have deployed zoom APIs to our server, once user connected zoom account we get JWT, that we are passing here

import requests

url = "https://zoom.us/oauth/token"

payload='grant_type=authorization_code&code=Xyac0echb6_OcVP5NTIQ3OGmdNk3ZSZ6w&redirect_uri=https%3A%2F%2Fglass.mirobotic.tech%2Fauthentication%2Fzoom'
headers = {
  'Authorization': 'Basic key',
  'Content-Type': 'application/x-www-form-urlencoded'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

using above API, we get access token, refresh token etc. this token i’m using in sample app

Hi @jovy,

The JWT you use to initialize the SDK is not available through our APIs. You need to generate it using your SDK key/secret based on the payload outline in our documentation. It looks like the endpoint you are using is the one meant for obtaining an access token through OAuth. OAuth is meant for end user authentication (i.e. if you want a Zoom user to log into Zoom to host a meeting).

Thanks!

Thanks @jon.zoom.
I will create and JWT using SDK key and secret.

Sounds good! And if you run into any other issues, please don’t hesitate to reach back out with a new topic. :slightly_smiling_face: