Open jufracaqui opened 7 years ago
I had the same problem. It was solved by passing the phone number as string in JavaScript.
Hello, i tried doing this num.toString()
but i didn't get it to work. If you could please tell me how you did it i would really appreciate it.
Hello, I am using it like this:
this.callNumber.callNumber("32134421", true)
Hello, I have been facing this problem too. I am using numbers as strings but with the same problem. The application crashes after the call.
I was facing the same issue, in my case, I was using Ionic 4 and I was passing the number from my html component to my ts file as a number, to solve it I had to cast it from number to string, the application didn't crash after the call (iOS 12.3).
The plugin works like a charm on Android, but when trying to make the phone call on iOS it breakes.
The code i use to make the call is this:
window.plugins.CallNumber.callNumber(function(){}, function(){}, number, true);
The app crashes in CFCallNumber.m in this line:
number = [number stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
This is the log i get from xCode: