I have created an app in android where I have used FCM Job Dispatcher. Now I am working on the iOS app and did not find anything like that From the FCM.
Then I tried to look into something like that called "Services in android" to perform the background task even when the app is close. But sadly I did not find anything similar to it in iOS.
So all I am left with the is Local notifications in iOS. but I do not know if it will help me if my use case is as follow:
So I am very much confused what should I select to perform such type of task. I am really confused that apps like WhatsApp and others How they actually getting calls and messages if they are not running even in background.
Please share your views that what should I use in these cases?
In context of performing tasks when your app is not in foreground:
1) App is in background - Simple background fetch will work
2) App has been terminated -
Note - If user forcefully quit the application nothing will work other than VOIP services but again VOIP services only available for the apps having audio/video calling feature
Case: 1 - User quit app forcefully
You can not do anything.
Case: 2 - System terminated the app for some reasons
Background fetch will work for the below conditions:
content-available
key in the payload )For more reference. read here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With