How to open application using URL?

我们两清 提交于 2019-12-13 12:32:32

问题


I have implemented all the required things but had no success. I want to open the application from browser - but not with just URL schema like a "callback".

I have something like "http://11.11.21.114:8081/signup/callback?signupCode=123?id=20" so how can I identify this url to open my application?


回答1:


Use Universal Links

But it will only work with Public website URL, that should be accessible to Apple Servers.

The only thing you need is to have https server and access to upload a associated domains file.

When you support universal links, iOS 9 users can tap a link to your website and get seamlessly redirected to your installed app without going through Safari. If your app isn’t installed, tapping a link to your website opens your website in Safari.

Apple Link : => Support Universal Links

Follow this nice tutorial : => Universal Link




回答2:


To Launch application from Url , Deep Link is used . Here is tutorial for complete step by step for opening application :

http://blog.originate.com/blog/2014/04/22/deeplinking-in-ios/

Once its done , just add url into Xcode Plist file , then passing url on browser will launch iOS Application.

Hope it Helps!




回答3:


Add Innformation In Info.Plist File

  1. In Url Identifier Enter Your Package Name && Url schemes add Application Name
  2. open link like schemesname:// Then Open Your App


来源:https://stackoverflow.com/questions/39287958/how-to-open-application-using-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!