Bug fixes in notification and support iOS Communication Notification!

This commit is contained in:
2024-07-21 23:43:18 +08:00
parent dbd05dbb79
commit 62edab0131
3 changed files with 53 additions and 40 deletions

View File

@ -127,6 +127,8 @@ class WebSocketProvider extends GetxController {
if (deviceUuid == null || deviceUuid.isEmpty) {
log("Unable to active push notifications, couldn't get device uuid");
} else {
log('Device UUID is $deviceUuid');
}
if (PlatformInfo.isIOS || PlatformInfo.isMacOS) {
@ -136,6 +138,7 @@ class WebSocketProvider extends GetxController {
provider = 'firebase';
token = await FirebaseMessaging.instance.getToken();
}
log('Device Push Token is $token');
final client = auth.configureClient('auth');