![](/img/trans.png)
[英]Push notifications via FCM on standalone expo android build not triggering addNotificationResponseReceivedListener()
[英]React Native / Expo: Push notifications for standalone Apps
我在文档的任何地方都找不到这个问题的答案。
我可以使用exponentPushToken [xxxxx]令牌将推送通知发送到独立(非分离)应用程序吗? 也许使用expo的推送服务URL( https://exp.host/--/api/v2/push/send )?
或者,对于独立应用程序,唯一的方法是使用“真实”设备令牌?
注意:我没有分离应用程序。
我可以通过运行以下命令行生成独立的iOS应用来回答此问题:
exp build:ios
然后使用TestFlight在我的iOS设备上安装IPA文件,通过Expo服务将推送通知发送到我的物理设备的“ exponentPushToken [xxxxx]”: https://exp.host/--/api/v2/push/send
: https://exp.host/--/api/v2/push/send
,通知完美到达。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.