brentvatne / pacer

13 stars 6 forks source link

On android with latest ionic framework : I'm trying to use this plugin, so far it does keep the app running in background but I get errors when i try to call window.plugin.backgroundMode.disable(); (or enable() or configure()... ) I get: Service not Registered: de.appplant.cordova.plugin.background.BackgroundMode #1

Open boltex opened 9 years ago

brentvatne commented 9 years ago

Hi @boltex - I'll look into this - actually I've been meaning to switch this over to use the BackgroundGeolocation ngCordova plugin - I might get a chance to do this tonight, will let you know.

boltex commented 9 years ago

you should not: backgroundgeolocation on android uses "android.location" which is not precise, and drains the battery a lot. and gives errors for almost nothing. google recommends to use "google.location" api instead . see : http://developer.android.com/reference/android/location/package-summary.html

I was just wondering if you get those errors i'm reffering to also yourself. (in particular i cannot call enable, nor disable, nor configure... i get: not Registered: de.appplant.cordova.plugin.background.BackgroundMode

Can you rebuild your ionic app from a fresh folder with the latest ionic and background-mode plugin versions? thanks for you help man !

brentvatne commented 9 years ago

@boltex - Ah interesting, I hadn't looked into it much. Yeah I can do that when I'm off work tonight.

brentvatne commented 9 years ago

Didn't get a chance to, perhaps this weekend

boltex commented 9 years ago

No problem ! whenever you can, i'm continuing to test with the background-mode plugin and will report if i find anything worth sharing!

PremkumarAgrawal commented 7 years ago

Hey @boltex & @brentvatne did you got any solution on it...