Pass deep link into iOS Simulator?

前端 未结 5 597
醉酒成梦
醉酒成梦 2021-01-31 14:32

I would like to find an easier way to call deep links in the iOS simulator.

On Android you can use ADB to pipe links into the simulator by using the console.

Is th

5条回答
  •  日久生厌
    2021-01-31 14:42

    (Tested for Branch.io QuickLinks)

    Another very simple method of opening deeplinks in iOS simulator is:

    1. Copy the deeplink to clipboard.
    2. Open Safari application in your iOS simulator and paste your deeplink url in safari.
    3. Safari will try to open the url but it will fail, showing an error alert. But don't worry.
    4. Open your application, by running it from Xcode, simulator will think the app is opened from deeplink and you will receive required deeplink information in your code.

提交回复
热议问题