我有一个Ionic 4应用程序,它可以在iOs 12.2上正常运行,但是当我在iOs 13上运行时,它会在应用程序启动时要求蓝牙权限。 除了授予我未使用的权限外,问题还在于该应用程序会根据anwser冻结。 这是我的package.json的cordova部分:
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-camera": {},
"cordova-plugin-geolocation": {},
"cordova-plugin-nativegeocoder": {
"LOCATION_WHEN_IN_USE_DESCRIPTION": "Use geocoder service"
},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-app-version": {},
"cordova-plugin-request-location-accuracy": {},
"cordova-plugin-android-permissions": {},
"cordova.plugins.diagnostic": {
"ANDROID_SUPPORT_VERSION": "28.+"
},
"cordova-plugin-network-information": {},
"cordova-plugin-ionic": {
"APP_ID": "REDACTED",
"CHANNEL_NAME": "REDACTED",
"UPDATE_API": "https://api.ionicjs.com",
"UPDATE_METHOD": "background",
"MAX_STORE": "2",
"MIN_BACKGROUND_DURATION": "30"
},
"cordova-sqlite-storage": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-screen-orientation": {},
"cordova-android-support-gradle-release": {
"ANDROID_SUPPORT_VERSION": "27.+"
},
"mx.ferreyra.callnumber": {},
"cordova-plugin-androidx": {},
"cordova-plugin-androidx-adapter": {},
"uk.co.workingedge.phonegap.plugin.launchnavigator": {
"GOOGLE_API_KEY_FOR_ANDROID": "REDACTED",
"OKHTTP_VERSION": "3.+",
"LOCATION_USAGE_DESCRIPTION": "This app requires access to your location for navigation purposes"
},
"cordova-plugin-firebase-analytics": {
"FIREBASE_CORE_VERSION": "17.0.+"
},
"cordova-plugin-firebasex": {
"ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION": "17.0.0",
"ANDROID_FIREBASE_CORE_VERSION": "17.0.0",
"ANDROID_FIREBASE_MESSAGING_VERSION": "19.0.0",
"ANDROID_FIREBASE_CONFIG_VERSION": "18.0.0",
"ANDROID_FIREBASE_PERF_VERSION": "18.0.0",
"ANDROID_FIREBASE_AUTH_VERSION": "18.0.0",
"ANDROID_CRASHLYTICS_VERSION": "2.10.1",
"ANDROID_CRASHLYTICS_NDK_VERSION": "2.1.0",
"FIREBASE_ANALYTICS_COLLECTION_ENABLED": false,
"FIREBASE_PERFORMANCE_COLLECTION_ENABLED": false,
"FIREBASE_CRASHLYTICS_COLLECTION_ENABLED": false,
"IOS_STRIP_DEBUG": true
},
"cordova-plugin-intercom": {},
"call-number": {}
}
如何阻止我的应用程序请求蓝牙许可?
答案 0 :(得分:0)
您使用https://github.com/dpa99c/cordova-diagnostic-plugin这个插件吗?
如果您不需要蓝牙功能,请在Config.xml中指定