rohfosho / CordovaCallNumberPlugin

Call a number directly from your cordova application.
MIT License
185 stars 151 forks source link

Can't make it work #71

Closed Galiza closed 5 years ago

Galiza commented 5 years ago

I just can't make it work, I followed everything that the repo says and still nothing.

Here's my code:

HTML <button ion-button full round padding (click)="call()">Ligar</button>

TypeScript public call(): void { this.callNumber.callNumber("123456789", true); }

RealtyPage.html:69 ERROR TypeError: Object(...) is not a function at CallNumber.callNumber (vendor.js:78072) at RealtyPage.webpackJsonp.211.RealtyPage.call (main.js:232) at Object.eval [as handleEvent] (RealtyPage.html:69) at handleEvent (vendor.js:13921) at callWithDebugContext (vendor.js:15430) at Object.debugHandleEvent [as handleEvent] (vendor.js:15017) at dispatchEvent (vendor.js:10336) at vendor.js:10961 at HTMLButtonElement. (vendor.js:39885) at t.invokeTask (polyfills.js:3)

As soon as I click the button, this error appears.

JavierConde commented 5 years ago

Hi, i have the same issue. You need to use a previous version.

https://ionicframework.com/docs/v3/native/call-number/

This works for me.

Galiza commented 5 years ago

Hi, i have the same issue. You need to use a previous version.

https://ionicframework.com/docs/v3/native/call-number/

This works for me.

Thank you so much. As soon as I changed the version, it instantly worked!