ionic v4不在IOS中授予位置访问权限

时间:2020-08-05 10:03:33

标签: ios xcode ionic-framework geolocation location

我正在开发一个需要位置的应用程序,并且我已经在项目中添加了用于地理定位的必需插件,尽管我已经在info.plist中添加了必需的权限,但是该位置在Android上有效,但在ios上不起作用xcode中的文件

info.plist file in xcode

我的离子插件

  "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-ionic-keyboard": {},
      "cordova-plugin-geolocation": {},
      "cordova-sqlite-storage": {},
      "onesignal-cordova-plugin": {}
    },
    "platforms": [
      "android",
      "ios"
    ]
  }

0 个答案:

没有答案