nativescript-background-task icon indicating copy to clipboard operation
nativescript-background-task copied to clipboard

Error after updating tns to 3.4.0

Open pascalsalomons opened this issue 7 years ago • 2 comments

Since I updated tns to 3.4.0 BackgroundTask.postFiles is giving me an error

JS: ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'task' of undefined JS: TypeError: Cannot read property 'task' of undefined JS: at createCallback (file:///data/data/nl.salomons.sust/files/app/tns_modules/nativescript-background-task/background-task.js:357:42) JS: at Object.exports.postFiles (file:///data/data/nl.salomons.sust/files/app/tns_modules/nativescript-background-task/background-task.js:194:18)

This errors is only triggered on android

pascalsalomons avatar Jan 06 '18 17:01 pascalsalomons

Hi @pascaloo7,

The code has been fixed and updated. It looks like the way the jar is generated and exposed in the plugin has changed in that version.

mobilemindtec avatar Jan 09 '18 20:01 mobilemindtec

Issue about this bug

https://github.com/NativeScript/NativeScript/issues/5254

mobilemindtec avatar Jan 11 '18 16:01 mobilemindtec