App reverts to old version on iOS on force quit

This saved my life, I was trying to figure out what’s causing it!

I was having the same problem on an Android device. I’m developing an app, I manually deploy to my device via USB from my mac. I open and close it and when I re-open it has the old code base of the app and none of the new features I implemented. So I changed
from Background to manual. So far it’s ok but what are the implications of this? What affect will this have once the app is deployed? Why is it there? Thanks

It’s there if you want to update the app without going via the app stores.
I use this method all the time for my apps in the field, but have switched to CodePush as it’s free.
You can update all the JavaScript HTML CSS as you like, but you can’t update the underlying Cordova stuff, which most of the time should be fine.

Thanks @Judgewest2000 but that didn’t solve my issue. It’s really strange…I’m deploying my work to my phone using ionic cordova run android. after I open and close it a few times and save data to firebase it will revert back to an older version that doesn’t have any of the changes I deployed to my development device. I’m using a Samsung 8 phone that I’m plugging into my MAC to update the device with new features and functionality I’m implementing in my code. I’ll play with it on my phone for a little while…add data from my app and upload pics to firebase. Then when I close it and re-open it it’s back at the old version.

The code or the firebase content?
And can you share your config.xml

The actual code. But I think I know what the issue is now. I was using Ionic Pro’s developer hub…I wasn’t actively using it because it’s been deprecated but I set up my app there and connected it to my GIT hub repo. So I think what was happening is it was continuously updating the deployment on my phone with the old code in the Ionic Repo. Last night I deleted the app completely and when I woke up the app on my phone was just a shell. So I’m trying to uninstall ionic pro from my app to see if that fixes the issue. I did npm uninstall @ionic/pro. I hope that works.

Good luck with that dude

In May 2020 With Ionic 4 App I am still facing this same issue… I build app using Xcode and install to Iphone. The latest app is seen and I use it on iPhone. I disconnect phone and the app is still working. but later I quit app and again open app or if I force quit app and reopen, Boom the old (very old ) 2 month app is there… It is tearing me wild… Tried to check all above solutions… Nothing seems to work…

My Config.xml file is below

<?xml version=** '1.0' **encoding=** 'utf-8' **?>

<widget id = “com.krisskross.ffhpush” version = “0.0.1” xmlns =http://www.w3.org/ns/widgets” xmlns : cdv =http://cordova.apache.org/ns/1.0>

<feature name = “LocalStorage” >

<param name = “ios-package” value = “CDVLocalStorage” />

<feature name = “Console” >

<param name = “ios-package” value = “CDVLogger” />

<param name = “onload” value = “true” />

<feature name = “HandleOpenUrl” >

<param name = “ios-package” value = “CDVHandleOpenURL” />

<param name = “onload” value = “true” />

<feature name = “IntentAndNavigationFilter” >

<param name = “ios-package” value = “CDVIntentAndNavigationFilter” />

<param name = “onload” value = “true” />

<feature name = “GestureHandler” >

<param name = “ios-package” value = “CDVGestureHandler” />

<param name = “onload” value = “true” />

<feature name = “CallNumber” >

<param name = “ios-package” value = “CFCallNumber” />

<feature name = “Camera” >

<param name = “ios-package” value = “CDVCamera” />

<feature name = “Device” >

<param name = “ios-package” value = “CDVDevice” />

<feature name = “FCMPlugin” >

<param name = “ios-package” value = “FCMPlugin” />

<feature name = “Geolocation” >

<param name = “ios-package” value = “CDVLocation” />

<allow-navigation href = “ionic://*” />

<feature name = “IonicWebView” >

<param name = “ios-package” value = “CDVWKWebViewEngine” />

<feature name = “IonicCordovaCommon” >

<param name = “ios-package” onload = “true” value = “IonicCordovaCommon” />

<feature name = “Keyboard” >

<param name = “ios-package” onload = “true” value = “CDVIonicKeyboard” />

<feature name = “NetworkStatus” >

<param name = “ios-package” value = “CDVConnection” />

<feature name = “networkinterface” >

<param name = “ios-package” onload = “true” value = “CDVNetworkInterface” />

<feature name = “Sim” >

<param name = “ios-package” value = “Sim” />

<feature name = “SplashScreen” >

<param name = “ios-package” value = “CDVSplashScreen” />

<param name = “onload” value = “true” />

<feature name = “StatusBar” >

<param name = “ios-package” value = “CDVStatusBar” />

<param name = “onload” value = “true” />

<feature name = “ImagePicker” >

<param name = “ios-package” value = “SOSPicker” />

<feature name = “Toast” >

<param name = “ios-package” value = “Toast” />

<feature name = “Sms” >

<param name = “ios-package” value = “Sms” />

<feature name = “SQLitePlugin” >

<param name = “ios-package” value = “SQLitePlugin” />

<feature name = “BarcodeScanner” >

<param name = “ios-package” value = “CDVBarcodeScanner” />

FFH

An awesome Ionic/Cordova app.

<author email =hi@ionicframework.com” href =http://ionicframework.com/> Ionic Framework Team

<content src = “index.html” />

<access origin = “*” />

<access launch-external = “yes” origin =https://api.whatsapp.com//>

<allow-intent href = “http:////>

<allow-intent href = “https:////>

<allow-intent href = “tel:*” />

<allow-intent href = “sms:*” />

<allow-intent href = “mailto:*” />

<allow-intent href = “geo:*” />

<allow-navigation href = “*” />

<allow-navigation href = “http:////>

<allow-navigation href = “https:////>

<allow-navigation href = “data:*” />

<allow-intent href = “itms:*” />

<allow-intent href = “itms-apps:*” />

<icon height = “57” src = “resources/ios/icon/icon.png” width = “57” />

<icon height = “114” src = “resources/ios/icon/icon@2x.png” width = “114” />

<icon height = “40” src = “resources/ios/icon/icon-40.png” width = “40” />

<icon height = “80” src = “resources/ios/icon/icon-40@2x.png” width = “80” />

<icon height = “120” src = “resources/ios/icon/icon-40@3x.png” width = “120” />

<icon height = “50” src = “resources/ios/icon/icon-50.png” width = “50” />

<icon height = “100” src = “resources/ios/icon/icon-50@2x.png” width = “100” />

<icon height = “60” src = “resources/ios/icon/icon-60.png” width = “60” />

<icon height = “120” src = “resources/ios/icon/icon-60@2x.png” width = “120” />

<icon height = “180” src = “resources/ios/icon/icon-60@3x.png” width = “180” />

<icon height = “72” src = “resources/ios/icon/icon-72.png” width = “72” />

<icon height = “144” src = “resources/ios/icon/icon-72@2x.png” width = “144” />

<icon height = “76” src = “resources/ios/icon/icon-76.png” width = “76” />

<icon height = “152” src = “resources/ios/icon/icon-76@2x.png” width = “152” />

<icon height = “167” src = “resources/ios/icon/icon-83.5@2x.png” width = “167” />

<icon height = “29” src = “resources/ios/icon/icon-small.png” width = “29” />

<icon height = “58” src = “resources/ios/icon/icon-small@2x.png” width = “58” />

<icon height = “87” src = “resources/ios/icon/icon-small@3x.png” width = “87” />

<icon height = “1024” src = “resources/ios/icon/icon-1024.png” width = “1024” />

<splash height = “1136” src = “resources/ios/splash/Default-568h@2x~iphone.png” width = “640” />

<splash height = “1334” src = “resources/ios/splash/Default-667h.png” width = “750” />

<splash height = “2208” src = “resources/ios/splash/Default-736h.png” width = “1242” />

<splash height = “1242” src = “resources/ios/splash/Default-Landscape-736h.png” width = “2208” />

<splash height = “1536” src = “resources/ios/splash/Default-Landscape@2x~ipad.png” width = “2048” />

<splash height = “2048” src = “resources/ios/splash/Default-Landscape@~ipadpro.png” width = “2732” />

<splash height = “768” src = “resources/ios/splash/Default-Landscape~ipad.png” width = “1024” />

<splash height = “2048” src = “resources/ios/splash/Default-Portrait@2x~ipad.png” width = “1536” />

<splash height = “2732” src = “resources/ios/splash/Default-Portrait@~ipadpro.png” width = “2048” />

<splash height = “1024” src = “resources/ios/splash/Default-Portrait~ipad.png” width = “768” />

<splash height = “960” src = “resources/ios/splash/Default@2x~iphone.png” width = “640” />

<splash height = “480” src = “resources/ios/splash/Default~iphone.png” width = “320” />

<splash height = “2732” src = “resources/ios/splash/Default@2x~universal~anyany.png” width = “2732” />

<preference name = “AllowInlineMediaPlayback” value = “false” />

<preference name = “BackupWebStorage” value = “none” />

<preference name = “DisallowOverscroll” value = “false” />

<preference name = “EnableViewportScale” value = “false” />

<preference name = “KeyboardDisplayRequiresUserAction” value = “true” />

<preference name = “MediaPlaybackRequiresUserAction” value = “false” />

<preference name = “SuppressesIncrementalRendering” value = “false” />

<preference name = “SuppressesLongPressGesture” value = “false” />

<preference name = “Suppresses3DTouchGesture” value = “false” />

<preference name = “GapBetweenPages” value = “0” />

<preference name = “PageLength” value = “0” />

<preference name = “PaginationBreakingMode” value = “page” />

<preference name = “PaginationMode” value = “unpaginated” />

<preference name = “CameraUsesGeolocation” value = “false” />

<preference name = “deployment-target” value = “11.0” />

<preference name = “CordovaWebViewEngine” value = “CDVWKWebViewEngine” />

<preference name = “DisableDeploy” value = “false” />

<preference name = “AutoHideSplashScreen” value = “false” />

<preference name = “StatusBarOverlaysWebView” value = “true” />

<preference name = “StatusBarStyle” value = “lightcontent” />

<preference name = “ScrollEnabled” value = “false” />

<preference name = “android-minSdkVersion” value = “19” />

<preference name = “android-targetSdkVersion” value = “28” />

<preference name = “SplashMaintainAspectRatio” value = “true” />

<preference name = “FadeSplashScreenDuration” value = “300” />

<preference name = “SplashShowOnlyFirstTime” value = “false” />

<preference name = “SplashScreen” value = “screen” />

<preference name = “SplashScreenDelay” value = “3000” />

<preference name = “AndroidPersistentFileLocation” value = “Compatibility” />