Skip to content
This repository was archived by the owner on Apr 1, 2023. It is now read-only.
This repository was archived by the owner on Apr 1, 2023. It is now read-only.

Ask for help #28

@stojankukrika

Description

@stojankukrika

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions