Required Reading
Plugin Version
5.1.1
Mobile operating-system(s)
Device Manufacturer(s) and Model(s)
Samsung Galaxy S21 5G
Device operating-systems(s)
Android 15
React Native / Expo version
Expo 53
What happened?
Calling
BackgroundGeolocation.stopWatchPosition?.();
Can throw an error with expected argument to be a number
Typescript
stopWatchPosition?(watchId?: number): void;
Java typing
@ReactMethod
public void stopWatchPosition(double watchId, final Promise response) {
// TODO Implement watchId for android.
getAdapter().stopWatchPosition(new TSCallback() {
@Override public void onSuccess() {
response.resolve(true);
}
@Override public void onFailure(String error) {
response.reject(error);
}
});
}
Plugin Code and/or Config
Relevant log output
Required Reading
Plugin Version
5.1.1
Mobile operating-system(s)
Device Manufacturer(s) and Model(s)
Samsung Galaxy S21 5G
Device operating-systems(s)
Android 15
React Native / Expo version
Expo 53
What happened?
Calling
Can throw an error with expected argument to be a number
Typescript
Java typing
Plugin Code and/or Config
irrelevantRelevant log output