Skip to content Skip to sidebar Skip to footer

Ios And Android Shared Http Deep Linking?

I am trying to launch my native app through a URL (shared via email etc). It seems that Android only responds to HTTP deep link URLs (e.g., http://myapp.com/stuff), and that iOS on

Solution 1:

This article can be usefull "URL schemes for iOS and Android": http://fokkezb.nl/2013/09/20/url-schemes-for-ios-and-android-2/

Edited: The main idea to send user a link to a website. Using the platform detection on server we can return correct link:

functionopen() {

    // If it's not an universal app, use IS_IPAD or IS_IPHONEif (IS_IOS) {
        window.location = "myapp://view?id=123";

        setTimeout(function() {

            // If the user is still here, open the App Storeif (!document.webkitHidden) {

                // Replace the Apple ID following '/id'window.location = 'http://itunes.apple.com/app/id1234567';
            }
        }, 25);

    } elseif (IS_ANDROID) {

        // Instead of using the actual URL scheme, use 'intent://' for better UXwindow.location = 'intent://view?id=123#Intent;package=my.app.id;scheme=myapp;launchFlags=268435456;end;';
    }
}

Post a Comment for "Ios And Android Shared Http Deep Linking?"