requestToken static method

Future<void> requestToken()

Requests the token to APNS & GCM.

This will not return the token, use the onToken callback to retrieve the token once the registration is completed with success.

@returns A future that completes once the registration is started successfully.

Implementation

static Future<void> requestToken() async => MPush.requestToken();