Skip to content

Commit

Permalink
Updated Asset Store link
Browse files Browse the repository at this point in the history
  • Loading branch information
yasirkula committed Mar 3, 2020
1 parent 4719de5 commit c7f1f45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![runtime_permission](Images/permission.png)

**Available on Asset Store:** https://www.assetstore.unity3d.com/en/#!/content/117803
**Available on Asset Store:** https://assetstore.unity.com/packages/tools/integration/android-runtime-permissions-117803

**Forum Thread:** https://forum.unity.com/threads/open-source-androidruntimepermissions-manage-runtime-permissions-synchronously-on-android-m.528833/

Expand All @@ -11,7 +11,8 @@
This plugin helps you query/request runtime permissions **synchronously** on Android M and later. It also works on older Android versions and detects whether a requested permission is declared in AndroidManifest or not.

## How To
Simply import *RuntimePermissions.unitypackage* to your project and you are good to go! There is one optional step, though: by default, Unity shows a permission dialog on startup to prevent plugins from crashing/malfunctioning. This can be disabled, if you want; but you must make sure to handle all the runtime permissions carefully in your app's lifecycle. To disable this dialog, add the following line inside the `<application>...</application>` tag of *Plugins/Android/AndroidManifest.xml*:

Simply import [RuntimePermissions.unitypackage](https://github.com/yasirkula/UnityAndroidRuntimePermissions/releases) to your project and you are good to go! There is one optional step, though: by default, Unity shows a permission dialog on startup to prevent plugins from crashing/malfunctioning. This can be disabled, if you want; but you must make sure to handle all the runtime permissions carefully in your app's lifecycle. To disable this dialog, add the following line inside the `<application>...</application>` tag of *Plugins/Android/AndroidManifest.xml*:

```xml
<meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="true" />
Expand All @@ -35,6 +36,7 @@ You can use the following *static* functions of **AndroidRuntimePermissions** to
`void OpenSettings()`: opens the settings for this app, from where the user can manually grant permission(s) in case a needed permission's state is *Permission.Denied*

## Example Code

The following code requests *WRITE_EXTERNAL_STORAGE* permission (it must be declared in *AndroidManifest*) when bottom-right corner of the screen is touched:

```csharp
Expand Down
Binary file removed RuntimePermissions.unitypackage
Binary file not shown.

0 comments on commit c7f1f45

Please sign in to comment.