久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='c9DF6'></tfoot>
  • <small id='c9DF6'></small><noframes id='c9DF6'>

        <bdo id='c9DF6'></bdo><ul id='c9DF6'></ul>

    1. <i id='c9DF6'><tr id='c9DF6'><dt id='c9DF6'><q id='c9DF6'><span id='c9DF6'><b id='c9DF6'><form id='c9DF6'><ins id='c9DF6'></ins><ul id='c9DF6'></ul><sub id='c9DF6'></sub></form><legend id='c9DF6'></legend><bdo id='c9DF6'><pre id='c9DF6'><center id='c9DF6'></center></pre></bdo></b><th id='c9DF6'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='c9DF6'><tfoot id='c9DF6'></tfoot><dl id='c9DF6'><fieldset id='c9DF6'></fieldset></dl></div>

        <legend id='c9DF6'><style id='c9DF6'><dir id='c9DF6'><q id='c9DF6'></q></dir></style></legend>

        修復(fù) Cordova Geolocation 請(qǐng)求位置消息

        Fix Cordova Geolocation Ask for Location Message(修復(fù) Cordova Geolocation 請(qǐng)求位置消息)

        <small id='mR8ta'></small><noframes id='mR8ta'>

          1. <i id='mR8ta'><tr id='mR8ta'><dt id='mR8ta'><q id='mR8ta'><span id='mR8ta'><b id='mR8ta'><form id='mR8ta'><ins id='mR8ta'></ins><ul id='mR8ta'></ul><sub id='mR8ta'></sub></form><legend id='mR8ta'></legend><bdo id='mR8ta'><pre id='mR8ta'><center id='mR8ta'></center></pre></bdo></b><th id='mR8ta'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='mR8ta'><tfoot id='mR8ta'></tfoot><dl id='mR8ta'><fieldset id='mR8ta'></fieldset></dl></div>

                  <tbody id='mR8ta'></tbody>
                • <bdo id='mR8ta'></bdo><ul id='mR8ta'></ul>
                • <legend id='mR8ta'><style id='mR8ta'><dir id='mR8ta'><q id='mR8ta'></q></dir></style></legend>
                • <tfoot id='mR8ta'></tfoot>
                  本文介紹了修復(fù) Cordova Geolocation 請(qǐng)求位置消息的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  有沒有人有使用cordova、html的經(jīng)驗(yàn)并且知道如何為iOS解決這個(gè)地理定位消息問題?我只想讓消息說出應(yīng)用名稱,后跟想使用您當(dāng)前的位置".

                  Does anyone have experience using cordova, html and know how to fix this geolocation message issue for iOS? I just want the message to say the app name followed by the line, "would like to use your current location."

                  當(dāng)前地理位置消息:

                  ///Users/kklsndksjladn/Library/Developer/CoreSimulator/Devices/FAF7EE4C-40BA-430A-80D5-5C84B07D970D/data/Containers/Bundle/Application/DAE305B6-C6DD-438B-B4D7-9B183A8B2D97/HelpME.app/www/index.html

                  ///Users/kklsndksjladn/Library/Developer/CoreSimulator/Devices/FAF7EE4C-40BA-430A-80D5-5C84B07D970D/data/Containers/Bundle/Application/DAE305B6-C6DD-438B-B4D7-9B183A8B2D97/HelpME.app/www/index.html

                  我嘗試了堆棧溢出和其他網(wǎng)站的各種解決方案.我實(shí)現(xiàn)了 navigator.geolocation.getCurrentPosition(onSuccess, onError); 代碼,將我的 cordova.js 文件包含在每個(gè) html 頁面中,確保 <script>src=cordova.js</script> 首先出現(xiàn)在我的 index.html 頁面中,在我的 config.xml 文件中包含地理定位標(biāo)簽并嘗試使用我的 plist.有人請(qǐng)幫忙!!!!

                  I've tried various solutions from stack overflow and other websites. I implemented the navigator.geolocation.getCurrentPosition(onSuccess, onError); code, included my cordova.js file in every html page, made sure <script> src=cordova.js</script> appears first in my index.html page, included the geolocation tag in my config.xml file and tried playing around with my plist. Someone please help!!!!

                  -謝謝

                  推薦答案

                  除了 DaveAlden 的回答,我必須刪除舊版本的地理定位插件并添加新版本.然后我不得不刪除/添加 Cordova iOS 平臺(tái).只有這樣我才能成功地將 NSLocationWhenInUseUsageDescription 添加到 .plist 文件中.

                  In addition to the answer from DaveAlden, I had to remove the old version of the geolocation plugin and add the new one. Then I had to remove/add the Cordova iOS platform. Only then could I add NSLocationWhenInUseUsageDescription to the .plist file with success.

                  首先,移除/添加地理定位插件:

                  First, remove/add the geolocation plugin:

                  cordova plugin rm org.apache.cordova.geolocation
                  cordova plugin add org.apache.cordova.geolocation
                  

                  二、移除/添加iOS平臺(tái):

                  Second, remove/add the iOS platform:

                  cordova platform rm ios
                  cordova platform add ios
                  

                  最后,將 NSLocationWhenInUseUsageDescription 添加到 .plist.打開 /platforms/ios/{project}/{project}-Info.plist 并添加以下內(nèi)容:

                  Last, add NSLocationWhenInUseUsageDescription to the .plist. Open /platforms/ios/{project}/{project}-Info.plist and add the following:

                  <key>NSLocationWhenInUseUsageDescription</key>
                  <string>[App Name] would like to access your location when running and displayed.</string>
                  

                  查看此iOS 開發(fā)者庫鏈接 了解有關(guān) NSLocationWhenInUseUsageDescriptionNSLocationAlwaysUsageDescriptionNSLocationUsageDescription 的詳細(xì)信息.

                  See this iOS Developer Library link for detailed information regarding NSLocationWhenInUseUsageDescription versus NSLocationAlwaysUsageDescription versus NSLocationUsageDescription.

                  使用 Cordova 的 iPhone 上的位置權(quán)限警報(bào)可能是重復(fù)的.

                  這篇關(guān)于修復(fù) Cordova Geolocation 請(qǐng)求位置消息的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  CLLocation returning negative speed(CLLocation 返回負(fù)速度)
                  Locations in Core Data sorted by distance via NSFetchedResultsController?(通過 NSFetchedResultsController 按距離排序的核心數(shù)據(jù)中的位置?)
                  Swift: Geofencing / geolocations near user location(Swift:用戶位置附近的地理圍欄/地理位置)
                  How to get Location (latitude amp; longitude value) in variable on iOS?(如何在 iOS 上的變量中獲取位置(緯度和經(jīng)度值)?)
                  How to track the device location (iOS and Android) device using Phonegap(如何使用 Phonegap 跟蹤設(shè)備位置(iOS 和 Android)設(shè)備)
                  Cordova geolocation accuracy gets capped at 10 meters(科爾多瓦地理定位精度上限為 10 米)
                    <tbody id='VTpm8'></tbody>

                  <small id='VTpm8'></small><noframes id='VTpm8'>

                    • <bdo id='VTpm8'></bdo><ul id='VTpm8'></ul>
                      1. <i id='VTpm8'><tr id='VTpm8'><dt id='VTpm8'><q id='VTpm8'><span id='VTpm8'><b id='VTpm8'><form id='VTpm8'><ins id='VTpm8'></ins><ul id='VTpm8'></ul><sub id='VTpm8'></sub></form><legend id='VTpm8'></legend><bdo id='VTpm8'><pre id='VTpm8'><center id='VTpm8'></center></pre></bdo></b><th id='VTpm8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='VTpm8'><tfoot id='VTpm8'></tfoot><dl id='VTpm8'><fieldset id='VTpm8'></fieldset></dl></div>
                        <tfoot id='VTpm8'></tfoot>
                          <legend id='VTpm8'><style id='VTpm8'><dir id='VTpm8'><q id='VTpm8'></q></dir></style></legend>

                            主站蜘蛛池模板: 国产精品福利在线 | 特黄aaaaaaaaa真人毛片 | 亚洲丝袜视频 | 欧美成人性生活视频 | 福利网站在线观看 | 天天澡天天狠天天天做 | 日韩综合在线 | 久久免费小视频 | av一区二区三区在线观看 | 五月天毛片 | 99视频在线 | 在线小视频 | 成人国产精品视频 | 久久性生活视频 | 午夜在线视频 | 草草网| 欧美黄色片视频 | 日本中文字幕在线观看 | 中文字幕精品在线观看 | 在线日韩| 欧美日韩在线不卡 | 日本加勒比视频 | 免费看a级片 | 黄色片网站视频 | 亚洲视频在线观看一区 | 91精品国产日韩91久久久久久 | 国产成人在线免费观看 | 九九九精品视频 | 美女毛片视频 | 国产精品www| 天堂成人在线 | 亚洲欧美在线观看 | 久久久久国产 | 免费人成| 国产麻豆91 | 九九综合网 | 国产精品911 | 中文字幕在线免费看 | 超碰在线99| 欧美日韩一本 | 在线免费观看黄色片 |