Delegate Methods
Default Handling of Remote Notifications
Custom Implementation (If Needed)
Accessing Notification Data
Netmera Push Delegates
Netmera.setPushDelegate(self)
Netmera.setPushLifecycleDelegate(self)Push Lifecycle Events
extension AppDelegate: NetmeraPushLifecycleDelegate {
func didRegisterDeviceToken(_ deviceToken: String) {
print("Device Token: \(deviceToken)")
}
func didReceive(_ push: NetmeraBasePush) {
print("Push received")
}
func didOpen(_ push: NetmeraBasePush) {
print("Push opened")
}
func didClickActionButton(_ identifier: String, for push: NetmeraBasePush) {
print("Action button clicked: \(identifier)")
}
func didClickCarouselItem(_ identifier: String?, for push: NetmeraBasePush) {
print("Carousel item clicked: \(identifier ?? "nil")")
}
}Controlling Push Presentation
Handling WebView Presentation
Handling Deep Links
Last updated
Was this helpful?