Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Nativ call not working

$
0
0

Hello,

I try to made a call, when the user tap on a phonenumber:
(The page is display modal)

import { InAppBrowser, InAppBrowserObject } from '@ionic-native/in-app-browser/ngx';

 constructor(
    private inAppBrowser: InAppBrowser,
  )
  openUrl(url: string) {
    const browser: InAppBrowserObject = this.inAppBrowser.create(url, '_system', 'hidden=yes,location=yes');
  }

  launchCall(n: string) {
    alert(n);
    const browser: InAppBrowserObject = this.inAppBrowser.create('tel:' + n, '_system', 'hidden=yes,location=yes');
  }

  sendMail(url: string) {
    const browser: InAppBrowserObject = this.inAppBrowser.create(
      'mailto:' + url + '?subject=Subject', '_system', 'hidden=yes,location=yes');
  }

openURL and sendMail is working

But not launchCall.

I have in my config.xml:







Where is my mistake?

Thank you!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>