Hello,
in iOS is possible to open your app with an URL Scheme. For example if you have Facebook and your facebook app id is 123456789101112 you can open your app with a scheme like this:
CFBundleURLTypes = { { CFBundleURLSchemes = { "fb123456789101112", } } }
So if you click on a link like fb123456789101112://auth/whatever your iOS Device open your app.
This is possible in Android too using intent-filter into AndroidManifest.xml
Facebook for example require this code in AndroidManifest.xml
\<activity android:name="com.facebook.LoginActivity"\> \<intent-filter\> \<action android:name="android.intent.action.VIEW" /\> \<category android:name="android.intent.category.DEFAULT" /\> \<category android:name="android.intent.category.BROWSABLE" /\> \<data android:scheme="fb123456789101112" android:host="authorize" /\> \</intent-filter\> \</activity\>
You can absolutely do this without Corona support using apktool to decrypt, modify and encrypt again your apk, but intent-filter require a Java Class (in this case com.facebook.LoginActivity) that listen to the external call when invoked and this can only be generated by Corona.
I don’t know if it already exists and how can we handle this but it would be much easier if we can do something like this in build.config
android = { intentFilter = { { name = "android.intent.action.VIEW" }, { category = "android.intent.category.DEFAULT" }, { category = "android.intent.category.BROWSABLE" }, { data = { scheme = "fb123456789101112", host = "authorize", }, }, } }