Closed djoyrocks closed 3 years ago
Plugin version: 3.1.9
No such version. You need to show the cordova plugin version, not the version of the Android library found in the logs.
Hi Chris,
"cordova-background-geolocation-lt": "^3.8.2",
On Tue, Aug 25, 2020 at 7:54 PM Chris Scott notifications@github.com wrote:
Plugin version: 3.1.9
No such version. You need to show the cordova plugin version, not the version of the Android library found in the logs.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/1172#issuecomment-680057289, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACG737XLENLZY7MWXU4RVBLSCPCRTANCNFSM4QJ4IYBQ .
-- Regards Dhananjaya C K
But the extras added while inserting locations are not getting added consistently. only a few records have the extras added.
The only way extras can be missing is if these values you're applying are actually null
:
extras: {
'membershipId': this.membershipId,
'membershipUserId': this.membershipUserId,
'employeeId': this.employeeId,
'employeeDisplayName': this.employeeDisplayName,
'employeeCode': this.employeeCode,
'tripId': this.tripId,
'tripUid': this.tripUid,
'mobileId': this.mobileId
},
Also, modifying extras
has no effect on records already recorded and inserted into the plugin's database.
extras
are applied at the time the location is recorded. Records already inserted into the database are read-only. They can never be modified once inserted.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.
Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.
Your Environment
cordova -v
): 9cordova platform ls
):#ready
:Expected Behavior
Should capture Extras provided consistently
Actual Behavior
For some events, it's capturing and for some, it's not
Steps to Reproduce
Context
We are trying to capture location in both the foreground and background from an ionic android app. We have ou own db structure and we are capturing the locations from the location change event and writing to our db. For the locations captured in the background, we are trying to read then on app resume and write to our db. Is there any better way?
Foreground handling: we have enrolled for a location change event. Please confirm are we doing it right. In the foreground also extras are not coming in event argument consistently only a few of them have it. as we are in application context we are able to handle this issue externally ourselves.
Background handling: We have implemented headless mode and have a java file that has enrolled in events to show geofence alert which is working fine. But the extras added while inserting locations are not getting added consistently. only a few records have the extras added.
Find the attached DB , logs and code
Please check the rows 500 onwards. BG logs.txt db.zip
Debug logs
Logs
``` PASTE_YOUR_LOGS_HERE ```