This is a paid asset, but now you can download Android Permission Granter Plugin for FREE, Please keep in mind this package is provided only for learning purposes or to be able to test before buying the product, NOT FOR COMMERCIAL PURPOSES.
For more detail this asset from the Unity Asset Store: Click Here
Android Permission Granter Plugin v1.1.0
“If possible, please buy the package to support the developer”
Google made significant changes to how permissions are requested from users in Android 6.0 Marshmallow. This is a needlessly complex issue to solve for the average app developer trying to focus on the app itself.
Android Permission Granter Plugin makes it easy to check and grant any runtime permission with Android 6.0 devices. Saves a lot of time for every Unity developer!
Features:
* Support for Android 6.0 runtime permissions
* No hardcoded permission enumerations, developer can request any permission they need
* No bloat, only includes features for permission requests and the mandatory dependencies (android support v4 library)
* Example scene
* Simple to setup, simple to use