AFMessagingHooks

Functions

Link copied to clipboard
fun onForegroundMessage(title: String?, body: String?, deeplink: String?, icon: String?, data: Map<String, String>?)

Called by Swift when a foreground message arrives (optional, but handy for Flow)

Link copied to clipboard
fun setFcmToken(token: String?)

Called by Swift whenever Firebase gives/refreshes the FCM token

Link copied to clipboard
fun setTopicHandlers(subscribe: (String) -> Boolean?, unsubscribe: (String) -> Boolean?)

Provide topic handlers implemented in Swift (FirebaseMessaging under the hood).