Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start service Intent on calling BackgroundGeolocation.start() #172

Closed
rohithramachandran opened this issue Apr 7, 2018 · 2 comments

Comments

@rohithramachandran
Copy link

rohithramachandran commented Apr 7, 2018

Your Environment

  • Plugin version:0.5.0-alpha.10
  • Platform: Android
  • OS version: 7
  • Device manufacturer and model: Galaxy Note 5
  • React Native version: 0.54.0-rc.3
  • Plugin configuration options:

Context

When I simply copy the Configuration from Readme , BackgroundGeolocation.start(); is showing not throwing any error but location is not getting shared.and no notification is getting popped up
getting error in logcat as
Unable to start service Intent { flg=0x4 cmp=com.onewaycorp.daddysroad/com.marianhello.bgloc.LocationService launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } (has extras) } U=0: not found

BackgroundGeolocation.on('error', (error) => { also not throwing any error

Expected Behavior

Location sharing should be active and a notification pops up saying background tracking enabled

Actual Behavior

Notification not coming

Logs

04-07 15:18:31.030 30215 31964 D com.marianhello.bgloc.data.sqlite.SQLiteConfigurationDAO: Configuration persisted with rowId = 1 04-07 15:18:31.031 30215 31964 D com.marianhello.bgloc.BackgroundGeolocationFacade: Service configured with: Config[distanceFilter=50 stationaryRadius=50.0 desiredAccuracy=0 interval=10000 fastestInterval=5000 activitiesInterval=10000 isDebugging=true stopOnTerminate=false stopOnStillActivity=false startOnBoot=false startForeground=true locationProvider=1 nTitle=Background tracking nText=enabled nIconLarge= nIconSmall= nIconColor= url=http://192.168.81.15:3000/location syncUrl=http://192.168.1.2:3000/location syncThreshold=10 httpHeaders={X-FOO=bar} maxLocations=10000 postTemplate={"lat":"@latitude","lon":"@longitude","foo":"bar"}] 04-07 15:18:31.037 30215 31966 D com.marianhello.bgloc.BackgroundGeolocationFacade: Starting service 04-07 15:18:31.051 30215 31966 I com.marianhello.bgloc.BackgroundGeolocationFacade: Starting bg service 04-07 15:18:31.066 3739 4024 W ActivityManager: Unable to start service Intent { flg=0x4 cmp=com.onewaycorp.daddysroad/com.marianhello.bgloc.LocationService launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } (has extras) } U=0: not found 04-07 15:18:31.130 30215 30215 D com.marianhello.bgloc.BackgroundGeolocationFacade: Binding to service 04-07 15:18:31.140 3739 13976 W ActivityManager: Unable to start service Intent { cmp=com.onewaycorp.daddysroad/com.marianhello.bgloc.LocationService launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } } U=0: not found

I dont know whether this one is same or not.. just referring here #89

@felansu
Copy link

felansu commented Apr 30, 2018

+1

@mauron85
Copy link
Owner

fixed in 0.5.0-alpha.36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants