第一次使用 expo,看文档已经很清楚了,而且新起一个基础项目也能获取到 token
https://docs.expo.io/push-notifications/sending-notifications/
但是!但是我的项目就是获取不到 token,并且提示
Error: Encountered an exception while calling native method: Exception occurred while executing exported method getDevicePushTokenAsync on module ExpoPushTokenManager: Default FirebaseApp is not initialized in this process com.adminapp. Make sure to call FirebaseApp.initializeApp(Context) first.
我要的是 expo push notifications 不是 firebase 的推送。这个问题我网上查询了好多答案(很多都是让去看文档),但都没有能解决我的问题。
求大佬解答一下
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.