Determine if an app is installed on mobile device and, if so, launch it

Determine if an app is installed on mobile device and, if so, launch it

  

I'm still fairly new to OutSystems, working in a Personal Environment, but learning and liking the capabilities of the system!

I am building a mobile app for Android and iOS.  How can I have my app:  

  1. determine if the user's device has a specific app installed on it (e.g., Spotify, Chrome, LinkedIn, FireFox, Pandora, etc.) and if it is installed, then  
  2. launch and/or switch to that app
  3. create an onscreen link that is present while the user is in the other app, that will bring them back to my app when they are ready to do so

Thank you!

Hi JM,

Two possible answers, I hope there is some usefull info here:

- A lot of popular apps have their own URL schemes (like for example "spotify://") which launch that specific app from the browser of from within an other iOS/Android application. You can use this in your app to launch a specific app. Downside is that you can not 'create' a dedicated 'back' button inside these apps to navigate back to your own app. This whay your stuck to the native 'back' button or functionalities of the platforms/operating systems (iOS/Android).
- You can also open a webcontainer which displays the specific content from the services. Than you can create your own 'back' button in your own application.

Hope this helps!

Regards,
Jasper

Jasper Oudenaarden wrote:

Hi JM,

Two possible answers, I hope there is some usefull info here:

- A lot of popular apps have their own URL schemes (like for example "spotify://") which launch that specific app from the browser of from within an other iOS/Android application. You can use this in your app to launch a specific app. Downside is that you can not 'create' a dedicated 'back' button inside these apps to navigate back to your own app. This whay your stuck to the native 'back' button or functionalities of the platforms/operating systems (iOS/Android).
- You can also open a webcontainer which displays the specific content from the services. Than you can create your own 'back' button in your own application.

Hope this helps!

Regards,
Jasper

Thank you, Jasper.  Do you know if there is a list anywhere of the URL schemes for popular apps?  

And, can my OutSystems app somehow check to see if the specified app is installed on the user's device before my app tries to launch it?

Lastly, I'm not familiar with using a webcontainer.  I'll search for info on that, but are you able to point me to any helpful documentation or examples?

Thanks again!'


Thank you, Jasper.  Do you know if there is a list anywhere of the URL schemes for popular apps?  

And, can my OutSystems app somehow check to see if the specified app is installed on the user's device before my app tries to launch it?

Lastly, I'm not familiar with using a webcontainer.  I'll search for info on that, but are you able to point me to any helpful documentation or examples?

Thanks again!

I think you have to find the schemes when you integrate an app inside your own app. Can not think of any list.

For the app-check I think the following topic is relevant to you:
https://www.outsystems.com/forums/discussion/22192/how-to-know-if-twiiter-or-instagram-or-any-other-app-installed-on-phone/

Regards,

Jasper

Jasper Oudenaarden wrote:

I think you have to find the schemes when you integrate an app inside your own app. Can not think of any list.

For the app-check I think the following topic is relevant to you:
https://www.outsystems.com/forums/discussion/22192/how-to-know-if-twiiter-or-instagram-or-any-other-app-installed-on-phone/

Regards,

Jasper


I found some of the schemes I'm looking for, but when I try to use them with the InAppBrowser component, they don't work.  Apparently, InAppBrowser needs the URL to start with "http://" or "https://"

Any ideas about how an OutSystems mobile app can launch a specific app with a URL scheme that starts with something like "Twitter://" or "fb://" or "Flickr://" or "Skype://" ?

I found some of the schemes I'm looking for, but when I try to use them with the InAppBrowser component, they don't work.  Apparently, InAppBrowser needs the URL to start with "http://" or "https://"

Any ideas about how an OutSystems mobile app can launch a specific app with a URL scheme that starts with something like "Twitter://" or "fb://" or "Flickr://" or "Skype://" ?

Thank you, Jasper.  Do you know if there is a list anywhere of the URL schemes for popular apps?  

And, can my OutSystems app somehow check to see if the specified app is installed on the user's device before my app tries to launch it?

Lastly, I'm not familiar with using a webcontainer.  I'll search for info on that, but are you able to point me to any helpful documentation or examples?

Thanks again!'

JM Ackerman wrote:

I found some of the schemes I'm looking for, but when I try to use them with the InAppBrowser component, they don't work.  Apparently, InAppBrowser needs the URL to start with "http://" or "https://"

Any ideas about how an OutSystems mobile app can launch a specific app with a URL scheme that starts with something like "Twitter://" or "fb://" or "Flickr://" or "Skype://" ?

Maybe this info will help:
https://www.outsystems.com/forums/discussion/22495/inappbrowser-plugin-can-it-open-url-schemes/

Regards,

Jasper