Jump to content
ZRomik

READ_SMS permission not requested

Recommended Posts

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

>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

 

изображение_2021-06-07_173623.png

Share this post


Link to post

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×