简体   繁体   English

iOS应用程式邀请通知

[英]iOS App Invite Notifications

I have an iOS app with facebook login. 我有一个使用Facebook登录的iOS应用。 In the app you can invite your friends using the FBSDKAppInviteDialog. 在应用程序中,您可以使用FBSDKAppInviteDialog邀请您的朋友。 At the end of this process after setting up the app links and everything, I had some strange behavior I couldn't figure out. 在设置了应用程序链接和所有内容之后,此过程结束时,我有些奇怪的行为我无法弄清。 The invites are successfully sent (positive callback delegation method), but the invitee Only sees the notification/invitation from the facebook iOS mobile app. 邀请已成功发送(正回调委托方法),但被邀请者仅从facebook iOS移动应用程序看到通知/邀请。 From mobile safari or any desktop web clients, they get no notification at all. 从移动浏览器或任何桌面Web客户端,他们根本不会收到任何通知。 Does anyone know how what determines what platform a user gets notified on? 有谁知道如何确定用户在哪个平台上得到通知? I have an app domain for the website (with app links) registered, and added to the "website data" field in the facebook created app link . 我为网站注册了一个应用程序域(带有应用程序链接),并添加到了Facebook创建的应用程序链接中的“网站数据”字段中。 Thanks in advance for any advice. 在此先感谢您的任何建议。 I have scowered the web and have not found anything useful. 我已经打乱了网络,却没有发现任何有用的东西。

It sounds like there is an issue with the meta tags on your website with app links. 听起来您网站上带有应用链接的meta标签存在问题。 I would use the Facebook debugger and make sure it looks like this: 我将使用Facebook调试器 ,并确保它看起来像这样:

<html>
 <head>
<meta property="al:ios:url" content="example://applinks" />
<meta property="al:ios:app_store_id" content="12345" />
<meta property="al:ios:app_name" content="Example App" />
<meta property="og:title" content="example page title" />
<meta property="og:type" content="website" />
<!-- Other headers -->
</head>
<!-- Other HTML content -->
</html>
</head>

Honestly you don't even need to have the website if it's only purpose is for app links, since Facebook handles this for you with their api. 老实说,您的网站甚至仅是用于应用程序链接的,您甚至都不需要拥有该网站,因为Facebook会使用其api为您处理此事。 ( https://developers.facebook.com/docs/applinks/hosting-api ) https://developers.facebook.com/docs/applinks/hosting-api

All the documentation I could find says the notification will show on the first Facebook platform that the user accesses. 我能找到的所有文档都说,该通知将显示在用户访问的第一个Facebook平台上。

Your app link URL must contain the proper data and structure in order for App Invites to function. 您的应用链接URL必须包含正确的数据和结构,以便应用邀请起作用。

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

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