Ionic capacitor IOS app refreshes within the same page when resumed from background state

When app is put on background state for some time (20-30 mins) and then app is resumed, it refreshes the entire app in the same page app was put in background state before.

steps:

  1. I open my home page after login
  2. put the app on background for 30 mins
  3. I open the app from background
  4. app resumes from home page but refreshes totally (messing up the app logics and views)

requirement:
don’t need the refresh, just want the app to resume on the same page

“dependencies”: {
@angular/animations”: “^10.2.5”,
@angular/common”: “^10.2.5”,
@angular/core”: “^10.2.5”,
@angular/forms”: “~10.0.0”,
@angular/platform-browser”: “~10.0.0”,
@angular/platform-browser-dynamic”: “~10.0.0”,
@angular/router”: “~10.0.0”,
@capacitor/android”: “3.2.4”,
@capacitor/app”: “^1.0.2”,
@capacitor/core”: “^3.1.1”,
@capacitor/geolocation”: “^1.0.2”,
@capacitor/ios”: “3.2.5”,
@capacitor/keyboard”: “^1.0.2”,
@capacitor/push-notifications”: “^1.0.4”,
@capacitor/splash-screen”: “^1.1.0”,
@capacitor/status-bar”: “^1.0.2”,
@codetrix-studio/capacitor-google-auth”: “^3.0.2”,
@ionic-native/aes-256”: “^5.34.0”,
@ionic-native/badge”: “^5.35.0”,
@ionic-native/base64”: “^5.36.0”,
@ionic-native/camera”: “^5.36.0”,
@ionic-native/clevertap”: “^5.34.0”,
@ionic-native/code-push”: “^5.36.0”,
@ionic-native/core”: “^5.34.0”,
@ionic-native/deeplinks”: “^5.34.0”,
@ionic-native/diagnostic”: “^5.34.0”,
@ionic-native/facebook”: “^5.34.0”,
@ionic-native/file”: “^5.34.0”,
@ionic-native/file-chooser”: “^5.34.0”,
@ionic-native/file-opener”: “^5.35.0”,
@ionic-native/file-path”: “^5.34.0”,
@ionic-native/file-picker”: “^5.36.0”,
@ionic-native/file-transfer”: “^5.34.0”,
@ionic-native/fingerprint-aio”: “^5.36.0”,
@ionic-native/geolocation”: “^5.36.0”,
@ionic-native/google-plus”: “^5.34.0”,
@ionic-native/http”: “^5.36.0”,
@ionic-native/in-app-browser”: “^5.34.0”,
@ionic-native/keychain”: “^5.36.0”,
@ionic-native/local-notifications”: “^5.35.0”,
@ionic-native/native-storage”: “^5.34.0”,
@ionic-native/network”: “^5.34.0”,
@ionic-native/open-native-settings”: “^5.34.0”,
@ionic-native/sign-in-with-apple”: “^5.36.0”,
@ionic-native/sim”: “^5.34.0”,
@ionic-native/sms-retriever”: “^5.34.0”,
@ionic-native/spinner-dialog”: “^5.34.0”,
@ionic-native/status-bar”: “^5.34.0”,
@ionic-super-tabs/angular”: “^7.0.8”,
@ionic-super-tabs/core”: “^7.0.8”,
@ionic/angular”: “^5.6.11”,
@ionic/cli”: “^6.16.3”,
@robingenz/capacitor-app-update”: “^1.0.0”,
@types/hammerjs”: “^2.0.40”,
@types/socket.io-client”: “^1.4.36”,
“capacitor-native-biometric”: “^3.0.3”,
“capacitor-rate-app”: “^2.0.0”,
“capacitor-razorpay”: “git+https://github.com/razorpay/razorpay-capacitor.git”,
“chart.js”: “^2.9.4”,
“clevertap-cordova”: “^2.3.5”,
“com-badrit-base64”: “^0.2.0”,
“cordova-android”: “7.1.4”,
“cordova-open-native-settings”: “^1.5.5”,
“cordova-plugin-advanced-http”: “^3.2.1”,
“cordova-plugin-aes256-encryption”: “^2.0.1”,
“cordova-plugin-badge”: “^0.8.8”,
“cordova-plugin-camera”: “^6.0.0”,
“cordova-plugin-cocoapod-support”: “^1.6.2”,
“cordova-plugin-device”: “^2.0.3”,
“cordova-plugin-facebook-connect”: “^2.3.0”,
“cordova-plugin-file”: “^6.0.2”,
“cordova-plugin-file-opener2”: “^3.0.5”,
“cordova-plugin-filechooser”: “^1.2.0”,
“cordova-plugin-filepath”: “^1.6.0”,
“cordova-plugin-filepicker”: “^1.1.6”,
“cordova-plugin-fingerprint-aio”: “^4.0.2”,
“cordova-plugin-geolocation”: “^4.1.0”,
“cordova-plugin-inappbrowser”: “^5.0.0”,
“cordova-plugin-ionic-keyboard”: “^2.2.0”,
“cordova-plugin-ionic-webview”: “^4.2.1”,
“cordova-plugin-ios-keychain”: “^3.0.1”,
“cordova-plugin-local-notification”: “^0.9.0-beta.2”,
“cordova-plugin-native-spinner”: “^1.1.3”,
“cordova-plugin-nativestorage”: “^2.3.2”,
“cordova-plugin-network-information”: “^2.0.2”,
“cordova-plugin-sign-in-with-apple”: “^0.1.2”,
“cordova-plugin-sim”: “^1.3.3”,
“cordova-plugin-sms-retriever-manager”: “^1.0.2”,
“cordova-plugin-statusbar”: “^2.4.3”,
“cordova-plugin-whitelist”: “^1.3.5”,
“cordova.plugins.diagnostic”: “^6.0.3”,
“core-js”: “^3.15.2”,
“crypto-js”: “^4.0.0”,
“echarts”: “^4.9.0”,
“hammerjs”: “^2.0.8”,
“highcharts”: “^8.2.2”,
“highcharts-angular”: “^2.10.0”,
“install”: “^0.13.0”,
“ionic-plugin-deeplinks”: “1.0.20”,
“ionic-selectable”: “^4.9.0”,
“jetifier”: “^2.0.0”,
“jsencrypt”: “^3.2.0”,
“moment”: “^2.29.1”,
“ng2-charts”: “^2.4.3”,
“ng2-image-compress”: “^7.0.7”,
“ng2-search-filter”: “^0.5.1”,
“ngx-cookie-service”: “^10.1.1”,
“ngx-filter-pipe”: “^2.1.2”,
“ngx-mask-ionic”: “^1.1.2”,
“rxjs”: “~6.5.5”,
“socket.io-client”: “^2.4.0”,
“swiper”: “^6.7.0”,
“tslib”: “^2.3.0”,
“underscore”: “^1.13.1”,
“zone.js”: “~0.10.3”
},

im using ionic / angular with capacitor and the issue is in IOS (15) most probably

1 Like

We also have the same problem.

I have the same problem in production – is there any workaround available?