Flutter background service, push notification? - flutter

in my application I need to send a request to the database 2 times a day and issue a notification on the response.
The problem is that the Dart codes I wrote should work even when the app is closed. I used workmanager background service and flutter_local_notifications. On the Android system, it works without problems, but on the IOS system, it constantly causes problems. How can I make things work the way I want for both Android and iOS?

Related

Flutter communication notification

Im already using the awesome_notifications package to create custom notifications in my Flutter app but it doesn’t seem to support communication notifications for iOS (notifications with a profile picture instead of the app icon). I don’t know if there’s a plan to add this in the future and it’s been a year since these notifications were released with iOS 15 so I’m looking for other solutions. Are there any example Flutter apps with a platform channel or something like that to create communication notifications?

Flutter application restart instead of resuming after some time when switch to other applications

Hi i am developing a flutter application and i am using getx statemanagment. The problem is when i put application in background and use some other applications like whatsapp,youtube,play a game or listen music, after some time when i resume my application from recents it restarts and all progress is lost.
I have already tried different solutions like moveTaskToback(true) with native android function call
Please help, I have almost finished my important application.
I'm not sure on why this happens, but some manufacturers have their own restrictions on apps running in the background. Nothing you can really do from a flutter perspective, the app lifecycle is the same on all devices.
Here is a link where they share some tips how to deal with this on Xiaomi from the users perspective.
https://dontkillmyapp.com/xiaomi
From the developers perspective, as you can read on the bottom of the article, the are no common workarounds known yet.

Fetch data from socket always in background and use the data to show as a push notification in FLUTTER APP(FCM should not be used)

First of all I am completely a beginner in android native code, I started with flutter app development. My problem is with the implementation of push notification. I want to Fetch data from the socket API continuously in the background and use the data to show as push notification when my FLUTTER APP(NOT ANDROID APP) is in the background/foreground/killed.
If I am not wrong I know I have to code in native android but the thing is I am unable to find an example connecting the native java code with the flutter app(NOT android app) for push notification service. I am not searching for an FCM solution. Can anyone give me an example using plugins like the work manager, that works in the background? Moreover, in my flutter app, I want to navigate to another page when the notification is pressed.The task is like whenever the socket sends a message there will be a push notification (no matter the app is running or not), on clicking the notification the user can go to a specific page of the flutter app.

Flutter : Run an app as a background service

I want to show a custom popup message whenever the user disconnects a cellular call. The problem is how to detect when the app is not running. any leads would be helpful.
It's been a while and there have been many developments.
First, there are some answers at How to create a service in Flutter to make an app to run always in background?
Also, flutter/Background processes will basically point you to medium/Executing Dart in the Background with Flutter Plugins and Geofencing (Sept 2018)
which is a Geofencing sample that involves a partnership between isolates, native Android/iOS code via MethodChannel, and PluginUtilities.getCallbackHandle (PluginUtilities)
Alas, there are many plugins available now:
https://pub.dev/packages/background_location
https://pub.dev/packages/android_alarm_manager (Android)
https://pub.dev/packages/background_fetch
https://pub.dev/packages/workmanager
https://pub.dev/packages/audio_service

reminders in ionic app without server code

Was anyone implemented a reminder system in an ionic app without server side code?
Basically, I'm building an ionic app (targeting Android and IOS) and I want to setup reminders. But my main problem is figuring out how to trigger them when the app is closed.
Check that plugin out : https://github.com/katzer/cordova-plugin-background-mode
This let you not put the app from sleep when exiting app.
However, this will not replace a push notification feature.