Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Receive_SMS Permission issue

As you know, According to Google Developer policy if our core functionality of the app does not depends on SMS than we should remove RECEIVE_SMS android permission and try to find a different Alternative.

But my issue is I am not using RECEIVE_SMS in manifest or in asking Runtime. Still, Google warns me of using RECEIVE_SMS permission.

Though on play store If I check permissions required in this app it shows RECEIVE_SMS permission.

You can see some of the screenshots of my app where I searched for this permission if I am using it anywhere by mistake.

But I am unable to find it.

enter image description here

Also this one in manifest:

enter image description here

As you can see I am not asking for that permission nor in manifest or runtime.

I am using Firebase Phone authentication and PayUMoney Payment integration. Is it possible that these two might be causing issues? or they are internally asking for this permission.

I don't know from where this permission is coming from.

It would be a great help if anyone can help me with this issue.

anyone facing the same issue?

like image 917
CodeGeek Avatar asked Dec 10 '18 13:12

CodeGeek


Video Answer


1 Answers

Well, the issue is with PayUMoney library. Because Firebase Phone Auth is not asking for RECEIVE_SMS permission.

What you can do is you can remove the library one by one and check if it is still asking for the RECEIVE_SMS permission.

If you find which library is causing this then you can write this in your Android Manifest

<uses-permission
        android:name="android.permission.RECEIVE_SMS"
        tools:node="remove" />

This will prevent a library from asking this permission internally. Also please check if your library is functional without this permission after adding this line to your app manifest.

For your particular question, PayUMoney is causing this issue and not Firebase so you can add this line to your manifest. and check the PayuMoney is functional.

like image 60
Abubakker Moallim Avatar answered Sep 21 '22 16:09

Abubakker Moallim