NathanaelA / nativescript-permissions

Wraps up the entire Android 6 permissions system in a easy to use plugin.
MIT License
46 stars 22 forks source link

Cant request for READ_PRIVILEGED_PHONE_STATE permission #47

Closed NavruzbekNoraliev closed 3 years ago

NavruzbekNoraliev commented 3 years ago

HI i encountered problem while testing in my physical device with os version android 10

Error: java.lang.IllegalArgumentException: permission is null

I'm asking for permission READ_PRIVILEGED_PHONE_STATE to get imei of device

NathanaelA commented 3 years ago

This is to be expected; see:

Unless your app is a carrier app, you can't get that permission.

vaimeo commented 2 years ago

How we can setup our app as carrier app?

NathanaelA commented 2 years ago

This means it is signed by the carrier (i.e. like AT&T, Verizon, etc) and the app is sold typically as part of the phone.