1. #1
    Ext User
    Join Date
    Oct 2010
    Posts
    5
    Vote Rating
    0
    MrNibbles is on a distinguished road

      0  

    Exclamation Geolocation issue when app saved to homescreen on iPhone

    Geolocation issue when app saved to homescreen on iPhone


    So far, loving Sencha Touch!

    I am using the geolocation api in the following way:
    Code:
    var geo = new Ext.util.GeoLocation({
    	    autoUpdate: false,
    	    listeners: {
    	        locationupdate: function (geo) {
      				Ext.getBody().unmask();
    		        },
    		locationerror: function (   geo,
    		                               bTimeout, 
    		                               bPermissionDenied, 
    		                               bLocationUnavailable, 
    		                               message) {					
    				Ext.getBody().unmask();	
    				Ext.getBody().mask(false, 'Permission Denied: ' + bPermissionDenied + ' ' + 'bLocation Unavailable : ' + bLocationUnavailable);
    		        }
    		    }
    });
    Everything works fine in the iPhone and android browser, but when the app is saved to the homescreen, when updating the location, the locationerror event instantly fires with bPermissionDenied returning true.

    I cant see why this would be the case!

    If anyone could shed some light on this, that would be fantastic

    thanks very much for sencha

  2. #2
    Ext User xnakxx's Avatar
    Join Date
    Sep 2010
    Location
    Central Valley Ca
    Posts
    84
    Vote Rating
    0
    xnakxx is on a distinguished road

      0  

    Default


    not to insult your intelligence or anything, but you DO have Location Services turned on on the phone rt?

  3. #3
    Ext User
    Join Date
    Oct 2010
    Posts
    5
    Vote Rating
    0
    MrNibbles is on a distinguished road

      0  

    Default


    Quote Originally Posted by xnakxx View Post
    you DO have Location Services turned on on the phone rt?
    I do, unfortunately!

    To add to this mystery, when saved to the homescreen in the simulator, the program does not instantly fire the permission denied event. Instead the timeout event is true, and the permission denied is false.

  4. #4
    Ext User xnakxx's Avatar
    Join Date
    Sep 2010
    Location
    Central Valley Ca
    Posts
    84
    Vote Rating
    0
    xnakxx is on a distinguished road

      0  

    Default


    can you post a link to your app?

  5. #5
    Ext User
    Join Date
    Oct 2010
    Posts
    5
    Vote Rating
    0
    MrNibbles is on a distinguished road

      0  

    Default


    Will PM you a link, this is client work so i am unfortunately unable to make this public yet!

    I am migrating it to a non ip-masked server at the mo, will send when ready.

    Many thanks

  6. #6
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,119
    Vote Rating
    507
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    I highly doubt it has anything to do with Touch, it's just using the underlying stuff in the browser.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  7. #7
    Ext User
    Join Date
    Oct 2010
    Posts
    5
    Vote Rating
    0
    MrNibbles is on a distinguished road

      0  

    Default


    Quote Originally Posted by evant View Post
    I highly doubt it has anything to do with Touch, it's just using the underlying stuff in the browser.
    I completely agree, but it certainly seems like an odd behaviour! I will pm you the dev link as well (as long as you dont mind)

  8. #8
    Ext User
    Join Date
    Oct 2010
    Posts
    5
    Vote Rating
    0
    MrNibbles is on a distinguished road

      0  

    Default


    Hmm well i am somewhere nearer to solving the mystery.

    It appears to only happen on my particular phone. I am on 4.2 beta 3.

    I have tested it on another 3 iphones all running 4.1 and it works fine.

    Sorry for the fuss

  9. #9
    Sencha User siebmanb's Avatar
    Join Date
    Aug 2011
    Location
    Geneva (CH) - Grenoble (FR)
    Posts
    253
    Vote Rating
    15
    siebmanb will become famous soon enough

      0  

    Default


    From what I've read around the web and on that forum, apps don't behave the same when saved on the Home Screen compared to Safari. It seems that Apple is decreasing the performances of those apps, and things like auto-loading stores don't seem possible...

    Apparently it started recently : http://www.theregister.co.uk/2011/03...ons_as_safari/

  10. #10
    Sencha User
    Join Date
    Jan 2012
    Posts
    2
    Vote Rating
    0
    veronicaB is on a distinguished road

      0  

    Default


    Walmart bought app developer Kosmix and introduced @WalmartLabs, an e-commerce division of the retail company. Since that time, @WalmartLabs has acquired three other mobile development corporations, such as the newest purchase of Small Society. Walmart purchases fourth social app developer. These companies are all mobile commerce, e-commerce and mobile shopping focused. Thess apps are well timed release comes ahead of the holiday shopping season. The first purchase that was used to create @WalMartLabs was Kosmix, a company that categorized the web into topic areas and encyclopedia-like display, which shows the relationship between the topics. Grapple, a mobile point-of-sale app creator, was also purchased by @WalmartLabs.

Similar Threads

  1. Testing iPhone app wihout iphone (or simulator): Chrome user agent spoofing?
    By charris in forum Sencha Touch 1.x: Discussion
    Replies: 10
    Last Post: 9 Jan 2012, 12:24 PM
  2. [CLOSED] iPad IPhone Chart issue
    By evgenspb in forum Ext 3.x: Bugs
    Replies: 8
    Last Post: 25 Oct 2010, 1:21 AM
  3. Prompt to 'install' (add to homescreen) on first Safari visit
    By pstinnett in forum Sencha Touch 1.x: Discussion
    Replies: 5
    Last Post: 17 Oct 2010, 7:15 AM
  4. Recognizing when app is stored on home screen? - iPhone
    By jamespaxi in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 28 Jul 2010, 3:39 PM
  5. Turning Sencha Touch-based app into a true native iPhone app?
    By inapp in forum Sencha Touch 1.x: Discussion
    Replies: 7
    Last Post: 21 Jul 2010, 5:59 PM

Thread Participants: 4

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar