Receive_SMS权限问题 [英] Receive_SMS Permission issue

查看:952
本文介绍了Receive_SMS权限问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如您所知,根据Google开发者政策,如果我们的应用程序核心功能不依赖SMS,则应删除RECEIVE_SMS android权限并尝试查找其他替代方法.

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.

但是我的问题是我没有在清单或询问运行时中使用RECEIVE_SMS.不过,Google仍警告我使用RECEIVE_SMS权限.

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.

虽然在Play商店中,但如果我在此应用中检查了所需的权限,则它会显示RECEIVE_SMS权限.

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.

但是我找不到它.

这也是清单中的一个:

如您所见,我不是在清单或运行时中请求该权限.

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

我正在使用Firebase Phone身份验证和PayUMoney付款集成.这两个可能引起问题吗?或他们在内部要求获得此许可.

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?

推荐答案

好,问题出在PayUMoney库上.因为Firebase电话验证不要求RECEIVE_SMS权限.

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

您可以做的是,可以逐个删除该库,然后检查它是否仍在请求RECEIVE_SMS权限.

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.

如果您找到导致此问题的库,则可以在Android清单中编写该代码

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.

对于您的特定问题,PayUMoney导致了此问题,而不是Firebase,因此您可以将此行添加到清单中.并检查PayuMoney是否正常工作.

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.

这篇关于Receive_SMS权限问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆