Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29452

ReactNative : permission always return 'never ask again'

$
0
0

am using following code base to request the permission but it always return 'never ask again'

 async requestPermission(request){
        try{
           const response= await PermissionsAndroid.request('PermissionsAndroid.PERMISSIONS.CAMERA',{
            'title': 'Cool Photo App Camera Permission',
            'message': 'Cool Photo App needs access to your camera ' +
                       'so you can take awesome pictures.'
          })
           console.log(response)
        }catch(err){

        }
        this.getcurrentLocation()
    }

//Response never_ask_again


Viewing all articles
Browse latest Browse all 29452

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>