For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 4 replies, 3 voices, and was last updated 14 years, 1 month ago by
support-octavio.
-
AuthorPosts
-
Siz72MemberGood morning,
is there a way to use geolocation capability of iPhone and Android on Mobione program ?Thank you
RegardsJune 20, 2012 at 6:08 am #327330
KaleMemberHi,
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
June 21, 2012 at 8:03 pm #327443
support-octavioMember>Maybe we can get some information from the MobiOne guys? 😉
The Phonegap version is 1.1.0 🙂June 22, 2012 at 2:59 am #327453
KaleMemberThanks 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
June 22, 2012 at 5:31 am #327457
support-octavioMemberHi 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. -
AuthorPosts
