Cross-mobile background service -


the goal record , analyze gps tracks:

  • for ios , android devices gps required record/analyze in same time
  • for other devices (tablet - desktop) enough analyze recorded tracks (in browser)

it ok have platform-specific code, i'd share "analyze" part between ios, android , web and able run code while ios/android app backgrounded.

i have "analyze" code written in javascript, started looking options in order:


1) do in web app

ios safari stops running javascript when backgrounded.

no luck.


2) use phonegap or alike

javascript stops when backgrounded. proposed write service code native plugin.

no luck.


3) use titanium

spent 2 weeks find android service implementation in titanium incomplete. lacks startforeground(..), used ask android not kill service. tried implement native module this, reports while service running, javascript don't.


4) use marmalade mobile , compile c++ javascript web

quick googling said c++ code can't run service


5) use mosync mobile , compile c++ javascript web

quick googling said not support services. on other hand saw startforeground(..) in sources, maybe worth rechecking.


7) write in c: native ios, jni android, compile javascript web

haven't checked yet


6) use codename 1 mobile , compile java javascript web

haven't checked yet


and questions:

q1. can confirm each above option if can or can not used such app

q2. interested in titanium (as invested in it). i'm thinking of native android module dummy service nothing asks android not kill process real titanium service running along side activity.

will work?

q3. other options / general advice?

thank you.

  1. when met "super-duper" framework limitations came native knowledge: add plugin phonegap learn how link it, write both platforms.

  2. titanium no experience, sorry. don't think open page read hello word.

  3. back original task, again outside of shoes ( ask , should respond)

"the goal record , analyze gps tracks: i'd share "analyze" part between ios, android , web , able run code while ios/android app backgrounded."

suggestion 1: re-write code in c / c++. compile .so link android sdk / ndk , ios.

suggestion 2: "i have "analyze" code written in javascript, started looking options " move code server side, run node.js , existing code. apps notification result.

suggestion 3: write real platform specific app , use hardware + os capabilities fully. javascript purpose other hard maths.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -