Closed leobudima closed 1 year ago
Plugin version: any / latest
This does not mean anything to me. It's particularly meaningless in the future for others visiting this issue. What is the EXACT version you're using?
Hi Chris, 4.8.1 seems to be the latest version of the plugin, so I believe this is relevant for it.
This has been implemented in the private, customers-only version.
While you are a customer, so have access to the private version, you have posted this in the public repo.
Are you not using installing the plugin from the private repo?
Oops, wrong CHANGELOG entry:
location.mock
will now be present for iOS when the location is mocked, just like Android.Actually, there it is: released here in the public version in 4.8.0, this past June 21.
And here it is in the TSLocationManager.xcframework
source code:
I've realized too late that I've posted to the public repo, and wanted to avoid notification chatter etc to you from closing and reopening there - apologies!
Amazing about the feature - just once again speaks towards your dedication and quality of the products.
As a side note, before posting this, I checked the documentation (https://transistorsoft.github.io/cordova-background-geolocation/interfaces/location.html#mock) and saw that it still says [Android only], as well as searched the Github organization for isSimulatedBySoftware
which returned no results, from which I concluded that it's not here. Apologies for taking up your time and thanks for great and prompt support, @christocracy .
Your Environment
cordova -v
): anycordova platform ls
): any#ready
: N/AExpected Behavior
Currently,
location.mock
attribute is available only for Android, for obvious and understandable reasons that Apple has previously not provided a direct way to determine it.Since iOS 15, the
isSimulatedBySoftware
instance property has been provided as a member ofCLLocationSourceInformation
class ( https://developer.apple.com/documentation/corelocation/cllocationsourceinformation/3861807-issimulatedbysoftware ) .Could the library be extended to support
mock
for iOS based on this information as well, please?Context
Our use-case involves crowdsourced drivers / couriers, and use of mock providers in order to game the system / customers is significant enough to affect the level of provided service, so we've developed defense mechanisms to prevent it, but can only cover a portion of the user base on Android. Supporting
mock
on iOS would help cover the rest. Thank you!