Android is unsafe: tel: with phonegap app

I have encoded a telephony application.

I have a list of phone numbers that I get from the server. when you click an item from the list, the controller launches this function:

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

on the iPhone this is fine, but on Android I get:

 unsafe:tel:+97235726333 

why? Is this a problem with utf-8 encoding?

+6
source share
1 answer

some systems do not accept considerations + in considerations, I know that I had some problems with previous projects. one thing you could do is replace + with 00, the two zeros coincide with the plus, which then becomes a complete integer without +, which can cause a problem with the internal parser.

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

All Articles