ios - ios中的ionic 3 geolocation位置错误
问题描述
我正在Hybrid
使用 ionic-3 开发应用程序。我正在实施google map
并尝试在我的应用程序中获取当前位置。地图在 android 和浏览器中运行良好,但是当我在 ios 中构建它时,出现权限错误。我添加了配置文件以获得权限config.xml
Config.xml 中的配置文件
<config-file file="*-Info.plist" mode="merge" target="NSLocationWhenInUseUsageDescription">
<string>To get your location and provide better service</string>
</config-file>
<config-file file="*-Info.plist" mode="merge" target="NSLocationAlwaysUsageDescription">
<string>To get your location and provide better service</string>
</config-file>
<config-file parent="NSCameraUsageDescription" target="*-Info.plist">
<string>need camera to take your profile picture</string>
</config-file>
我收到如下图所示的错误
你能建议我任何解决方案吗?谢谢你。
解决方案
推荐阅读
- django - 我的网址没有正确更新添加一些额外的路径本身
- python - 如何在不带括号的情况下将查询集作为单独的列表返回
- javascript - GSAP ScrollTrigger 显示固定标题不适用于机车滚动
- postgresql - 如何删除 MacPorts 安装的 Postgresql 13?
- flutter - 如何将参数从数据表传递到颤振中的模态
- java - java - 如何按某个值对堆栈进行排序并在java中的DefaultListModel中显示它?
- html - h2:first-child 和 h2:first-type 不像我预期的那样工作
- python - PyCharm中的插件plantUML找不到Graphviz
- javascript - 为什么我在 Chrome 中打印页面时会调用 window.matchMedia?
- elasticsearch - minikube's got loads of space, but the pod says no space left on device