Scroll
Follow

How to use Custom URI Scheme/ Launch an App Button in the Creator ?

 

In the Layar Creator, under the Advanced button section, you will find a Custom URI Scheme button. You can use this button to launch your own application on Android and/or iOS using a pre-defined custom URI scheme for your app. Another use of this button is to launch other third party apps for which the custom URI scheme is known.

 

       Custom URI Scheme Button

 

Screen_Shot_2014-02-18_at_14.19.29.png

 

                Edit panel for the Custom URI Scheme button

 Screen_Shot_2014-02-18_at_14.22.14.png

Here is an overview of some URIs that we have already tested. You are free to test out other URI schemes.

Action Description iOS URI example Android URI example

 Call

 (the same as the Call button)

 tel:+31123456789

 

 tel:+31123456789

 

 Send sms

 sms:+31123456789

 Note: no prefilled text support

 sms:+31123456789

 Note: no prefilled text support

 Launch the (native) maps application

 Launch maps in safari browser (ll defines the lat and lon of the location):

 http://maps.apple.com/?ll=152.3,4.5

 Launch the native maps app:

 maps://


 Launch the google maps app:

 comgooglemaps://

 

 

 geo:latitude,longitude (geo:52.3,4.5)


 geo:latitude,longitude?z=zoom (geo:52.3,4.5?z=4)


 geo:0,0?q=my+street+address(geo:0,0?q=vizelstraat+20+amsterdam)


  geo:0,0?q=business+near+city(geo:0,0?q=layar+amsterdam)

 The z field specifies the zoom level.

A zoom level of 1 shows the whole  Earth, centered at the given lat,lon.

 A zoom level of 2 shows a quarter of the Earth, and so on.

 The highest zoom level is 23. A larger zoom level will be clamped to 23.

Send an email (It has the possibility to add CC)

 mailto:test@example.com


mailto:foo@example.com?cc=bar@example.com&

subject=Greetings%20from%20Cupertino!&

body=Wish%20you%20were%20here!

 mailto:test@example.com


mailto:foo@example.comcc=bar@example.com&

subject=Greetings%20from%20Cupertino!&

body=Wish%20you%20were%20here!

 Launch the calendar app  calshow://  Not Applicable
Launch Contacts app  Not Applicable

 content://contacts/people/

 For more info: http://developer.android.com/reference/android/content/Intent.html

Launch foursquare app  foursquare://  http://m.foursquare.com/
 Note: this will launch the fooursquare login page in Layar webview.
Launch Google plus app  mgc://  Not Applicable
Launch LinkedIn app  linkedin://  linkedin://
Launch instagram app  URI:
instagram://
instagram://camera will open the camera or photo library (depending on device), 
instagram://user?username=Username will open that Username
instagram://location?id=1 will open that location
instagram://media?id=315 will open that media
 
Launch spotify  spotify:track:5e9PCQh27xWie0AS7jCEqX  spotify:track:5e9PCQh27xWie0AS7jCEqX
Launch reminder app  x-apple-reminder://  Not Applicable
Launch Imdb

 imdb:///boxoffice

 imdb:///name/<nameID>

 imdb:///find?q=toystory

 imdb:///title/tt1931435/

 imdb:///boxoffice

 imdb:///name/<nameID>

 imdb:///find?q=toystory

 imdb:///title/tt1931435/

Download/Launch an app from Appstore or Google Play

1) Search for your app at http://itunes.apple.com
2) Copy & paste the “View in iTunes” link into iPhone link section.
3) Replace the “http://” with “itms://”.

Example: itms://itunes.apple.com/nl/app/layar-augmented-reality/id334404207?mt=8

1) Search for your app at https://play.google.com/store
2) Go to the App Detail page (example: https://play.google.com/store/apps/details?id=com.layar&feature...). 
3) Within that URL, copy the “id=com.layar” (where “layar” is your app’s name).   
4) Add “market://details?” before it

Example: market://details?id=com.layar

Please NOTE that these custom URI schemes are created by third parties, therefore Layar can not garantee that they will remain the same and function correctly all the time. Please always double check it and test it throughly using the Layar App.

 

Currently we do not perform any checks if an app is installed on a user’s device. We have noticed that the iPhone gives feedback if the user has not installed the required app but Android platform does not. Also it is currently not possible to redirect a user to the app store/play store to download the app if it is not installed yet. Therefore, if you are not sure whether your target audience will have your app already installed or not, it is best to redirect them to the Apple App store and/or Google Play to install your app first. If the app is already installed, they will then have the option to open the app.

 

 

 

 

Was this article helpful?
5 out of 5 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk