getDeviceId method
Implementation
@override
Future<String> getDeviceId() async {
String? deviceId = await messaging.getToken();
if (deviceId == null || deviceId.isEmpty) {
throw new SpinachMessagingInitException(
"Created device ID is null or blank");
}
return deviceId;
}