Search code examples
flutterpush-notificationflutter-notification

Flutter - How to send push notification If the user did not logged in the app for a period of 24 hours?


I am working on a client's application using flutter, where his requirement is to send a push notification if the user did not log in to the app for a period of more than 24 hours. Is there any way this can be achieved only by flutter or should I trigger push notification from the backend?


Solution

  • Every time the user does login in app cancel all notifications previews and create a new for 24h after. For do that, use this plugin: flutter_local_notifications and you dont need backend.