tauri-plugin-remote-push 1.0.10

A Tauri plugin for remote push notifications on iOS and Android.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package app.tauri.remotepush

import com.google.firebase.messaging.FirebaseMessagingService
import com.google.firebase.messaging.RemoteMessage

class FCMService : FirebaseMessagingService() {
    override fun onMessageReceived(remoteMessage: RemoteMessage) {
        PushNotificationPlugin.instance?.handleMessage(remoteMessage)
    }

    override fun onNewToken(token: String) {
        PushNotificationPlugin.instance?.handleNewToken(token)
    }
}