Proxy ID

iOS

Custom URL Scheme

Availability: Proxy ID 3.2.0+

You can open the Proxy ID from your own application by using custom URL schemes.

  • URL Schema: proxyidapp://.

Here is a swift code snippet to achieve this:

1
2
3
4
5
6
7
8
9
10
func openProxyApp(_ sender: Any) {
    // First we try to open the Proxy ID, this will only be possible if the Proxy ID App is already installed on the device.
    if let proxyURL = URL(string: "proxyidapp://"), UIApplication.shared.canOpenURL(proxyURL) {
        UIApplication.shared.open(proxyURL)
    } else {
        // If the Proxy ID App is not installed -> redirect to the AppStore to download it
        guard let appStoreURL = URL(string: "https://apps.apple.com/us/app/proxy-id/id1088211119") else { return }
        UIApplication.shared.open(appStoreURL)
    }
}
notice-information

Remember to add proxyidapp:// in your application's Info.plist under the LSApplicationQueriesSchemes key for canOpenURL(_:) to work properly. canOpenURL(_:)