PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV Mobile 2024 → android.permission.READ_PHONE_STATE for sms apps
android.permission.READ_PHONE_STATE for sms apps
Iniciado por Jim, nov., 19 2018 8:32 PM - 8 respostas
Publicado em novembro, 19 2018 - 8:32 PM
Due to the new requirements for sms in Android 8, how can this permission be toggled inside the app, without going into the app settings.

I have been able to get my sms app working by adding this permission during generation, but the permission is not enabled by default.
The app asks for permission for sms upon initial installation, but it never asks for phone permission.
Google clearly states, "The in app disclosure: Must be displayed in the normal usage of the app and not require the user to navigate into a menu or settings."
Is there a way to automatically force the app to ask for permission and have it toggle the permission?
It really doesn't need the permission, (update to Android 8.1.0 killed it) but it won't work otherwise.
Anything pre-8.0 is fine.


Thanks
Jim
Membro registado
498 mensagems
Popularité : +8 (8 votes)
Publicado em novembro, 21 2018 - 2:42 PM
Hi

For my knowledge and what I develope I doesn't find a way to ask permisions with a function or instruction, the only way possible I know it's to run the function that requires a permission, if the user decline this the only way possible to access these permision it's with the configuration

for another way I do not know about it

Good Luck.

--
Best Regards
ARV
Publicado em novembro, 21 2018 - 5:02 PM
ARV,

I actually tried that. The permission didn't pop up. READ_PHONE_STATE I think isn't really much to do with the telephone as much as the thing we call the cell phone as a whole. I could be wrong.

I did ask WINDEV for help.
They replied with verification it is an issue and have sent it to the developers.
I just hope upgrading to 24 isn't the solution.

Jim
Membro registado
498 mensagems
Popularité : +8 (8 votes)
Publicado em novembro, 21 2018 - 6:04 PM
Hi Jim,

I see, well I hope they upgrade Windev 23 just to have your issue solve.
I don't think the ver 24 have to be the solution, for me it make no sense at all.

Good luck!

--
Best Regards
ARV
Publicado em março, 21 2019 - 7:32 PM
Update.

Windev did send a zip file for the update. They also said the fix is in WDM24.
https://stg.webdev.info/Telechargement_Support_WEB/US/telec_ST.awp…
The app now automatically asks for the READ_PHONE_STATE permission instead of me adding it and the user having to manually enable it. I still think Goggle will reject it, but we will see.

Jim
Membro registado
498 mensagems
Popularité : +8 (8 votes)
Publicado em março, 21 2019 - 10:09 PM
Hi Jim

Hey! Cool!
Let us know if Google Reject it

Good Luck!

--
Best Regards
ARV
Publicado em março, 25 2019 - 4:19 PM
Google did reject it. I am not sure exactly why, but have filed for an exception again.

I tried the app without READ_PHONE_STATE. It still gave the original error.
"Neither user 10102 nor current process has android.permission.READ_PHONE_STATE"

It does prompt the user now for the permission when it goes to send a text.
The way I see it Android/Google is forcing this permission on me and I really don't need it.
Then they say I can't use it.

Jim
Membro registado
498 mensagems
Popularité : +8 (8 votes)
Publicado em março, 25 2019 - 5:16 PM
Hi Jim

Thanks for your experience.
Hope you could find the answer for your issue and if you find it please post it on your thread, someone will need it in the future.

Also I don't know so much about this topic so I can't help that much...

Good luck

--
Best Regards
ARV
Mensagem modificada, março, 25 2019 - 5:17 PM
Publicado em março, 28 2019 - 5:57 PM
Google is rejecting it for the SMS permissions not the READ_PHONE_STATE.
I will start another thread.

Thanks

Jim