updateIOSDeviceToken method

Future<void> updateIOSDeviceToken(
  1. String appkey,
  2. String build,
  3. String deviceToken
)

Implementation

Future<void> updateIOSDeviceToken(
    String appkey, String build, String deviceToken) async {
  //
  var body = json.encode({
    "appkey": appkey,
    "build": build,
    "token": deviceToken,
    "client": client
  });
  //
  // final initUrl = '$baseUrl/api/push/update/token';
  final initUrl = BytedeskUtils.getHostUri('/api/push/update/token');
  await httpClient.post(initUrl, headers: getHeaders(), body: body);
}