inboxTrackAction method
Implementation
@override
Future<void> inboxTrackAction(String messageId) async {
final userId = await _getProfileId();
if (userId == null) return;
String? devicePlatform;
try {
devicePlatform = Platform.isIOS ? 'ios' : 'android';
} catch (_) {}
final body = <String, dynamic>{'userId': userId};
if (devicePlatform != null) {
body['devicePlatform'] = devicePlatform;
}
await http.post(
Uri.parse(_getInboxUrl('messages/$messageId/action')),
headers: _inboxHeaders(json: true),
body: jsonEncode(body),
);
}