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
use tauri::{command, AppHandle, Runtime};

use crate::{RemotePushExt, Result};

#[command]
pub(crate) async fn get_token<R: Runtime>(app: AppHandle<R>) -> Result<String> {
    app.remote_push().get_token()
}

#[command]
pub(crate) fn request_permission<R: Runtime>(app: AppHandle<R>) -> Result<()> {
    app.remote_push().request_permission()
}