Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: BridgeIt 1.0
-
Fix Version/s: BridgeIt 1.0
-
Component/s: Containers
-
Labels:None
-
Environment:Android
Description
While running my own GeoSpy location tracking app on both the iPhone and the Android phones, the Android device doesn't seem to resume push after switching to BridgeIt and back again. In my application I call:
function startGeoSpy(updateStrategy, duration) {
var geospyURL = "http://" + window.location.host + "/locate/location/geospy";
bridgeit.geoSpy('geospytracker', 'geoSpyCallback', {postURL: geospyURL, parameters: {strategy: updateStrategy, duration: duration, _jguid: getUID()}});
}
On the both devices, this will properly:
- trigger BridgeIt to send a request to the Location Service
- store the location and id information in the database
- make a push call
On the iPhone this works fine. On the Android device, when it returns to the browser, push is no longer functioning. The remote dev console for Chrome shows that the heartbeat has stopped and no notifications are coming in.
function startGeoSpy(updateStrategy, duration) {
var geospyURL = "http://" + window.location.host + "/locate/location/geospy";
bridgeit.geoSpy('geospytracker', 'geoSpyCallback', {postURL: geospyURL, parameters: {strategy: updateStrategy, duration: duration, _jguid: getUID()}});
}
On the both devices, this will properly:
- trigger BridgeIt to send a request to the Location Service
- store the location and id information in the database
- make a push call
On the iPhone this works fine. On the Android device, when it returns to the browser, push is no longer functioning. The remote dev console for Chrome shows that the heartbeat has stopped and no notifications are coming in.
Verified Ted's commit as being valid. The push IDs are now not discarded immediately on page unload but after the expiry mechanism detects them as not being used.
Verified camera test in Bridgeit demo. The blocking connection now runs after the photo was loaded (and the page reloaded).