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.
I'm using the following function to subscribe to push notification in Android.
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-Tokenin the headers.