QuickBlox / quickblox-flutter-sdk

quickblox-flutter-sdk
Other
8 stars 0 forks source link

Client identification sequence is not valid. #83

Open kariot opened 1 month ago

kariot commented 1 month ago

I'm using the following function to subscribe to push notification in Android.

  Future<void> _subscribePushNotification() async {
    String channelName = "";
    String? token = "";
    try {
      if (Platform.isAndroid) {
        token = await FirebaseMessaging.instance.getToken();
        channelName = 'gcm';
      } else if (Platform.isIOS) {
        token = await FirebaseMessaging.instance.getAPNSToken();
        channelName = 'apns';
      }
      await QB.subscriptions.create(token ?? '', channelName);
      debugPrint("_subscribePushNotification");
    } on PlatformException catch (e) {
      debugPrint(e.toString());
    }
  }

Unfortunately I'm getting the following error PlatformException(base Client identification sequence is not valid., null, null, null) I have created a session and have the QB-Token in the headers.