unregisterDevice method
Implementation
Future<bool> unregisterDevice() async {
Map<String, String> deviceInfo = await _getDeviceDetails();
String? deviceId = deviceInfo['identifier'];
Map resultMap = await Invoker.delete('/messaging/registrations/$deviceId');
return resultMap['result'];
}