![](/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.