You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application in Ionic 6 and Angular 14 in which I use the InAppBrowser plugin to use a web application of my company and the plugin doesn't load the cache/cookie from web when I use the hardware back button.
Problem
The plugin works fine in general, the situation is that there is a cookie in the web application that is used for the filters of some lists that are in the web application. When a user filters and enters (for example) a specific client from a list and uses the hardware back button to go back to the list, the filter disappears. From the PC, when you go back the filter is maintained, which means that the cache is maintained.
When I use the DevTools (from Google Chrome: chrome://inspect) to check the Ionic app, the cookie works, but when I don't use it, it doesn't work as I mentioned above. It seems that by doing the hardware back button in the InAppBrowser the cache is not maintained or it is not loaded. All this without changing anything in the code.
So I'm asking if there is a way that when I do the hardware back button it loads the previous page with the cookie/cache loaded. Or if it really shouldn't load anything since the filter has already been applied and the cookie has been overwritten.
What is expected to happen?
What I expect to happen is that when, for example, a user has used a filter from the web application, when the hardware back button is made, that filter (saved in the cookie) is maintained, just as it does when using the web application. on a PC.
What does actually happen?
What happens right now is that when using the hardware back button the filter that had been made disappears, but the thing is that the cookie still exists, since using the DevTools it works without having made any changes to the code.
Bug Report
I have an application in Ionic 6 and Angular 14 in which I use the InAppBrowser plugin to use a web application of my company and the plugin doesn't load the cache/cookie from web when I use the hardware back button.
Problem
The plugin works fine in general, the situation is that there is a cookie in the web application that is used for the filters of some lists that are in the web application. When a user filters and enters (for example) a specific client from a list and uses the hardware back button to go back to the list, the filter disappears. From the PC, when you go back the filter is maintained, which means that the cache is maintained.
When I use the DevTools (from Google Chrome: chrome://inspect) to check the Ionic app, the cookie works, but when I don't use it, it doesn't work as I mentioned above. It seems that by doing the hardware back button in the InAppBrowser the cache is not maintained or it is not loaded. All this without changing anything in the code.
So I'm asking if there is a way that when I do the hardware back button it loads the previous page with the cookie/cache loaded. Or if it really shouldn't load anything since the filter has already been applied and the cookie has been overwritten.
What is expected to happen?
What I expect to happen is that when, for example, a user has used a filter from the web application, when the hardware back button is made, that filter (saved in the cookie) is maintained, just as it does when using the web application. on a PC.
What does actually happen?
What happens right now is that when using the hardware back button the filter that had been made disappears, but the thing is that the cookie still exists, since using the DevTools it works without having made any changes to the code.
Information
Command or Code
This is how I create the InAppBrowser:
I have this to check the cookie:
Update
I've test this under onCreate in MainActivity (Android Studio) and it doesn't fix the issue:
Environment, Platform, Device
Version information
Ionic info:
List of plugins installed and dependencies from package.json :
Checklist
The text was updated successfully, but these errors were encountered: