1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    2
    Vote Rating
    0
    ramu385 is on a distinguished road

      0  

    Default Unanswered: Sencha Touch: Problem with dialing phone number from sencha application

    Unanswered: Sencha Touch: Problem with dialing phone number from sencha application


    We created a telephone directory sencha touch mobile application for our company. We have a requirement to dial a employee by tapping the phone number in the employee details screen which should trigger dialing the phone. To achieve the same we used the code highlighed in green color which works in iOS and Andorid Icecream (Tested in older version of Samsung) but failing in Jellybean OS. Can someone help us how to overcome this or what is the best way to make it work in all the devices.




    Ext.Viewport.setActiveItem({ xtype: 'adminstaffdetailview', styleHtmlContent: true, html: adminStaffDetailsTemplate,
    listeners: {
    tap: function( tap, element ){
    if(tap.delegatedTarget.id == 'rowPhoneTap'){
    window.location = "wtai://wp/mc;[" + tap.delegatedTarget.innerText.trim() + "]";
    }

    },
    element: 'element',
    delegate: 'tr'
    }});
    Ext.Viewport.unmask();
    }


    Any suggestions would be really appreciated. Thanks!

    Many Thanks
    Ram


  2. #2
    Sencha User
    Join Date
    Jan 2012
    Location
    London, UK
    Posts
    497
    Answers
    25
    Vote Rating
    51
    shepsii has a spectacular aura about shepsii has a spectacular aura about shepsii has a spectacular aura about

      0  

    Default


    do you not have any luck with tel:number as the window location? Going to be looking into this tomorrow so will report back!
    I blog about Sencha Touch at www.senchatouchdev.com

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Posts
    2
    Vote Rating
    0
    ramu385 is on a distinguished road

      0  

    Default


    Thanks for your reply. We tried both. window.location = "callto:[phoneNumber]"; and window.location = "tel:[phoneNumber]"; . No luck with that. Is there any other way we can sort it out? Thanks!

  4. #4
    Sencha User
    Join Date
    Oct 2010
    Posts
    1
    Vote Rating
    0
    LWNeo is on a distinguished road

      0  

    Default


    try thes it work for me: window.location. href = "wtai://wp/mc;"+this.currentMobile.phone;
    this.currentMobile.phone == 123456789

Thread Participants: 2

Tags for this Thread