Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initSession() causes passcode prompt to pop up #614

Open
RedEars opened this issue Jan 21, 2020 · 0 comments
Open

initSession() causes passcode prompt to pop up #614

RedEars opened this issue Jan 21, 2020 · 0 comments

Comments

@RedEars
Copy link

RedEars commented Jan 21, 2020

Hello,

when I call initSession() function of the branch cordova plugin, I get a passcode/FaceID prompt on iOS.
Why does this happen and how to prevent that?
I am 100% sure that it is because of the branch plugin because if I comment out the initSession function on start up the prompt doesn't appear. When resuming the app (initSession is still uncommented in that part) the prompt returns.

Console Log (replaced key and bundleId for privacy reasons):

[branch.io] Branch.m(196) Log: Branch version 0.25.11 started at 2020-01-21 02:44:14 +0000.

**At this moment the passcode/faceId prompt pops up and nothing happens in console until I enter code or cancel. When I cancel or enter the code it resumes:**

THREAD WARNING: ['BranchSDK'] took '49.051025' ms. Plugin should use a background thread.
[branch.io] BNCServerInterface.m(762) Debug: URL: https://api2.branch.io/v1/open.
[branch.io] BNCServerInterface.m(766) Debug: Body: {
    "branch_key" = "mykey";
.1.3","ad_tracking_enabled":true,"brand":"Apple","retryNumber":0,"uri_scheme":"private","os":"iOS","cd":{"pn":"mybundleid","mv":"-1"},"ios_bundle_id":"mybundleid","screen_width":1125,"debug":true,"model":"iPhone10,6","os_version":"13.3","branch_key":"mykey","tracking_disabled":true,"apple_ad_attribution_checked":false}.
 [branch.io] BNCServerInterface.m(622) Error: Network service error: Error Domain=io.branch.sdk.error Code=1015 "User tracking is disabled." UserInfo={NSLocalizedDescription=User tracking is disabled.}.

I tried version 3.2.0, 3.2.1 and 4.0.0 - all with the same effect.
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : ios 5.1.1

My initSession code is like in the examples (with ionic native wrapper)

this.branchIo.setDebug(true);
 this.branchIo.disableTracking(true);
this.branchIo.initSession().then((data: any) => {
      if (data["+non_branch_link"]) {
          ...
     }
});
@RedEars RedEars changed the title initSession() causes passcode prompt initSession() causes passcode prompt to pop up Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant