Custom URLs

Dan Friedman dan at clearvisiontech.com
Thu Sep 2 14:44:11 EDT 2021


Keith,

Thanks for the assist... In some cases a http call will open the mobile app if it's installed.  For example, https://m.facebook.com will launch the mobile app.  However, now with further testing, I have a new problem.  On android, if the app isn't installed it's not returning "no association".  The result is empty.  Must be a bug!  I'm using LC Business 9.6.2

Thank you!
-Dan
 

On 9/1/21, 10:36 AM, "use-livecode on behalf of Keith Martin via use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote:

    Only one thought: the protocols that do work on iOS are general declarations that are routed to an app/service as the host OS thinks is appropriate. Less common ones and app-specific ones do have to be registered... in the app that wants to be able RECEIVE them. So if the FB app doesn’t have that set up already it seems it can’t be done.

    https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app <https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app>

    Would it work well enough to use a regular https URL to the resource on Facebook? It would open in the user’s browser, but it may be enough.

    k


    > On 1 Sep 2021, at 18:04, Dan Friedman via use-livecode <use-livecode at lists.runrev.com> wrote:
    > 
    > I need a little help here...
    > 
    > I am creating a mobile app for a client that wants to simply launch another app.  To do this, I am trying to use a custom url to launch an external app.  For example:
    > 
    > launch url "fb:"
    > 
    > This works fine on Android, but on iOS, I get "no association" (yes, Facebook is installed).  Then I read that you have to enter the Custom URLs you want to use in the "App URL Query Whitelist" area in the Application Builder.   Is this true?   Why does the app have to know at compile time what URLs are going to be opened?  In my app's case, client can change and edit the list on a server, so the list of apps to launch are received by the our app at launch.
    > 
    > "mailto:", "http:", "music:" and "tel:" all work just fine on iOS without being included in the App URL Query Whitelist.
    > 
    > Anyone have any insight to this process?
    > 
    > Thanks in advance!
    > -Dan
    > 
    > _______________________________________________
    > use-livecode mailing list
    > use-livecode at lists.runrev.com
    > Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
    > http://lists.runrev.com/mailman/listinfo/use-livecode

    _______________________________________________
    use-livecode mailing list
    use-livecode at lists.runrev.com
    Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
    http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list