So I have an ionic app built with capacitor in which I have 4 normal ionic pages and a single NATIVE PAGE. I can open and close this native page and get the data as I intend too. But the problem is, the native page obviously doesn’t work with the ionic stack. When I go from page 1 to page 2(NATIVE). upon finishing the task, I go back to page one, from where I then again route to page 3. The problem is, going back from page 3 takes to page 1 as expected and if I open page 2 from page 3 upon back, it’s a new instance everytime. whatever the user did is lost. So what I want is to somehow not destroy my native activity and just maybe hide/show it everytime without it being destroyed. I have tried launchmode=“singleInstance” doesn’t help. Right now I am clueless how it can be done,
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Making a screen that appears only upon first time opening the app. The second time that the user opens the app, that screen wont appear again | 9 | 1751 | April 7, 2023 | |
Configure Ionic Native Splash Screen | 1 | 1973 | November 11, 2020 | |
Resolution implementing on android studio! | 0 | 508 | July 23, 2019 | |
Automatic non-visual preservation of Navigation Stack in Ionic 2 app | 1 | 795 | February 25, 2016 | |
Ionic capacitor IOS app refreshes within the same page when resumed from background state | 2 | 1769 | October 30, 2022 |