Link in email to launch app with launchArgs

Two parts to this question.

  1. Any idea how to make an email link clickable to launch either an ios or an android app with specific parameters

  2. Catch these parameters (launchArgs) in the app?

I assume if 1) is achieved 2) will be easy?

The end game is to make a message sent written in a corona app (which sends an email) have a link so the recipient is taken to the messaging screen inside the same app.

Thanks,

Search for “Corona URL Scheme”.  There is at least one tutorial on it and several forum posts.  Basically for iOS you define a URL scheme (like http://, tel://, etc. but unique for your app:  megagame://

Once you have that you can make a url:  megagame://?params

and params should end up in your launchArgs.

Rob

http://coronalabs.com/blog/2013/02/05/ios-tutorial-using-email-attachments/

I’ve used this technique successfully, but it is ONLY for iOS.

Search for “Corona URL Scheme”.  There is at least one tutorial on it and several forum posts.  Basically for iOS you define a URL scheme (like http://, tel://, etc. but unique for your app:  megagame://

Once you have that you can make a url:  megagame://?params

and params should end up in your launchArgs.

Rob

http://coronalabs.com/blog/2013/02/05/ios-tutorial-using-email-attachments/

I’ve used this technique successfully, but it is ONLY for iOS.