This is a migrated thread and some comments may be shown as answers.

Dial a phone number and send an email in hybrid app

3 Answers 72 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kenneth
Top achievements
Rank 2
Iron
Kenneth asked on 15 Sep 2016, 12:51 AM

In a previous cordova app I built not using the telerik platform I was able to dial and email like this:

            <a id="btn_phone" href="tel:+1-123-123-1234" rel="external" data-role="button" data-icon="phone">call me</a>

            <a id="btn_email" href="mailto:abc@123.com" rel="external" data-role="button" data-icon="mail">email me</a>

But this is not working for me in my test telerik platform hybrid app.

I saw a similar post and the suggestion was to add a plugin...I thought this behavior was 'built-in' to cordova because in my old app just setting the href to tel: or mailto: opened the dialer or email.

How can I get this to work using the telerik platform?

The requirement is to download a client's phone number and email (doing that) then present links so the user can click the link and open the dialer with the phone number ready to dial, or the email client in compose mode with the email recipient preset.

It should work on android, iphone, and (probably) windows phone.

Thanks

 

3 Answers, 1 is accepted

Sort by
0
Kenneth
Top achievements
Rank 2
Iron
answered on 15 Sep 2016, 01:11 AM

RESOLVED:

instead of rel="external" it should be data-rel="external"

I makes sense, now...

 

0
Kenneth
Top achievements
Rank 2
Iron
answered on 15 Sep 2016, 01:12 AM

RESOLVED:

It should be data-rel not rel

makes sense, now...

 

0
Martin
Telerik team
answered on 19 Sep 2016, 10:59 AM
Hi Kenneth,

I am glad to hear you were able to resolve the issue.

Indeed when using Kendo Hybrid UI, you declaratively define a Kendo UI widget by using data attributes and configure its options using "data-" as prefix.

Here is a sample on linking to external pages.

Let me know if you need further information.

Regards,
Martin
Telerik by Progress
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
Apache Cordova
Asked by
Kenneth
Top achievements
Rank 2
Iron
Answers by
Kenneth
Top achievements
Rank 2
Iron
Martin
Telerik team
Share this question
or