mauron85 / background-geolocation-ios Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Xcode 11.3.1 errors when I try to build this plugin, even though Other Linker Flags
contains -lsqlite3
. I am using capacitor, which includes a compatibility layer for Cordova plugins.
I have tried adding libsqlite.tbd
:
And setting CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
:
But neither attempt has worked. However, i did fix it by swapping
-#import "sqlite3.h"
+#import <sqlite3.h>
in both MAURSQLiteLocationDAO.m
and MAURSQLiteConfigurationDAO.m
.
Would you consider accepting a pull request making this change?
Hi. I'm going to add stopOnTerminate
support for ios.
I use locationManager.startMonitoringSignificantLocationChanges
in startUpdatingLocation
method inMAURDistanceFilterLocationProvider.m
so it works fine with DISTANCE_FILTER_PROVIDER when app is terminated.
Should I add stopOnTerminate
support in RAW_PROVIDER
? I see RAW_PROVIDER
already uses locationManager.startMonitoringSignificantLocationChanges
in MAURRawLocationProvider.m
.
The MAURConfig.m function decodeActivityType has incorrect string comparisons. Now it checks if the value is nonzero, which means the strings are NOT the same, rather than the other way around as it should be. This means that activity type typically ends up at AutomotiveNavigation regardless what you set which leads to map matching / road snapping which you may not want to have. In case I had set the Fitness activity type but strangely got road snapping, that's how I debugged and eventually found the problem. With correct activity applied, road snapping disappeared.
The string comparisons should be changed to if ([....] == NSOrderedSame) { ... } then it will work.
I am most of the way through creating a NativeScript plugin for this library. I have the Android version working as I expect, however, it seems that in the iOS version the location id is always NULL in the onLocationChanged() callback.
See
Shouldn't the location be persisted first then the onLocationChanged callback called with a valid locationId?
This creates inconsistent behaviour with Android when using https://github.com/mauron85/cordova-plugin-background-geolocation, which returns null
for these values.
Opened by: @jumamfa
Platform: cordova
Link to original issue:
mauron85/cordova-plugin-background-geolocation#394
cordova -v
): Latestcordova platform ls
): N/AApple Rejection Notice:
Your app uses the "prefs:root=" non-public URL scheme, which is a private entity. The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.
Upon scanning all plugins and source of our App, the only area using prefs:root=.... is this one.
The plugin should use only public API's so rejections do not occur.
The plugin uses non-public API's so rejections do occur.
I havn't reviewed a potential fix as of yet, however simply stripping the functionality out that makes use of this would be the first step.
I was trying to submit an App (infact, many Apps that use this plugin), all of the Apps had the same rejection today.
I test version 0.5.0
on simulator and it doesnt start after phone reboot.
I have used startMonitoringSignificantLocationChanges
in #7 only in onTerminated
which isn't invoked.
It works okay after reboot if implementation is moved in onStart
method. The only difference that MonitoringSignificantLocationChanges
will work when the app is in foreground and background. Should we move it to onStart
?
Hi!
Have you looked at Flutter? Considered creating a Flutter plugin?
I'm seriously considering moving a relatively small app to Flutter, and looking for a geolocation solution.
If you're interested in working on this together, ping me :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.