sendNotificationStatus static method
Implementation
static Future<void> sendNotificationStatus(
String messageId,
String status, {
String failureReason = '',
String buttonId = '',
}) async {
// try {
// final url =
// await cacheInstance.getValue(KeyConfig.kcNotificationEventUrl) ?? '';
// final userId = await cacheInstance.getValue(KeyConfig.kcMerchantId);
// final token = await cacheInstance.getValue(KeyConfig.kcMerchantToken);
// if (userId == null || token == null) return;
// final data = {
// 'status': status,
// 'button_id': buttonId,
// 'failure_reason': failureReason,
// 'message_id': messageId,
// };
// final headers = {
// 'Content-Type': 'application/json',
// 'id': userId,
// 'provider': 'kwikchat-dynamic',
// 'token': token,
// };
// // final response = await http.post(
// // Uri.parse(url),
// // headers: headers,
// // body: jsonEncode(data),
// // );
// // if (response.statusCode != 200) {
// // throw Exception('HTTP error! Status: ${response.statusCode}');
// // }
// } catch (e) {}
}