Daniel Storm Daniel Storm - 4 months ago 164
iOS Question

Pokemon GO iOS URL Scheme

Does the iOS version of Pokemon GO contain a URL Scheme for purposes of launching Pokemon GO from another iOS application?

Answer

The URL Scheme has been changed in version 1.1.0 of Pokemon GO. It is now com.googleusercontent.apps.848232511240-dmrj3gba506c9svge2p9gq35p1fg654p


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 UIApplication.sharedApplication().canOpenURL(NSURL(string:"b335b2fc-69dc-472c-9e88-e6c97f84091c-3://")!) {
    UIApplication.sharedApplication().openURL(NSURL(string:"b335b2fc-69dc-472c-9e88-e6c97f84091c-3://")!)
}
else {
    // Pokemon GO not installed
    // Do something else
}

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

enter image description here

Comments