Search code examples
iosiphonebranch.ioios10.2

branch.io - parameter +is_first_session always false


I am using branch iOS SDK for sending universal links. One of my test devices now always returns the parameter +is_first_session as false.

I delete the app on the device to be tested and install the app on another device. I send the install link via message or email to the device without the app, open that link (App Store is opened) and finally install the debug version with xCode. The code works on some devices (iOS 10.1.1 and iOS 9.3) but not on an iOS 10.2. It has always worked before on the same device, so I am thinking it has something to do with the new iOS version.

Any ideas that might help? Can anybody explain how +is_first_session is determined? Thanks...


Solution

  • UPDATE: Apple introduced an unannounced change in iOS 10.2 (at Branch, we believe this may actually be a bug from Apple) that broke the logic Branch uses to differentiate between installs and re-installs. This caused some new installs on iOS 10.2 to incorrectly report +is_first_session: false. We have implemented a backend change to resolve the issue.


    Alex from Branch.io here: +is_first_session is the variable Branch uses to determine if an app as ever been installed on that unique device before. This means if you have installed any version at any point in the past, you will get false here, which is by design as it allows you to construct customized experiences for first-time installers (vs. people who have re-installed).

    If you want to bypass this for testing purposes, you'll want to use the debug mode. Once this is on, you'll get is_first_session: true any time the app is installed (meaning, you delete the app and reinstall it, or install a fresh build from Xcode)