Closed rohands closed 8 years ago
I claim this issue. I will add add the popup dialog requesting permission to send sms before sending sms in Android M devices. Thanks
Hi yogeshbalan, The issue usually belongs to the one who reports the issue unless it is not from a community member. Please go through the README first. You have to find your own issues, report them, once they are approved, you can work on them. There is a wiki too. Before you report, go through the closed issues as well to avoid duplicates
Okay sandarumk. Thanks for helping. I will keep that in mind.
@sandarumk Any updates? Can I go ahead with the implementation?
@sandarumk Can I proceed?
The circle of trust should send the message using a single click because it is being used in extreme circumstances. Therefore adding another button click should be stopped. So what should be done is taking the permission when the user installs it. What is the current behavior of Android M in this case? It should be similar to the older versions. If not you can fix that
SEND_SMS
is classified as a dangerous permission. If listed in the manifest file, the system will NOT grant this permission directly during installation. Hence, the user can grant/decline this permission. So the point is that the system doesn't grant the permission during installation.
But again, all this would matter only if the target SDK is set to 23 or higher. The current target SDK is at 22. So, it does not matter. All the permissions mentioned in the Android Manifest file are granted during the installation of the app itself.
This could be a serious concern during the later stages of development of the app (setting target as 23)
For now, nope no issues.
The best practice, IMO is to lower the targetSdkVersion to 21, and android will do the rest. OR take permission while showing app-intro.
@yogeshbalan the problem is with targetSdkVersion 23 or higher. The current implementation (22) will not pose any problems.
http://inthecheesefactory.com/blog/things-you-need-to-know-about-android-m-permission-developer-edition/en This will solve all the problems you are having. So since our target version is 22 we do not have any problem as rohan said. So there is no need of worrying this for now . So I think there won't be any changes necessary in the manifest file as you mentioned in your issue right @rohands .
@sandarumk yes, no problem in the current implementation.
So we will keep this as it is. If we make our target version higher, we will revisit this. But for the time being this is not necessary.
Quoting developers.android.com,
Looks like Android Manifest file needs some changes. Before sending message in CircleOfTrust, I think we should mention using sms feature as a dangerous permission in the manifest.