GetDeviceId: Neither user 11279 nor current process has android.permision.READ_PHONE_STATE


(LS BR) #1

Hello, my app is returning this error on the first boot, the app asks for the required permissions, but the error appears before even allowing the user time to accept the permissions, since after accepting the permissions the error no longer appears, only appears on the first boot, which can cause a shock on the user when he installs the app. I’ve seen some articles related to this topic, and tried all the alternatives I had on these topics but none worked, so I decided to create this specific to my problem.


(Samuel) #2

can you explain more ? which block / component are you trying to use ? Did you use any extension ? Any Screenshot ? What do you prefer to see ?


#3

please only ask in the community of the builder you are using
thank you

Taifun


(Akib Hassain) #4


Same problem is here.


#5

same questions for you

can you explain more ? which block / component are you trying to use ? Did you use any extension ? Any Screenshot ?

Taifun


(Nathan) #6

You guys denied the permission to read phone state on run another time. Reinstall the app or do this from Settings, and accept the permission.


(Davide Squitieri) #7

I’ve got the same problem.
caused by colintreeIMEI extension.
after the update I noticed this problem: the app no ​​longer asks me for permission to read the internal device (in my case imei), as if he denied it regardless.


(Davide Squitieri) #8

Ok. my problem was solved by eliminating colintreeImei, replacing it with kodular device tool.


(Nathan) #9

You didn’t have to do that :joy: Just use the Ask For Permission block and use the Text Block with READ_PHONE_STATE, then it’ll ask on Screen Init if you put it under that event block. Definitely consider using my Hosts extension, it can be found my searching the Community. It has more features than the current Device Information component AND includes even IMEI. It’s the biggest & most powerful Device Information extension in the AI World.


(Davide Squitieri) #10

my first project with kodular and I did not know all the components! thk’s


(Akib Hassain) #11

https://puravidaapps.com/telephonymanager.php
this one


#12

the extension still does not use the new SDK 26 features…
as workaround drag a phone call component into the working area without using it…

Taifun


(Nathan) #13

Nope not that one, this one. It uses special new SDK 26 features, well will in the next update :wink: Which will be either between within 5 hours or Tuesday, maybe next Thursday, for me to know and you to never find out until it’s released.


(Akib Hassain) #14

which extension?


#15

Can you read answers?


(Nathan) #16

The link that says this at the beginning.