setTokens method

Future<bool?> setTokens({
  1. required String accessToken,
  2. String? deviceToken,
})

register fcm token, and device token for android

ios device token is obtained internally

Implementation

Future<bool?> setTokens({required String accessToken, String? deviceToken}) {
  return _channel.invokeMethod('tokens', <String, dynamic>{
    "accessToken": accessToken,
    "deviceToken": deviceToken
  });
}