Comments (6)
Hi!
Never heard of such thing before.
- what is the permission in question?
- what are you calling and how do you get the result?
- do you completely remove the app or install it on top of the non-dev version?
- is there a logcat of the dev build you can share?
from unityandroidpermissions.
I use it for android.permission.READ_EXTERNAL_STORAGE
and android.permission.WRITE_EXTERNAL_STORAGE
Here is the part of the code i use for the permissions. The function is called in Awake:
private void CheckPermissions()
{
if (UnityEngine.Application.platform == RuntimePlatform.Android)
{
if (!AndroidPermissionsManager.IsPermissionGranted(READEXTERNAL_PERMISSION) || !AndroidPermissionsManager.IsPermissionGranted(WRITEEXTERNAL_PERMISSION))
{
permissionsCount = 2;
AndroidPermissionsManager.RequestPermission(new[] { READEXTERNAL_PERMISSION, WRITEEXTERNAL_PERMISSION }, new AndroidPermissionCallback(
grantedPermission =>
{
allowedPermisionsCount++;
},
deniedPermission =>
{
deniedPermissionsCount++;
}));
}
}
}
I completely remove the non-dev version and install the dev version after. There is nothing related in logcat that I can send you.
The window just never appears, and permissions are automatically denied. Note that the code of the whole app is exactly the same, the only difference is that I build it as a dev-build. The non-dev build works just fine.
from unityandroidpermissions.
I think there are two reasons for the RequestPermission to return immediately with a result of "denied":
- The user has tapped "deny" and selected "don't ask again"
- The permission is not declared in the manifest.
Since 1 is not your case, could you check 2? However I'd expect it to be vice versa - dev build adds read_external_storage automatically, while you need to add it manually for release builds.
from unityandroidpermissions.
I will check and let you know
from unityandroidpermissions.
I removed the permission tests, and my app is crashing (due to not having permissions to read data for example) in dev build. Therefore I don't think the dev build adds permissions on its own.
Is there maybe a way for the plugin to not enable SkipPermissionsDialog
, without changing the plugin itself? Maybe I can use the default dialog just for the dev build.
from unityandroidpermissions.
Unfortunately there isn't. If skipPermissionsDialog
is not set, then all the permissions are being prompted at the very first start, so there's little point in having any subsequent prompts (apart from if the user has denied the request).
from unityandroidpermissions.
Related Issues (15)
- Merge Manifest.xml instead override it HOT 2
- Corrupted or pink screen on some Android devices after usage of plugin HOT 12
- ANRs And crashes HOT 1
- Denied Permission HOT 3
- Support for the Android M "Don't show again" checkbox HOT 2
- OnDenyAndNeverAskAgain HOT 2
- Stupid question HOT 2
- com.unity3d.plugin.UnityAndroidPermissions$IPermissionRequestResult2 ClassNotFoundException HOT 3
- Android UI Dialog Doesn't Show Up HOT 4
- Doesn't work on Android 8 (O) HOT 1
- MainThread issue HOT 7
- Not working as expected HOT 3
- No permission dialog HOT 3
- Callbacks not on Main Thread issue HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unityandroidpermissions.