← Back to notebook index

Notebook Topic

Notifications

English topic guide inspired by the original iOS Developer Notebook, expanded for both iOS and Android teams.

What this topic covers

Execution checklist

iOS implementation notes

Android implementation notes

Code examples

Swift

let content = UNMutableNotificationContent()
content.title = "Reminder"
let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 3600, repeats: false)
UNUserNotificationCenter.current().add(.init(identifier: "r1", content: content, trigger: trigger))

Kotlin

val channel = NotificationChannel("reminders", "Reminders", IMPORTANCE_DEFAULT)
manager.createNotificationChannel(channel)
NotificationManagerCompat.from(context).notify(1, builder.build())

Reference links

Related topics