Git Product home page Git Product logo

Comments (4)

ChrisJohns-me avatar ChrisJohns-me commented on September 13, 2024 5

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.

KonstantinObuhov avatar KonstantinObuhov commented on September 13, 2024 4

+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.

dmserrano avatar dmserrano commented on September 13, 2024 2

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.

salvadorcoronel avatar salvadorcoronel commented on September 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.