Request a token
To request a notification token you need to do the following things:
Set a callback that will be called once the token is received correctly from APNS/FCM
MPush.onToken = (token) {
print("Token retrieved: $token");
}
2. Request the token using MPush:
MPush.requestToken();
Last updated
Was this helpful?