updateToken method

Future<void> updateToken({
  1. String? fcmToken,
  2. String? apnsToken,
})

Implementation

Future<void> updateToken({
  String? fcmToken,
  String? apnsToken,
}) async {
  final action = OmiAction(actionName: OmiActionName.UPDATE_TOKEN, data: {
    'fcmToken': fcmToken,
    'apnsToken': apnsToken,
  });
  return await _controller.action(action);
}