久久久久久久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>

        如何在運行時在 React Native 中請求 Android 設備位置

        How do I request permission for Android Device Location in React Native at run-time?(如何在運行時在 React Native 中請求 Android 設備位置的權限?)
          <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'>

                  本文介紹了如何在運行時在 React Native 中請求 Android 設備位置的權限?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

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

                  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" />
                  

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

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

                  由于我的 GeoLocation 實現當前無法正常工作,我沒有其他理由相信位置權限沒有得到正確處理.

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

                  如何在運行時為 React Native Android App 成功請求位置權限?提前致謝!

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

                  推薦答案

                  這對我不起作用

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

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

                  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" )
                  }
                  

                  這篇關于如何在運行時在 React Native 中請求 Android 設備位置的權限?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                  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 或網絡提供商)
                  Get current location during app launch(在應用啟動期間獲取當前位置)
                  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. 主站蜘蛛池模板: 亚洲高清在线 | 欧美成人不卡 | 草在线| 三区四区在线观看 | 日本不卡一区二区三区在线观看 | 久久精品久久久久久 | 视频第一区 | 玖玖综合在线 | 久久精品国产一区二区电影 | 国产一区二区在线免费观看 | 综合色影院 | 中文字幕一级毛片视频 | 久久久久亚洲视频 | 欧美成人高清 | 亚洲 欧美 另类 综合 偷拍 | 亚洲精品1区 | 看一级黄色毛片 | 欧美8一10sex性hd | 亚洲乱码国产乱码精品精的特点 | 嫩草视频在线免费观看 | 亚洲三区在线观看 | 日韩在线免费视频 | 亚洲精选久久 | 草久久久 | 久久另类 | 一区二区三区精品在线 | 亚洲色图婷婷 | 国产精品自产av一区二区三区 | 欧美视频在线播放 | 久久不卡区 | 激情视频一区 | 午夜大片| 亚洲毛片一区二区 | 久久久精品一区 | 亚洲成人在线免费 | 日韩免费视频一区二区 | 91精品国产欧美一区二区成人 | 日韩欧美专区 | 91久色| 国产免费国产 | av黄色在线观看 |