Closed derwaldgeist closed 4 years ago
You need to enable writing to external storage in Player Settings.
Do you mean this flag?
It's already enabled.
In that case your app lacks runtime permissions. NatShare doesn't handle permissions on Android (given Unity's Permissions
API), so I'd recommend filing a bug report with Unity since calling RequestUserPermission
doesn't actually show a permission dialog. Also, you might be able to get it to show by deleting the app then reinstalling it.
Ok, I will try this. Is this mentioned in the docs? Anyways, thanks for your fast response on a Sunday.
Android permissions aren't mentioned because the issue you are facing seems rare (usually Player Settings fixes it). In any case, I'll mention it. The docs are still under construction.
Ok, I see. Maybe it's because I am handling all permissions myself on app startup, to make onboarding nicer.
I can confirm it works with implementing permission management. Awesome! Thanks again for the fast support.
A followup on #80 which has been marked as being resolved. On a Samsung S10 5G, the problem still persists even with the latest 1.2.3 release on the Unity Asset Store:
Is works fine on a Xiaomi Mi9 and on an iPhone X.
I tried calling
before executing the commit, but this didn't work either. The user won't get a request, and the app still crashes.
The only workaround so far is placing this before the call:
However, in this case even my Xiaomi won't write to the album anymore. Which works without the permission checkback. But only to the default album, as described in #95.