【发布时间】:2021-09-15 00:11:23
【问题描述】:
我的 expo react-native 应用程序在开发模式下(Expo Go)在本地运行良好。但是从 Google Play 商店下载和安装时,它在生产中无情地崩溃。使用logcat,报错信息是:
java.lang.IllegalStateException: Couldn't find implementation for Permissions interface.
唯一的权限相关代码是expo-notifications的通知权限请求。
import * as Notifications from 'expo-notifications';
...
await ExpoNotifications.getPermissionsAsync();
...
await ExpoNotifications.requestPermissionsAsync();
任何帮助将不胜感激
感谢您帮助解决此问题。
【问题讨论】:
-
我遇到了同样的问题。我通过删除 expo-permission 解决了这个问题。
标签: android react-native google-play expo expo-notifications