"URL with custom scheme" in iOS data and "URL" in Android data in facebook

412 Views Asked by At

I have an app which is available now on both iOS and Android.

Now I would like to add the "invite friends" function by calling the https://www.codenameone.com/javadoc/com/codename1/social/FacebookConnect.html#inviteFriends function to allow the player to invite his friends to install my app. I enter the https://developers.facebook.com/quickstarts/?platform=app-links-host site and select my app there. However I don't know how to fill below things:

"App Link Name"                       : simply enter the app name? 
"URL with custom scheme" (in iOS Data): should enter something like "myapp://" but I don't know to to configure "myapp" in CodenameOne project.
"URL" (in Android Data)               : ???
"URL" (in Web data)                   : ???

Is there any place to put the iOS_app_url or android_app_url mentioned above?

Anyone can help? thanks.

1

There are 1 best solutions below

2
Shai Almog On

The URL should be in the form of myappURL://calledFromFB this will then be launched by Facebook when trying to launch your app.

Check out the ios.urlScheme build hint and the section titled "Passing Launch Arguments To The App": https://www.codenameone.com/manual/advanced-topics.html

This allows your app to open with information related to the invite.