-
Notifications
You must be signed in to change notification settings - Fork 69
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
[Feature] Transaction-based access to the GPS positions buffer #18
Comments
I'm planning to try and resolve this soon.
The query should be something like "update location-table set status deleted where id in (? ? ? ? ? ?) , . This shouldn't take more than a few lines of code... |
I'm disappointed from the code I see in cordova-background-geolocation-plugin/ios/common/BackgroundGeolocation/MAURSQLiteLocationDAO.m Line 74 in 420bfe2
I'm thinking I should refactor this to use the same columns and update the object using all the data and not miss one column or another, like it is in the android version... @RaddishIoW let me know what you think... |
Yep, all sounds good to me. :) Nice one. |
OK, I committed the main changes to a branch without compiling or anything, which is a practice I'm not familiar with, but I'm not sure how to work in Cordova plugin environment yet... |
Note to myself: I'm not sure the class |
…fixes incorrect calls and missing facade and js code
I believe you can reference the GitHub.com repo URL directly when installing: |
Yes, I can use it this way... Took me a few tries until it compiled... I think it's working. |
After merging the related PR I plan to release a version with both fixes, the documentation are getting updated as soon as I push to develop, so they will probably show before the version is released, but I'm fine with that. |
Yep, I'm good with releasing these changes as 1.1. I've created a discussion (#40) that could deal with the issue of the docs changing before peoples' eyes - I think it would make sense... |
* [Feature] Transaction-based access to the GPS positions buffer #18 - initial commit * [Feature] Transaction-based access to the GPS positions buffer #18 - fixes incorrect calls and missing facade and js code * [Feature] Transaction-based access to the GPS positions buffer #18 - Fix compilation * [Feature] Transaction-based access to the GPS positions buffer #18 - Add typesript definitions * [Feature] Transaction-based access to the GPS positions buffer #18 - Fix iOS compilation and typo * [Feature] Transaction-based access to the GPS positions buffer #18 - Fix iOS compilation * [Feature] Transaction-based access to the GPS positions buffer #18 - Add missing import * Update documentation and allow using promise.
Resolved by #38 |
* Set theme jekyll-theme-hacker * Update Changelog * docs: move to github pages (#35) Fixes #32 * Update Changelog * Adds promises and subscription (#36) Resolves #16 * Add promises and subscription to js interface #16 - initial commit * #16 - fix subscriable interface * bump version, fix docs * fix incorrect link * Update Changelog * build: add workflow to automatically merge to stable on release (#42) * Update Changelog * GPS transactional location fetch (#38) * [Feature] Transaction-based access to the GPS positions buffer #18 - initial commit * [Feature] Transaction-based access to the GPS positions buffer #18 - fixes incorrect calls and missing facade and js code * [Feature] Transaction-based access to the GPS positions buffer #18 - Fix compilation * [Feature] Transaction-based access to the GPS positions buffer #18 - Add typesript definitions * [Feature] Transaction-based access to the GPS positions buffer #18 - Fix iOS compilation and typo * [Feature] Transaction-based access to the GPS positions buffer #18 - Fix iOS compilation * [Feature] Transaction-based access to the GPS positions buffer #18 - Add missing import * Update documentation and allow using promise. * Update Changelog Co-authored-by: Adam Radestock <[email protected]> Co-authored-by: RaddishIoW <[email protected]> Co-authored-by: HarelM <[email protected]>
See here: IsraelHikingMap/Site#1427
When using the locations buffer to get the location from the plugin and after that deleting the location buffer it might get to a race condition where the delete happens after a location was added or that getting all location will happen before all locations were deleted.
Your Environment
cordova -v
): 10.0cordova platform ls
): Android 9.1Context
Problem in getting GPS positions while the app is going back and forth from the background
Expected Behavior
Allow the app not to miss or duplicate positions
Actual Behavior
Positions are duplicated or missed
Possible Fix
Add an API method to do both get and delete
Steps to Reproduce
Context
See screen shot in linked issue
Debug logs
Not available
The text was updated successfully, but these errors were encountered: