iosios-simulatorios9deep-linkingbranch.io

How to test Branch.io in simulator?


I'm scratching my head how I'm supposed to test my branch.io integration on simulator.

For link generation, I'm using the Javascript/web SDK instead of the iOS SDK. When you click a button to 'view content in app' on my landing page, it will generate the link and follow it.

All this works just great, but when I open the jump page in the simulator, it never actually attempts to open the local app on the phone which has the same bundle identifier.

I would guess this might be because the current app store URL box is blank (because it doesn't exist yet)... but I am not sure how I'm supposed to test if it works if I can't get the deeplink to trigger it locally.

Thanks!


Solution

  • @Tallboy, unfortunately a simulator is not fit for testing deep links for two reasons:

    1. there is no App Store on the simulator, so you cannot see true redirect behavior
    2. the simulator does not support Universal Links

    You're absolutely right -- you can click the link then manually open the app. In this case, we use our "deferred deep linking" mechanisms to determine that link was previously clicked. That method is discussed in our documentation here.

    If you have questions about any of this, please ask. You can also reach the Branch team via support@branch.io.