ZRomik 2 Posted June 7, 2021 Hi! I wrote small app for Android for test. In OnCreate method I request Some permission from OS FStorageRead := JStringToString(TJManifest_permission.JavaClass.READ_EXTERNAL_STORAGE); FStorageWrite := JStringToString(TJManifest_permission.JavaClass.WRITE_EXTERNAL_STORAGE); FReadSms := JStringToString(TJManifest_permission.JavaClass.READ_SMS); PermissionsService.RequestPermissions([FReadSms, FStorageRead, FStorageWrite], nil, DisplayRationale); So, only requests READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE works fine. Is anybody know why READ_SMS permission not requested? I use for test my Xiaomi Redmi Note 4 with MIUI-10 on Android 6.0. On Android emulator is the same thing. Share this post Link to post
Lars Fosdal 1792 Posted June 7, 2021 https://google-developer-training.github.io/android-developer-phone-sms-course/Lesson 2/2_p_sending_sms_messages.html Has SMS access been enabled for the app in the Android settings? Also, best practices: https://stackoverflow.com/questions/32814922/why-does-android-ignore-read-sms-permission 1 Share this post Link to post
ZRomik 2 Posted June 7, 2021 >Has SMS access been enabled for the app in the Android settings? Yes And I enable "Read SMS"and "Send SMS" in "Uses Permissions" tab in Project Options Share this post Link to post
ZRomik 2 Posted June 7, 2021 After clean and rebuild project on emulator READ_SMS permission work fine. I Try on phone after charging them Share this post Link to post
ZRomik 2 Posted June 7, 2021 Yes! On phone work too Thanks for help Lars Fosdal 1 Share this post Link to post