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

  • <small id='PyDKq'></small><noframes id='PyDKq'>

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

        如何在運(yùn)行時(shí)在 React Native 中請(qǐng)求 Android 設(shè)備位置

        How do I request permission for Android Device Location in React Native at run-time?(如何在運(yùn)行時(shí)在 React Native 中請(qǐng)求 Android 設(shè)備位置的權(quán)限?)
          <i id='BpINy'><tr id='BpINy'><dt id='BpINy'><q id='BpINy'><span id='BpINy'><b id='BpINy'><form id='BpINy'><ins id='BpINy'></ins><ul id='BpINy'></ul><sub id='BpINy'></sub></form><legend id='BpINy'></legend><bdo id='BpINy'><pre id='BpINy'><center id='BpINy'></center></pre></bdo></b><th id='BpINy'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='BpINy'><tfoot id='BpINy'></tfoot><dl id='BpINy'><fieldset id='BpINy'></fieldset></dl></div>
            <tbody id='BpINy'></tbody>

            <bdo id='BpINy'></bdo><ul id='BpINy'></ul>
              <legend id='BpINy'><style id='BpINy'><dir id='BpINy'><q id='BpINy'></q></dir></style></legend>
              • <tfoot id='BpINy'></tfoot>

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

                  本文介紹了如何在運(yùn)行時(shí)在 React Native 中請(qǐng)求 Android 設(shè)備位置的權(quán)限?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我一直在嘗試將 React Native 的 GeoLocalisation 用于 Android 應(yīng)用程序.文檔記錄不佳的模塊可在此處找到 https://facebook.github.io/react-本機(jī)/docs/geolocation.html.根據(jù)文檔,您使用 AndroidManifest.xml 文件中的以下代碼處理 Android 上的位置權(quán)限

                  I have been trying to use React Native 's GeoLocalisation for an Android App. The poorly documentated module is found here https://facebook.github.io/react-native/docs/geolocation.html. According to the documentation, you handle location permissions on Android using the following code in the AndroidManifest.xml file

                  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
                  

                  但是,我的在線研究表明,上述代碼行對(duì)于 ANDROID >= 6.0

                  However, my online research suggests that the above line of code is useless for versions of ANDROID >= 6.0

                  由于我的 GeoLocation 實(shí)現(xiàn)當(dāng)前無法正常工作,我沒有其他理由相信位置權(quán)限沒有得到正確處理.

                  As my implementation of GeoLocation is not currently working, I have no other reason but to believe that location permissions are not correctly handled.

                  如何在運(yùn)行時(shí)為 React Native Android App 成功請(qǐng)求位置權(quán)限?提前致謝!

                  How do I successfully request location permission at run-time for React Native Android App ? Thanks in advance !

                  推薦答案

                  這對(duì)我不起作用

                  if (granted === PermissionsAndroid.RESULTS.GRANTED) {
                  }
                  

                  我提到了 https://facebook.github.io/react-native/docs/permissionsandroid.html#request并且 check() 返回一個(gè)布爾值

                  I referred to https://facebook.github.io/react-native/docs/permissionsandroid.html#request and check() return a boolean

                  const granted = await PermissionsAndroid.check( PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION );
                  
                  if (granted) {
                    console.log( "You can use the ACCESS_FINE_LOCATION" )
                  } 
                  else {
                    console.log( "ACCESS_FINE_LOCATION permission denied" )
                  }
                  

                  這篇關(guān)于如何在運(yùn)行時(shí)在 React Native 中請(qǐng)求 Android 設(shè)備位置的權(quán)限?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當(dāng)前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網(wǎng)絡(luò)提供商)
                  Get current location during app launch(在應(yīng)用啟動(dòng)期間獲取當(dāng)前位置)
                  locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)
                    • <bdo id='5rfis'></bdo><ul id='5rfis'></ul>
                      <tfoot id='5rfis'></tfoot>

                          <tbody id='5rfis'></tbody>
                      1. <legend id='5rfis'><style id='5rfis'><dir id='5rfis'><q id='5rfis'></q></dir></style></legend>

                            <small id='5rfis'></small><noframes id='5rfis'>

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

                          1. 主站蜘蛛池模板: 亚洲日本中文字幕在线 | 中文字幕一区二区三区在线乱码 | 91精品国产乱码久久久久久久久 | 国产精品视频二区三区 | 天天看天天操 | 毛色毛片免费看 | 中文字幕日韩一区二区 | 亚洲成av | 欧美性video 精品亚洲一区二区 | 久久国产电影 | 91国在线视频 | 亚洲国产激情 | 羞羞视频网站免费看 | 国产精品毛片无码 | 九九热精品免费 | 精品国产精品一区二区夜夜嗨 | 国产精品久久久久久久久久免费看 | 97色在线观看免费视频 | 国产一区二区影院 | 老司机免费视频 | 国产精彩视频在线观看 | 天天干天天玩天天操 | 91不卡在线 | 色综合99 | 性生生活大片免费看视频 | 一区二区三区日韩 | h视频在线播放 | 亚洲免费大片 | 在线中文字幕第一页 | 奇米超碰在线 | 羞羞视频免费观 | 91久久精品日日躁夜夜躁欧美 | 精品自拍视频在线观看 | 中文字幕在线网 | 亚洲欧美日韩国产综合 | 久久成人一区二区三区 | 天天干天天草 | 亚洲视频一区在线观看 | 欧美久久久久久 | 一区二区三区免费网站 | 欧美国产一区二区 |