Request a token
To request a notification token you need to do the following things:
- 1.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 modified 2yr ago