简体   繁体   English

iOS数据中的“带自定义方案的URL”和Facebook中Android数据中的“URL”

[英]“URL with custom scheme” in iOS data and “URL” in Android data in facebook

I have an app which is available now on both iOS and Android. 我有一个应用程序,现在可以在iOS和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. 现在我想通过调用https://www.codenameone.com/javadoc/com/codename1/social/FacebookConnect.html#inviteFriends函数添加“邀请朋友”功能,以允许玩家邀请他的朋友安装我的应用程序。 I enter the https://developers.facebook.com/quickstarts/?platform=app-links-host site and select my app there. 我进入https://developers.facebook.com/quickstarts/?platform=app-links-host网站并在那里选择我的应用程序。 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? 有没有放置上面提到的iOS_app_url或android_app_url的地方?

Anyone can help? 有人可以帮忙吗? thanks. 谢谢。

The URL should be in the form of myappURL://calledFromFB this will then be launched by Facebook when trying to launch your app. 该URL应采用myappURL://calledFromFB的形式,然后在尝试启动您的应用时由Facebook启动。

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 查看ios.urlScheme构建提示和标题为“将启动参数传递给应用程序”的部分: httpsios.urlScheme

This allows your app to open with information related to the invite. 这允许您的应用打开包含与邀请相关的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM