Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Cordova/PhoneGap for GPS tracking ?

  • 18-11-2014 9:19am
    #1
    Closed Accounts Posts: 3,596 ✭✭✭


    Has anyone had any experience of developing a GPS app using these technologies? my app is required to record and save alternative SAT-NAV routes to ones suggested. I have been looking into using Cordova/Phonegap as its cross platform, but I'm not confident it can be used for GPS route storing.


Comments

  • Registered Users, Registered Users 2 Posts: 1,287 ✭✭✭joe_chicken


    Cordova is all about plugins.

    If you can find the right plugin you should be able to write it all in js.

    this might be a good place to start.

    If you can't find the right plugin make your own (base it on a pre existing if you need) and do all the UI stuff in js. (native will still need to be written for both, but no UI specific stuff)

    Bit of a steep learning curve at the start, but once you are up and running, it's easy enough.

    Basically, everything is possible using Cordova.

    Although if your javascript is limited and if you are comfortable already with iOS and Android UI tools, I'd probably just stick with them.


  • Closed Accounts Posts: 3,596 ✭✭✭threein99


    Cordova is all about plugins.

    If you can find the right plugin you should be able to write it all in js.

    this might be a good place to start.

    If you can't find the right plugin make your own (base it on a pre existing if you need) and do all the UI stuff in js. (native will still need to be written for both, but no UI specific stuff)

    Bit of a steep learning curve at the start, but once you are up and running, it's easy enough.

    Basically, everything is possible using Cordova.

    Although if your javascript is limited and if you are comfortable already with iOS and Android UI tools, I'd probably just stick with them.


    Thanks for the reply, this a final year college project so I'm a bit weary of getting in above my head trying to make this work in Cordova, I've been playing around with it the last week or so and have liked it, but I just dont want to waste time if its not suitable.


  • Registered Users, Registered Users 2 Posts: 1,287 ✭✭✭joe_chicken


    You basically have to weigh up the pros and cons:

    pro:
    - Multi platform.
    - Javascript.
    - Big plugin library.

    cons:
    - Steep(ish) learning curve.
    - Javascript. ( ;) )
    - May be heavy weight for what you need.

    So basically the 2 questions you should ask yourself are:
    - Do I care a lot about multiplatform.
    - Am I comfortable writing asynchronous javascript.

    If the answer to one or both of those is no, then I wouldn't bother.


  • Registered Users, Registered Users 2 Posts: 18,272 ✭✭✭✭Atomic Pineapple


    Depending on your needs and your coding background this might actually be easier to do and do well in native code. If you don't need it to be cross platform creating a basic GPS aware Android application is relatively easy depending on what you've learned in coding so far.


  • Registered Users, Registered Users 2 Posts: 2,032 ✭✭✭colm_c


    Battery life/power should also be a concern, always on GPS tends to have a decent battery drain.

    Native development will offer greater degree of flexibility over PhoneGap and greater performance too.


  • Advertisement
  • Closed Accounts Posts: 3,596 ✭✭✭threein99


    colm_c wrote: »
    Battery life/power should also be a concern, always on GPS tends to have a decent battery drain.

    Native development will offer greater degree of flexibility over PhoneGap and greater performance too.

    Cheers. I am split 50/50 which way to go.

    Would anyone have any opinions on on a database I could use with PhoneGap ? I have been looking at Postgres as a means of storing spatial data


  • Banned (with Prison Access) Posts: 1,279 ✭✭✭kidneyfan


    If you are a university student and you are studying computer science you probably have a solid background in either or both C and java. If you have a solid background in c you should use Xcode. If you are a university student and have a solid background in Java you should write the app in Java and aim it at Android.


  • Registered Users, Registered Users 2 Posts: 149 ✭✭Zander1983


    threein99 wrote: »
    Cheers. I am split 50/50 which way to go.

    Would anyone have any opinions on on a database I could use with PhoneGap ? I have been looking at Postgres as a means of storing spatial data

    You can use local storage through phonegap to store data on the device. Otherwise, you can post to a server and use any database you like


  • Registered Users, Registered Users 2 Posts: 2,793 ✭✭✭John_Mc


    Zander1983 wrote: »
    You can use local storage through phonegap to store data on the device. Otherwise, you can post to a server and use any database you like

    There's also the local database where you can use Web SQL queries to work with. Most of the time key value pairs are sufficient so localstorage is fine and less hassle as there's no SQL to write.


Advertisement