iOS app won't fetch data when recalled back from background as does Android

Yes, the title of this post may not be very clear…

I developed and published an app both for Android and for iOS. I developed mainly on Android and then ported with some little changes to iOS. The app fetches data from a web API I made.
I always appreciate the behaviour of the Android version of the app thet, after being some minutes in background, when placed in foreground would automatically fetch the data and update the contents. I thought that this behaviour would have been the same for iOS apps too. Unfortunately now that the app is published I just noticed that iOS version won’t reload / fetch automatically the data after being in background.
Is this the common behaviour in iOS? How can I tell the app to reload / fetch the data after being in background for a while? Or do I have to implement a kind of manual scroll update?

SOLVED using Lifecycle. Place this at the beginning of MainView.ux:

    Lifecycle.on("enteringForeground", function() {
        // fetch data here
        // then if needed router.push("to_the_page_you_want"); 
    });

When the user recalls the app from the background the app will re-fetch the data as soon as woke up and in foreground.

1 Like

Very nice website. Information about iOS helped me a lot. Get Samsung Galaxy S7 Repair through our website.

This is one of the main advantages of using ios as it do not fetch data while the ios app are in the minimize state. this fetaure is not there in the android but you can get this by contacting data recovery dubai which help you to use android apps like ios apps.

This is important information for ios app user. Many times data have lost in iOS app that’s why user face many problems. If you are facing this problem connect with Data Recovery Services.

All the above posts but mine (“SOLVED”) are spam.