Error Opening A Phone Call With System.openurl()

When I use the function system.openURL(“tel:+39nnnnnnnnnn”) on Android it gives me an error saying: “Protocol not supported”. But if I try the same function call with the same URL on iOS it works all fine. So what is the problem?

Thank you a lot,

Andrea

Do you have the proper permissions in your build.settings?

        usesPermissions =
        {
            “android.permission.READ_PHONE_STATE”,
        },

I think there may be another one, I just can’t find it at the moment.

I’ve tried to change my build.settings as you said adding some other permission just to be sure, but it still doesn’t work.
 

settings = {     orientation =     {         default = "portrait",     },     iphone =     {         plist=         {             UIHiddenStatusBar= true,             CFBundleIconFile = "Icon.png",             CFBundleIconFiles = {                "Icon.png",                "Icon@2x.png",                "Icon-72.png",             },         },     },     android =     {         usesPermissions =         {             "android.permission.INTERNET",             "android.permission.CALL\_PHONE",             "android.permission.CALL\_PRIVILEGED",             "android.permission.PROCESS\_OUTGOING\_CALLS",             "android.permission.READ\_PHONE\_STATE",         },     }, }

Problem solved!! I just had to modify my build.settings like this one posted above…thank you!!

Do you have the proper permissions in your build.settings?

        usesPermissions =
        {
            “android.permission.READ_PHONE_STATE”,
        },

I think there may be another one, I just can’t find it at the moment.

I’ve tried to change my build.settings as you said adding some other permission just to be sure, but it still doesn’t work.
 

settings = {     orientation =     {         default = "portrait",     },     iphone =     {         plist=         {             UIHiddenStatusBar= true,             CFBundleIconFile = "Icon.png",             CFBundleIconFiles = {                "Icon.png",                "Icon@2x.png",                "Icon-72.png",             },         },     },     android =     {         usesPermissions =         {             "android.permission.INTERNET",             "android.permission.CALL\_PHONE",             "android.permission.CALL\_PRIVILEGED",             "android.permission.PROCESS\_OUTGOING\_CALLS",             "android.permission.READ\_PHONE\_STATE",         },     }, }

Problem solved!! I just had to modify my build.settings like this one posted above…thank you!!