You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@chanphillip ,
Hello, I haven't tried using the plugin w/ Ionic 2. Can you please elaborate your question?
As far as I know, you always needed to initialize the session every time the device starts so that you can use the Branch methods, in Cordova it should be initialize on deviceReady. See doc
The reason why initSession() is called within resume and deviceready is because of scenarios on some Android devices where deep link data will not pass into the app on open.
When testing, this issue appeared to be isolated with Phonegap and Cordova builds. I have not been able to replicate this Android issue with Ionic, which is why the documentation only contains Branch.initSession() within $ionicPlatform.ready(function() for Ionic 1 and platform.ready().then(() => for Ionic 2.
If you notice that Branch deep link data is not being passed within your Ionic 2 app, please reach out and we will add your use case to our regression tests.
In the docs, some places say it's needed and some do not.
Is initSession() suppose to be called every onResume?
The text was updated successfully, but these errors were encountered: