gpt4 book ai didi

IOS 推送通知 smartface 4.3 注册和远程 token

转载 作者:行者123 更新时间:2023-11-28 21:43:25 25 4
gpt4 key购买 nike

我已将以下代码包含到 smartface 测试应用程序中并导出到 Xcode 和模拟器,但它会提示空结果并请求任何推送通知的权限。

Notifications.remote.registerForPushNotifications({
OnSuccess : function () {
alert("Success");
},
OnFailure : function () {
alert("Fail");
}
});
alert(Notifications.remote.token);

推送通知似乎不起作用。是否有更多设置来获取设备的访问 token ?并注册推送通知?

最佳答案

对于解析通知,Notifications.remote.token 是一项新功能,可为您提供 deviceToken 值。在下一个版本中,您将能够使用它。

但对于 GCM 推送,它应该与发布一起使用。请注意,使用模拟器将无法正常工作。请确保您在项目详细信息中输入了发件人 ID 值。您可以从 console.developers.google 的概述部分找到此值。它将作为项目编号给出。

关于IOS 推送通知 smartface 4.3 注册和远程 token ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31211483/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com