pathsense / pathsense-samples-android

Sample Applications for the PathSense SDK
Other
26 stars 10 forks source link

can't receive the broadcast #10

Closed waltChang1 closed 7 years ago

waltChang1 commented 7 years ago

i have called PathsenseLocationProviderApi.getInstance(this).requestInVehicleLocationUpdates(); and registered my receiver in manifest,but i can't receive the broadcast,

pablobaxter commented 7 years ago

This can be due to a few things, so let me ask you a couple of questions first:

waltChang1 commented 7 years ago

1)i have opened the GPS 2)i have internet connectivity and the permission, included the location permission 3)i can get my location info from method " onLocationChanged", 4)there are no errors thrown

my logical steps: 1)implement gms‘s LocationListener and override onLocationChanged, i can get location from the method 2) called "LocationServices.FusedLocationApi.requestLocationUpdates()" to update location and called "PathsenseLocationProviderApi.getInstance(this).requestInVehicleLocationUpdates()" to register PathsenseInVehicleLocationUpdateReceiver to get PathsenseInVehicleLocation,but i cant receive the broadcast,it has registered in manifest, so i dont know why ,confused!

waltChang1 commented 7 years ago

i have ran the demo of pathsense-samples-android(pathsense-invehiclelocationdemo-app) and successfully, but i can't receive the broadcast too. Is my test method wrong?or how to test can receive the broadcast ?

pablobaxter commented 7 years ago

Can you install the pathsense-invehiclelocationdemo-app APK that comes in the zip with the AAR and see if you get any points?

waltChang1 commented 7 years ago

i have installed the pathsense-invehiclelocationdemo-app APK that comes in the zip,and only one marker (GroundTruth) is shown,but marker(PathsenseInVehicle) doesn't shown,the broadcast can't be received so that marker(PathsenseInVehicle) can't be shown. device-2017-04-25-092914

pablobaxter commented 7 years ago

What type of device are you using? Also what country are you using this device in? And do you have a second device to test on? Lastly, I don't see a GPS icon at the status bar (indicates GPS is in use). Does it come on for any other app?