Results 1 to 2 of 2

Thread: How to get diifference between Cordova app is working in Mobile Mobile or Mobile App

  1. #1

    Default Answered: How to get diifference between Cordova app is working in Mobile Mobile or Mobile App

    Hi friends,

    i created android hybrid app using sencha touch and cordova. How to get differentiate from app is run in mobile browser or Mobile app (web view) ?

    thanks in advance...

  2. Depending on when you need the value, you can either execute Ext.browser.is('WebKit') or if the Cordova library is loaded later you can check the same condition that the above code is using:

    Code:
    if (typeof window.PhoneGap != 'undefined' || typeof window.Cordova != 'undefined' || typeof window.cordova != 'undefined') {
    }
    But I would try Ext.browser.is('WebKit') first.

  3. #2
    Sencha Premium Member
    Join Date
    Jun 2011
    Posts
    46
    Answers
    5

    Default

    Depending on when you need the value, you can either execute Ext.browser.is('WebKit') or if the Cordova library is loaded later you can check the same condition that the above code is using:

    Code:
    if (typeof window.PhoneGap != 'undefined' || typeof window.Cordova != 'undefined' || typeof window.cordova != 'undefined') {
    }
    But I would try Ext.browser.is('WebKit') first.

Similar Threads

  1. Ext JS 4.2 widgets working on mobile maybe next time?
    By hschaefer123 in forum Sencha Ext JS Q&A
    Replies: 1
    Last Post: 21 Mar 2013, 4:46 AM
  2. Production build not working on mobile devices
    By chrigil in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 21 Mar 2013, 2:54 AM
  3. Ext.form.Select not working as expected on mobile
    By domingosnovo in forum Sencha Touch 1.x: Discussion
    Replies: 6
    Last Post: 29 Jun 2011, 10:23 AM
  4. Mobile Web App Developer Contest at Mobile Developer Summit 2010
    By swagat321 in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 17 Sep 2010, 8:35 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •