registerDevice method
Implementation
@override
Future<IAMPASSUser?> registerDevice(String userID, notificationToken) async {
Map<String, String> args = {
"user_id": userID,
"notification_token": notificationToken
};
final result =
await methodChannel.invokeMethod<String>("RegisterDevice", args);
if (result != null) {
Map<String, dynamic> valueMap = jsonDecode(result);
IAMPASSUser? s = IAMPASSUser.fromJson(valueMap);
return s;
}
return null;
}