Im developing an app that when you click a button the phone has to vibrate, the
issue is that the phone just chashes. Saing that I need permitions to vibrate. I've already set this permition in the build.setting (android manifiest).
Here is the code
build.settings:
settings =
{
orientation = {
default = "portrait",
supported = { "portrait", }
},
iphone =
{
plist=
{
CoronaUseIOS7LandscapeOnlyWorkaround = true,
CoronaUseIOS7IPadPhotoPickerLandscapeOnlyWorkaround = true,
CoronaUseIOS6LandscapeOnlyWorkaround = true,
CoronaUseIOS6IPadPhotoPickerLandscapeOnlyWorkaround = true,
UIApplicationExitsOnSuspend = false,
UIPrerenderedIcon = true,
UIStatusBarHidden = false,
CFBundleIconFile = "Icon.png",
CFBundleIconFiles =
{
"Icon.png",
"
[email protected]",
"Icon-60.png",
"
[email protected]",
"Icon-72.png",
"
[email protected]",
"Icon-76.png",
"
[email protected]",
"Icon-Small.png",
"
[email protected]",
"Icon-Small-40.png",
"
[email protected]",
"Icon-Small-50.png",
"
[email protected]",
},
},
},
android =
{
permissions =
{
{ name = ".permission.C2D_MESSAGE", protectionLevel = "signature" },
},
usesPermissions =
{
"android.permission.INTERNET",
"android.permission.VIBRATE",
},
},
}
the file that uses the vibration is:
local onButtonEvent = function (event )
system.vibrate()
end
I read all post in Corona page without success.
Can I see the android manifest to see if the permissions are there.
I've read that is a Corona
issue not sure.