Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client identification sequence is not valid. #83

Open
kariot opened this issue Aug 12, 2024 · 0 comments
Open

Client identification sequence is not valid. #83

kariot opened this issue Aug 12, 2024 · 0 comments

Comments

@kariot
Copy link

kariot commented Aug 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant