Request a token
To request a notification token you need to do the following things:
  1. 1.
    Set a callback that will be called once the token is received correctly from APNS/FCM
1
MPush.onToken = (token) {
2
print("Token retrieved: $token");
3
}
Copied!
2. Request the token using MPush:
1
MPush.requestToken();
Copied!
Last modified 1yr ago
Copy link