telenordigital / connect-android-sdk

Android SDK for CONNECT ID
https://telenordigital.github.io/id-docs.telenordigital.com/
Other
16 stars 14 forks source link

Fatal Exception #158

Closed rashel007 closed 5 years ago

rashel007 commented 5 years ago

SDK version 1.9.4

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.c.e.a(android.net.Uri, android.os.Bundle, java.util.List)' on a null object reference at com.telenor.connect.ui.ConnectCustomTabLoginButton$1.onCustomTabsServiceConnected(Unknown Source) at android.support.customtabs.CustomTabsServiceConnection.onServiceConnected(Unknown Source) at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1473) at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1490) at android.os.Handler.handleCallback(Handler.java:754) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:163) at android.app.ActivityThread.main(ActivityThread.java:6342) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)

jorunfa commented 5 years ago

Can you check if https://github.com/telenordigital/connect-android-sdk/releases/tag/v1.9.6 resolves this problem for you?

rashel007 commented 5 years ago

It will be tough to duplicate this issue in test mode. Not all the devices or users getting this error. I will try and share.

Another issue is happening, We have implemented SMS Retriever API. So, when ever user requesting for otp verification from app and we are registering smsBroadcastReceiver. But when user receiving the otp sms, connect chrome cast tab is opening and showing this message.

screen shot 2019-03-08 at 8 57 03 pm

The device is in 3g connected.

jorunfa commented 5 years ago

I'm not sure what you mean when you say We have implemented SMS Retriever API. - SMS Retriever API is already implemented in the SDK. Are you implementing it again?

rashel007 commented 5 years ago

We have implemented SMS Retriever API for another purpose in app. Not for Connect . But the issue is, after starting the Sms listener when user gets sms for otp verification, connect sdk detect that and opens that page (screenshot i shared in previous comment) . At this time user already logged in via connect.

jorunfa commented 5 years ago

There was a bug with leaking Broadcast Receiver, which was fixed in https://github.com/telenordigital/connect-android-sdk/releases/tag/v1.9.6.

I suspect this problem might be resolved by updating to the latest version: https://github.com/telenordigital/connect-android-sdk/releases it's currently this one: https://github.com/telenordigital/connect-android-sdk/releases/tag/v1.11.3

jorunfa commented 5 years ago

Closing due to lack of response. Will reopen if new evidence is presented.