Android unsafe:tel: with phonegap application

I coded an application with phonegap.

I have a phone numbers list that I receive from a server. when an item from a list is clicked the controller trigers this function:

$scope.call = function(number){
        document.location.href = 'tel:' + number;
    }

on an iPhone it's ok, but on an Android I get:

unsafe:tel:+97235726333

why? Is it a utf-8 encoded problem?

Answers


some systems dont take the + in to considerations, i know i have had some issues with that in the past with older projects. one thing you could do is replace the + with 00 two zero's is the same as a plus, which then becomes a full integer without the + which might the the issue with the internal parser.

$scope.call = function(number){
   document.location.href = 'tel:' + number.replace("+","00");
}

Need Your Help

Strange double free behavior

c pointers malloc free double-free

Below I have a function trim(). Which removes the leading zeros from an array of ints. It returns a pointer, which it receives from malloc(). While running a loop of successive calls to trim() and ...

Why isn't align-self aligning my div to the bottom of my flexbox?

html css css3 flexbox

I have two equal-height columns and I am trying to get the "Read More" link in each column to sit at the bottom of the column, no matter how much content is in the adjacent column. I am using align...