The APIs seem to work fine for other permissions such as calendar and camera (based on my testing), but I’ve tried every rendition I could think of for Storage, and it simply doesn’t work. Has anyone been able to make it work for Storage?
Can you put together a simple demo project that asks for the storage permission and put it in a .zip file and share a link to it here? I may have you file a bug report about it.
Rob
I put together a Demo project and may have figured something out in the process. The Allow Message thrown up by Android pops up regardless of whether or not I put the API Function in my code. In the Demo Project I made, it seemed to work in the order in which I put the permissions. But in Zantics Racing, it’s immediately Requesting Permissions over the top of anything else and not giving me the chance to explain the permission in my own words prior. It’s as if something else is triggering the requested permissions. So far, I’ve placed anything related to the SQLite database after the Permissions API, but Android is still Requesting Permissions over the top.
Does anyone know what else could trigger Android to request permissions outside of the API?
I think I might have figured out what’s causing this issue, but I don’t think it’s in my control to fix it. If I deny access to the Storage Permission that is automatically thrown up by Android, I get the message:
“Zantics Racing uses Expansion Files and needs external storage permission to access them. Re-request access?”
This is not a message I created. It is generated by Android as far as I can tell.
I believe that because I am using “useExpansionFile = true” in my build.settings, Android is requesting permission before I can ever use the Corona API to do so in a custom fashion.
Does anyone have any advice on this?
This behavior is staying very consistent and I can’t find a way around it. I believe this might be a bug in Corona when using “useExpansionFile = true”.
Have you filed this as a bug report yet using your sample project?
Rob
Rob, I just submitted a bug report… but I suspect this won’t be remedied in time to save my Indie Corner application. Thanks for the help though.