Pokemon GO iOS URL Scheme

*爱你&永不变心* 提交于 2019-12-04 18:54:20
Daniel Storm

The URL Scheme has changed to com.googleusercontent.apps.848232511240-dmrj3gba506c9svge2p9gq35p1fg654p in version 1.1.0. Version 1.1.1 uses this URL Scheme also.


Discovered the URL Scheme thanks to @rmaddy's comment. The URL Scheme to open Pokemon GO on an iOS device is, b335b2fc-69dc-472c-9e88-e6c97f84091c-3://. Seems like they do not intend for other developers to use the URL Scheme considering the way it is formatted. I'd be cautious implementing this in a published application for now.

Swift example:

// Check if Pokemon GO app installed on device
if let url = URL(string: "b335b2fc-69dc-472c-9e88-e6c97f84091c-3://"), UIApplication.shared.canOpenURL(url) {
    UIApplication.sharedApplication().openURL(url)
}
else {
    // Pokemon GO not installed
    // Do something else
}

Also, starting at iOS 9 you must include LSApplicationQueriesSchemes in your info.plist.

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