Yes, that was the problem. the --[[…]]–.
This is my build.settings for those with the same problem (android chash when try to vibrate) my Android is 4.3 and it works perfectly now with the following code.
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”,
“Icon@2x.png”,
“Icon-60.png”,
“Icon-60@2x.png”,
“Icon-72.png”,
“Icon-72@2x.png”,
“Icon-76.png”,
“Icon-76@2x.png”,
“Icon-Small.png”,
“Icon-Small@2x.png”,
“Icon-Small-40.png”,
“Icon-Small-40@2x.png”,
“Icon-Small-50.png”,
“Icon-Small-50@2x.png”,
},
},
},
android =
{
permissions =
{
{ name = “.permission.C2D_MESSAGE”, protectionLevel = “signature” },
},
usesPermissions =
{
“android.permission.INTERNET”,
“android.permission.VIBRATE”,
},
},
}