简体   繁体   English

来自settings.bundle的自定义URL方案

[英]Custom URL Scheme from settings.bundle

Is it possible to set a custom URL scheme to launch my app from a link but make this a user defined setting? 是否可以设置自定义URL方案以从链接启动我的应用程序,但将其设置为用户定义的设置?

My app relies on a user defined server url and I would like to be able to set a URL scheme to launch my app using the users custom URL from lets say an email link. 我的应用程序依赖于用户定义的服务器URL,我希望能够设置URL方案以使用用户的自定义URL(例如,电子邮件链接)启动我的应用程序。

I noticed the info.plist has these references ${EXECUTABLE_NAME} can I define my own custom reference maybe? 我注意到info.plist具有这些引用$ {EXECUTABLE_NAME}可以定义我自己的自定义引用吗?

Edit: Turns out these ${EXECUTABLE_NAME} are just references used during build in xcode. 编辑:原来这些$ {EXECUTABLE_NAME}只是在xcode构建期间使用的引用。

I also learned that the app bundle is read only on device making the info.plist un-editable. 我还了解到,该应用程序捆绑包仅在设备上只读,从而使info.plist无法编辑。 Looks like this is impossible. 看起来这是不可能的。 Anyone have any ideas? 有人有想法么?

无法添加到Settings.bundle的链接来启动您的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM