Branch’s links work but not our customed links
We have ran into an interesting problem. For iOS, when we use the deepviews created through Branch dashboard (in the marketing section), then we could open the app through the link if a user has installed the app. But for our customed webpage, which integrates branch’s web SDK, then it is not working properly, which also jumps to the redirect page (app store in our case). I wonder what might be the reason of this?
Android does not have this problem when using the same page.
Thanks for the additional detail. This is a really interesting situation! Here is what I suspect is happening:
The deepviewCta() function works on iOS 9+ by triggering an automatic redirect to a Universal Link URL (which opens the app) and then going to a fallback URL if that fails. But Apple is very specific about the situations in which a Universal Link is allowed to launch the app (including things like how long of a pause is allowed before redirection). Of course these restrictions are not public, so all we can do is guess. My suspicion is that putting the deepviewCta() function inside a GA callback is falling outside of Apple’s rules, so the app never opens and you are instead being sent to the fallback URL.
I can think of two options here:
- You can build some way to trigger the GA and Branch functions separately so that they don’t conflict with Apple’s requirements.
- We actually have a brand new, one-click integration with Google Analytics, which you can read about here and here. If you set that up, you’ll get all Branch-related events automatically instead of needing to manually collect link click data.
Hopefully that helps!