# 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

```dart
MPush.onToken = (token) {
    print("Token retrieved: $token");
}
```

2\. Request the token using MPush:

```dart
MPush.requestToken();
```
