Dial a phone number and send an email in hybrid app

4 posts, 0 answers
  1. Kenneth
    Kenneth avatar
    101 posts
    Member since:
    Apr 2014

    Posted 14 Sep Link to this post

    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

     

  2. Kenneth
    Kenneth avatar
    101 posts
    Member since:
    Apr 2014

    Posted 14 Sep in reply to Kenneth Link to this post

    RESOLVED:

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

    I makes sense, now...

     

  3. Kenneth
    Kenneth avatar
    101 posts
    Member since:
    Apr 2014

    Posted 14 Sep in reply to Kenneth Link to this post

    RESOLVED:

    It should be data-rel not rel

    makes sense, now...

     

  4. Martin
    Admin
    Martin avatar
    67 posts

    Posted 19 Sep Link to this post

    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.

     
Back to Top