配置推送通知的博览会通知

发布于 2025-02-11 22:04:42 字数 222 浏览 0 评论 0原文

我有2个应用程序,我实施了Expo推送通知,一切都很好,但是在另一个应用程序中,它要求我为通知提供ExperienceId。 经验:“@name/slug, });

并且在尝试发送通知时会给我一个错误:无效的cression缩合:无法检索收件人应用程序的FCM服务器密钥。确保您按照EXPO FCM文档指示提供了服务器密钥。

我不想使用FCM,我想使用Expo推送API。

你能帮助我吗?

I have 2 apps and I implemented expo push notification and everything was fine, but in the other one it asked me for the experienceid as a prop to Notifications.getExpoPushTokenAsync({
experienceId: "@name/slug,
});

and when trying to send a notification it gives me this error: InvalidCredentials: Unable to retrieve the FCM server key for the recipient's app. Make sure you have provided a server key as directed by the Expo FCM documentation.

I dont want to use FCM, i want to use expo push api.

Can you help me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

峩卟喜欢 2025-02-18 22:04:42

Expo推动API使用FCM用于Android,虽然不必为Expo Go配置它(这已经为Expo GO应用程序完成了),但是当您部署独立的应用程序时,您需要将其配置为FCM。更多信息在这里: https://docs.expo.dev/push-notifications/ -fcm/

The Expo Push API uses FCM for Android, and while it's not necessary to configure it for Expo Go (this is done already for the Expo Go app), when you deploy your standalone app you will need to have it configured for FCM. More information here: https://docs.expo.dev/push-notifications/using-fcm/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文