nativescript-angular
nativescript-angular copied to clipboard
NavigationError after background-http
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 6.4.1
- Cross-platform modules: 6.5.1
- Android Runtime: 6.4.1
- iOS Runtime: 6.5.0
- Plugin(s):
- NativeScript-Angular: 8.21.0
- Angular: 8.2.0
Describe the bug After taking a photo and uploading using background-http and using the router navigate the application closes and presents an error
To Reproduce
Expected behavior
Additional context
If all images has uploaded, then i emit
if (this.totalFotosCapturas <= 0) {
this._checklistCompleto = true;
this.isEnviandoFotosCapturadas = false;
this.concluir.emit(true);
}
function after EventEmmiter
onConcluir(): void {
this.agendamentosService.recuperar(this.store.value.agendamentoSelecionado.Codigo).then(() => {
this.navigationService.navigate(["checklists", "revisao-veiculo"], {
animated: true,
transition: {
name: "slide",
duration: 200,
curve: "ease"
}
});
});
}
Uncaught (in promise): TypeError: Cannot read property 'peekState' of undefined\nTypeError: Cannot read property 'peekState' of undefined\n at NSLocationStrategy.push.NSLocationStrategy._beginPageNavigation (file:///data/data/br.com.autoglass.flow/files/app/vendor.js:99774:44)\n at PageRouterOutlet.push.PageRouterOutlet.loadComponentInPage (file:///data/data/br.com.autoglass.flow/files/app/vendor.js:110913:48)\n at PageRouterOutlet.push.PageRouterOutlet.activateOnGoForward (file:///data/data/br.com.autoglass.flow/files/app/vendor.js:110889:14)\n at PageRouterOutlet.push.PageRouterOutlet.activateWith (file:///data/data/br.com.autoglass.flow/files/app/vendor.js:110858:14)\n at ActivateRoutes.push.ActivateRoutes.activateRoutes (file:///data/data/br.com.autoglass.flow/files/app/vendor.js:80091:40)\n at file:///data/data/br.com.autoglass.flow/files/app/vendor.js:80042:19\n at Array.forEach (<anonymous>)\n at ActivateRoutes.push.ActivateRoutes.activateChildRoutes (file:///data/data/br.com.autoglass.flow/files/app/vendor.js:80041:29)\n at ActivateRoutes.push.ActivateRoutes.activateRoutes (file:///data/data/br.com.autoglass.flow/files/app/vendor.js:80062:22)\n at file:///data/data/br.com.autoglass.flow/files/app/vendor.js:80042:19\n at Array.forEach (<anonymous>)\n at ActivateRoutes.push.ActivateRoutes.activateChildRoutes (file:///data/data/br.com.autoglass.flow/files/app/vendor.js:80041:29)\n at ActivateRoutes.push.ActivateRoutes.activate (file:///data/data/br.com.autoglass.flow/files/app/vendor.js:79966:14)\n at MapSubscriber.project (file:///data/data/br.com.autoglass.flow/files/app/vendor.js:79950:14)\n at MapSubscriber.push.MapSubscriber._next (file:///data/data/br.com.autoglass.flow/files/app/vendor.js:62519:35)