android-branch-deep-linking-attribution icon indicating copy to clipboard operation
android-branch-deep-linking-attribution copied to clipboard

Possible ANR during initializing session.

Open mwshubham opened this issue 5 years ago • 3 comments

Dependecy Used:

 api('io.branch.sdk.android:library:4.3.2') {
        exclude module: 'answers-shim'
    }

Stack Trace:

at android.telephony.TelephonyManager.getNetworkOperatorName (TelephonyManager.java:1537)
 at io.branch.referral.SystemObserver.getCarrier (SystemObserver.java:321)
 at io.branch.referral.DeviceInfo.maybeAddTuneFields (DeviceInfo.java:240)
 at io.branch.referral.DeviceInfo.updateRequestWithV1Params (DeviceInfo.java:98)
 at io.branch.referral.ServerRequest.setPost (ServerRequest.java:187)
 at io.branch.referral.ServerRequestInitSession.setPost (ServerRequestInitSession.java:43)
 at io.branch.referral.ServerRequestRegisterOpen.<init> (ServerRequestRegisterOpen.java:32)
 at io.branch.referral.Branch.getInstallOrOpenRequest (Branch.java:2666)
 at io.branch.referral.Branch.initializeSession (Branch.java:2566)
 at io.branch.referral.Branch.initUserSessionInternal (Branch.java:1430)
 at io.branch.referral.Branch.initSession (Branch.java:1099)

This is a sync call causing ANR. severity is low by the way. Any suggestions.

mwshubham avatar Sep 02 '20 13:09 mwshubham

Hey @mwshubham

Are you still facing this issue? Could you provide any additional information to help us reproduce? At first glance, the common denominator could be a poor internet connection.

Thanks! Justin

jf-branch avatar Oct 17 '21 08:10 jf-branch

Hi Justin, Thanks for your reply. This thread is a year old and I am not working on this project. Thus I am not able to share further details on this. Also, a Poor Internet connection should not block the application main thread, IMO.

mwshubham avatar Oct 18 '21 05:10 mwshubham