Closed bradseefeld closed 6 years ago
Will be fixed soon.
Try 1.9.0-beta.4
. There was indeed a bug with TSCallback
instances. Those should have been onFailure
.
However, I could not reproduce the error in the demo app. You must have been executing some different API methods in addition that I'm not in the demo.
Its working! The app no longer crashes when I deny permissions. Thanks!!
Good work finding that mistake on the TSCallback.
Your Environment
Expected Behavior
App does not crash
Actual Behavior
App crashes
Steps to Reproduce
Context
I believe the issue is caused by this line: https://github.com/transistorsoft/nativescript-background-geolocation-lt/blob/c7d18619b2dbee8a986e933c47a0beea24a37441/src/api.android.ts#L169 or https://github.com/transistorsoft/nativescript-background-geolocation-lt/blob/c7d18619b2dbee8a986e933c47a0beea24a37441/src/api.android.ts#L153
I believe these should be defined as
onFailure
. All other instances of TSCallback are usingonFailure
as far as I can tell.Debug logs