Integrate with Enhance - Construct
Using older version? Download library for Construct 2
Local Notifications are reminders which show up on your screen after the app becomes inactive for a specific amount of time.
Action Request permission()
Request a permission from the user to show local notifications. This won't have any effect on Android devices as you don't need a permission to schedule local notifications there (the successful callback will be still fired).
Enable local notification
Action Enable local notification(
Schedule a new local notification, if possible. The notification will persist until you disable it manually. For example, if you set a notification for 60 seconds, it will invoke this notification 60 seconds after the app is closed, every time.
- Title (header) of the notification.
- Message (body) of the notification.
- Delay of the notification (how long to wait after app becomes inactive). Use seconds.
Disable local notification
Action Disable local notification()
Disable any local notification that was previously enabled.
On permission granted
Condition On permission granted()
Called when a permission to schedule local notifications is granted or not required.
On permission refused
Condition On permission refused()
Called when a permission to schedule local notifications is refused. Trying to enable a notification will not have any effect.