I'm writing an app to count users passing through specified areas. "Geofence" feature isn't reliable because it's a rural area with few phone towers, so I'm using periodic calls to the LocationMonitor service which uses a fusedlocationprovider object.
New locations from LocationMonitor are sent to a sub in Starter; if a location is within a radius distance of a lat/lon point then a htttjob in another Starter sub sends an Insert SQL request to the remote database.
This works perfectly when the app is in the foreground but when it's in background or closed the httpjob gets the error "java.net.ConnectException: Failed to connect to " (sqlserver)
I've used httjobs in background services before without problems, and I can't find anything related here - has some security setting changed in updates that I've missed? (using https instead of http had no effect)
B4A version 9.30, targetSdkversion=28, testing on Samsung S9
New locations from LocationMonitor are sent to a sub in Starter; if a location is within a radius distance of a lat/lon point then a htttjob in another Starter sub sends an Insert SQL request to the remote database.
This works perfectly when the app is in the foreground but when it's in background or closed the httpjob gets the error "java.net.ConnectException: Failed to connect to " (sqlserver)
I've used httjobs in background services before without problems, and I can't find anything related here - has some security setting changed in updates that I've missed? (using https instead of http had no effect)
B4A version 9.30, targetSdkversion=28, testing on Samsung S9