facebook

Geolocation on Iphone

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #327329 Reply

    Siz72
    Member

    Good morning,
    is there a way to use geolocation capability of iPhone and Android on Mobione program ?

    Thank you
    Regards

    #327330

    Kale
    Member

    Hi,

    you can use the Phonegap (Cordova) Framework for this.

    http://docs.phonegap.com/en/1.8.1/cordova_geolocation_geolocation.md.html#Geolocation

    In the building process for native apps, the phonegap framework will be automatically included.

    What I don´t know is, which version of the framework will be included. Maybe we can get some information from the MobiOne guys? 😉

    Greetings Kale

    #327443

    @Kale,

    >Maybe we can get some information from the MobiOne guys? 😉
    The Phonegap version is 1.1.0 🙂

    #327453

    Kale
    Member

    @octavio:

    Thanks for the information on this. Remember my problem with the deleted database after the app is updated?

    I found some information about this.

    From stackoverflow.com:

    I have a PhoneGap based iOS app which uses SQLite DB for offline storage. The app is not working after an app update in iOS 5.1. The same app is working fine in versions below 5.1.

    I explored few things and my analysis is

    When we install a app iOS creates a separate sandbox for that and all the data related to that app goes in to that.
    in iOS5.1 when we update an app new sandbox is created and the contents from old sandbox is moved here.
    For WebSQL i.e SQLite for PhoneGap in iOS 5.1 the DB is stored under caches folder(volatile storage). But in previous version of iOS the SQLite DB was stored under Documents folder in Sandbox which is persistent storage.
    The real problem is there is a file called “.preferences” in caches/preferences that has the path of websql DB. when i do an app update the sandbox path changes but in this file the previous sandbox is path is still available due to this the app is not working as the previous path is already deleted from device.

    From Phonegap.com:

    Persistence of localStorage / WebSQL databases

    The first issue is a policy issue — this change means that localStorage and WebSQL databases are not backed-up and may be deleted by iOS at any time to save space. In the “Data Storage Guidelines for iCloud” article it describes data in ~/Library/Caches as “Data that can be downloaded again or regenerated”.

    You thought localStorage was supposed to be persistent? So did I, but it appears that expiring localStorage is well within the definitions of the spec: Section 6.1 “Expiring stored data”

    The solution for embedded UIWebView developers is to backup and restore the databases from ~/Library/Caches to persistent storage (e.g the Documents folder), or move the storage location to persistent storage.

    This issue has been worked around and the backup/restore mechanism is implemented in Cordova 1.6.0, […]

    So the solution to this could be to implement a phonegap version above 1.6.0.

    Is this possible in the near future from your side?

    Greetings Kale

    #327457

    Hi Kale,

    Thanks for your feedback and help. We really apreciate it.

    >Is this possible in the near future from your side?
    Yes, an upgrade is definitely on our radar. We don’t have a hard timeframe yet. But it will be asap.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Geolocation on Iphone

You must be logged in to post in the forum log in