Scheduling Different Notifications On Each Day Flutter
Solution 1:
For those who are facing the same issue, I managed to solve my problem by the following config
Future<void>initPlatformState()async {
varconfig=BackgroundFetchConfig(minimumFetchInterval:15,
forceAlarmManager:true,
stopOnTerminate:false,
startOnBoot:true,
enableHeadless:true,
requiresBatteryNotLow:false,
requiresCharging:false,
requiresStorageNotLow:false,
requiresDeviceIdle:false,
requiredNetworkType:NetworkType.NONE,
);BackgroundFetch.configure(config, _onBackgroundFetch);
}
Github repo to see the working code. Do not forget to support, if the answer is helpful, upvoting the answer and give a star on github
Solution 2:
If you are using PHP to connect to your database then you can actually use PHP to schedule the time and then send the notification to flutter, just like I did in my application, my application is about sending a notification when the delivery order status change to users, so I created a table in the database and convert it to an API which I call in my flutter application using work manager package and flutter local notification package, would upload the video to youtube this weekend and post the link here for you to see... or can you kindly tell me about your database, what are you using to connect etc
this is the youtube video https://youtu.be/b6CTeqJnmN0
Post a Comment for "Scheduling Different Notifications On Each Day Flutter"