Custom URL Schemes - How to launch another app from Corona App?

Say my app has a custom URL scheme as
“corona_app_1”

Now from another Corona app, is it possible for me to go the app using system.openURL
like
[lua]systen.openURL(“corona_app_1://”)[/lua]
I tried, but it doesn’t work.
Or is there some other way to open “corona_app_1” from the second Corona APP. [import]uid: 64174 topic_id: 27757 reply_id: 327757[/import]

Ok. I have no idea how, but all of a sudden, it has started working.

No Worries.

Cheers! [import]uid: 64174 topic_id: 27757 reply_id: 112468[/import]

Hello, I have had the same problem, and as yet I can not solve the problem. Could you tell me how did you resolve this problem?

regards.

It’s likely a problem with your build.settings in the app you’re trying to call.  Can you post that and the system.openURL call from the calling app?

Rob

hi

This one is my line that I call with ‘openURL’, where  “com.tesis.uno”  is the package of my another app.

The name of my app in the phone is “EJEMPLO RA TESIS”

system.openURL( “//com.tesis.uno” )

I forget say that the app which I am trying to call is not developed in corona studio.

Do you know if I can call another app (like candycrush, etc) from an corona app ?

regards.

@oms242000 for system:openURL to work, there has to be settings set in the app you want to call’s build.settings file (for Corona Apps) and for Native apps it’s something in the app’s plist file.  See this blog post for instructions on implementing URL Scheme’s:

http://coronalabs.com/blog/2011/12/22/using-app-url-schemes-in-ios/

Now can you call Candy Crush or other apps?  Only if they have setup  a URL Scheme for you to call.   Simply calling system.openURL("//com.tesis.uno") won’t work.  The app com.tesis.uno would need code in it’s build settings that gives it a name like:  tesis_uno.  Then you would do system.openURL(“tesis_uno://”) and that that opent he app.   This is the Apple iOS way. There is a similar process for Android, but you would need to google the forums for it since I don’t remember exactly how that works.  You can google Corona Android URL Scheme  or something like that.

Rob

Hello, I have had the same problem, and as yet I can not solve the problem. Could you tell me how did you resolve this problem?

regards.

It’s likely a problem with your build.settings in the app you’re trying to call.  Can you post that and the system.openURL call from the calling app?

Rob

hi

This one is my line that I call with ‘openURL’, where  “com.tesis.uno”  is the package of my another app.

The name of my app in the phone is “EJEMPLO RA TESIS”

system.openURL( “//com.tesis.uno” )

I forget say that the app which I am trying to call is not developed in corona studio.

Do you know if I can call another app (like candycrush, etc) from an corona app ?

regards.

@oms242000 for system:openURL to work, there has to be settings set in the app you want to call’s build.settings file (for Corona Apps) and for Native apps it’s something in the app’s plist file.  See this blog post for instructions on implementing URL Scheme’s:

http://coronalabs.com/blog/2011/12/22/using-app-url-schemes-in-ios/

Now can you call Candy Crush or other apps?  Only if they have setup  a URL Scheme for you to call.   Simply calling system.openURL("//com.tesis.uno") won’t work.  The app com.tesis.uno would need code in it’s build settings that gives it a name like:  tesis_uno.  Then you would do system.openURL(“tesis_uno://”) and that that opent he app.   This is the Apple iOS way. There is a similar process for Android, but you would need to google the forums for it since I don’t remember exactly how that works.  You can google Corona Android URL Scheme  or something like that.

Rob