1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    51
    Vote Rating
    0
    Answers
    3
    alexdran is on a distinguished road

      0  

    Default Unanswered: Native app not working in iOS simulator requiring Ext.device.Device or Connection

    Unanswered: Native app not working in iOS simulator requiring Ext.device.Device or Connection


    Hello all
    as per my topic title native iOS simulator is blocking on loading (with 3 circles)
    by requiring

    'Ext.device.Connection'

    or

    'Ext.device.Device'


    I'm using sencha touch 2.1.0 and cmd 3.0.0.25
    was this issue supposed to be fixed??


    is there any solution or workaround to use device info and connection with iOS
    thank you in advance

    alex

  2. #2
    Sencha User
    Join Date
    May 2012
    Posts
    51
    Vote Rating
    0
    Answers
    3
    alexdran is on a distinguished road

      0  

    Default


    should be using phonegap replacing Device and Connection functions

    is there a way in case of running the app via browser to require dynamically the classes
    that are failing on native iOS package

    here is what I'm trying to do

    Code:
        getDeviceUID: function() {
            if (typeof(device)=="undefined") {
                Ext.require('Ext.device.Device');
                return Ext.device.device.uuid;
            } else {
                return device.uuid;
            }
        },
    but Ext.device.device.uuid is undefined unless i require the class with requires on top
    of app.js (that again prevent my app to run natively on iOS simulator)

    Code:
        requires: [
            'Ext.MessageBox',
            'Ext.device.Geolocation'
            //'Ext.device.Connection',
            'Ext.device.Device',
            //'Ext.device.Camera'
        ],
    thank you again for the help
    Alessandro