-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hello how can i create a local notification
this is my code
UNUserNotificationCenter center = UNUserNotificationCenter.currentNotificationCenter();
UNMutableNotificationContent conten = new UNMutableNotificationContent();
conten.setTitle("Jurassic Park");
conten.setSubtitle("Lunch");
conten.setBody("Its lunch time at the park, please join us for a dinosaur feeding");
conten.setSound(UNNotificationSound.defaultSound());
UNTimeIntervalNotificationTrigger trigg = UNTimeIntervalNotificationTrigger.triggerWithTimeInterval(2.0,false);
UNNotificationRequest req = UNNotificationRequest.requestWithIdentifier("ContentIdentifier",conten,trigg);
center.addNotificationRequest(req,nsError -> {
});
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working