`
` 应用程序.json “安卓”: { “useNextNotificationsApi”:true, “自适应图标”:{ "foregroundImage": "./assets/logo.png", “背景颜色”:“#ffffff” }, "googleServicesFile": "./google-services.json", “包”:“com.myapp.app” },
`
尝试在代码中硬编码 projectId。您可以在您的app.json中找到它。
示例代码:
const expoPushToken = await Notifications.getExpoPushTokenAsync({
projectId: 'your-project-id', });