Skip to content

Client identification sequence is not valid. #83

Description

@kariot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions