I want to make a notification that gets triggered by an if statement.
if (value > 10){ //trigger notification}
I am not sure of how to do this, please help.
If you wish to schedule a local notification, please refer to
Scheduling a notification Locally from Your App
For the notification to be triggered immediately, please note in the UNNotificationTrigger documentation: "If the request does not contain a UNNotificationTrigger object, the notification is delivered right away." addNotificationRequest