ChatGPT just told me about all of these “gotchas” to do with using Ionic Framework and Capacitor on Android:
3. Common mistakes
| Mistake | Result |
|---|---|
Only using Ionic’s ion-router-outletnavigation |
Back button doesn’t trigger Ionic navigation |
Not subscribing to App.addListener('backButton') |
WebView never sees Android back event |
Forgetting App.exitApp() |
App freezes on root page |
Is this actually accurate?
It’s very surprising to me that neither ion-router-outlet nor capacitor capture the back button by default by themselves. Why was that decision made?
1 post - 1 participant





