This repository has been archived by the owner on Apr 1, 2023. It is now read-only.
Ask for help #29
Unanswered
stojankukrika
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an issue with the app and background working. Can anybody help me?
I made an app for the clinic and all works well while they are in-app but when for example pick up the phone or want to reply to a message looks the state of the app lose and they can't navigate through the application (the back button dissipated) and need to kill the app and start it again. Is there any solution to it?
I made a "hack" in the app.component.ts file:
App.addListener('appStateChange', ({isActive}) => {
if (!isActive) {
// App went to background
} else {
// App went to foreground
this.navCtrl.navigateRoot(['./']);
}
});
but when I add that user can't take a picture of the patient or change his avatar, it always backs him on the homepage :( I use a capacitor to build apps. Is there any solution to save the state to not lose on which page the user exists and where he can go back?
I hope that this plugin can help me but I didn't know how to make that part of the code instead of navigating to root :( Please help me.
Beta Was this translation helpful? Give feedback.
All reactions