I’m having a problem with my game crashing, and it seems like it’s related to Android permissions. Whenever I try to use the vibrate feature or network access, my app crashes. I added the appropriate settings to my build document:
settings = { orientation = { default = "landscapeRight", supported = { "landscapeRight", "landscapeLeft", } }, iphone = { plist = { UIStatusBarHidden = true, UIPrerenderedIcon = true, -- set to false for "shine" overlay UIAppFonts = { "C64 User Mono.ttf" } } }, --[[-- Android permissions android = { usesPermissions = { "android.permission.INTERNET", "android.permission.VIBRATE", "android.permission.ACCESS\_NETWORK\_STATE" }, },]]-- }
However, this still doesn’t seem to be working. When I install the app on my phone, I get a message informing me that my app “does not require any special access.” And whenever I get to a part of my game that uses network access or the system.vibate functionality, the crash will occur.
Am I missing something basic? It seems like everything should be set up correctly. I tried both with and without the versionCode, but it doesn’t seem to make a difference.