Comments (4)
If you're like me and hitting your head for a while over this one and using the Apple SimulatorApp, keep in mind that the Simulator does not contain a SIM card and will not open tel
or telprompt
links (which is what nativescript-phone is using).
Try using it on a real iOS device with calling capabilities.
from nativescript-phone.
+1 The same problem.
The further investigation here https://stackoverflow.com/questions/1981390/urlwithstring-returns-nil.
We need to encode a phone string before pass to dial method on ios.
We can use in our code encodeURIComponent(phoneNumber)
from nativescript-phone.
I am having issues with this as well.
Current versions:
- TNS cli 5.3.0
- tns-ios v5.3.1
- nativescript-phone 1.4.0
It is throwing this error in the device logs when passing a phone number into the dial
method:
-canOpenURL: failed for URL: "(null)" - error: "Invalid input URL"
The phone number I am passing in is in this format (111) 111-1111
, which was working with a previous version. After changing the format to 111-111-1111
the error is not thrown and I am prompted with the dial window. I running this on a real iOS device.
from nativescript-phone.
I have the same problem.
Versions:
- TNS cli 5.4.2
- tns-core-modules 5.4.3
- tns-ios 5.4.2
- nativescript-phone 1.4.0
I see this error in console (I am testing from real iOS device):
-canOpenURL: failed for URL: "(null)" - error: "Invalid input URL"
The phone number is: 014445555
from nativescript-phone.
Related Issues (20)
- Shipped ES6 code breaks --uglify build HOT 2
- Android fails if number doesn't contain "#" HOT 3
- Problem when dial within Observable.subscribe HOT 1
- SMS works but phone calls doesn't on android HOT 1
- Google Play policy governing the use of SMS and CALL_LOG permissions
- "Cannot send message text" error on iOS simulator HOT 2
- Plugin drops leading 0
- Error LSApplicationQueriesSchemes HOT 1
- Getting "No v4 support" and permission issue in Nativescript 6 version HOT 7
- Could you create a new release on NPM
- How to use async call? HOT 1
- Error : utils.ios.getter() is deprecated; use the respective native property instead HOT 3
- Is that possible to not pop up the android native send message dialog but directly send message in background? HOT 2
- Do not require phone feature
- Crash on xcode simulator HOT 9
- phone.sms prevents access to contacts HOT 3
- Class "MFMessageComposeViewController" referenced by type encoding not found at runtime. HOT 13
- Handle USSD with more than one pound sign (#) HOT 4
- [Android] sms() doesn't use default app
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-phone.