V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
moment082
V2EX  ›  程序员

求助:使用 expo 如何让安卓支持消息通知

  •  
  •   moment082 · 14 天前 · 689 次点击

    目前正在使用 expo 开发一个聊天系统,但是现在我要实现应用之外的消息通知需要获取 exponentpushToken ,在 ios 上可以获取,在安卓上无法获取,有什么解决方案吗?

    1 条回复    2024-09-06 00:15:51 +08:00
    NathanDo
        1
    NathanDo  
       14 天前
    Expo Android 端走的 FCM , 国内不用科学上网肯定不行
    https://docs.expo.dev/push-notifications/overview/
    " Expo makes implementing push notifications easy. All the hassle with device information and communicating with Firebase Cloud Messaging (FCM) or Apple Push Notification Service (APNs) is done behind the scenes. This allows you to treat Android and iOS notifications in the same way and save time both on the front-end and back-end. "
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1053 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 22:33 · PVG 06:33 · LAX 15:33 · JFK 18:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.