ios 8 openUrl itms-services does not exit current app

前端 未结 3 541
长发绾君心
长发绾君心 2020-12-14 19:05

In iOS 6 or 7, the app exit to the home screen when I call UIApplication openUrl with a url of itms-services://XXXX to install a new version of my app (using en

3条回答
  •  独厮守ぢ
    2020-12-14 19:24

    Yes, you also get the same behaviour when clicking a download link in safari now on iOS8.

    I'm not sure why they introduced this change but there isn't really a way around it (unless you force your app to crash with something like exit(0);)

    Also, the itms-services url scheme is undocumented and is technically a private api. From experience, you're not allowed to submit apps to the App Store that use it.

提交回复
热议问题