I am using the connection string from azure portal for the push notification. When I try calling the notificationhub, I received this error:
Caused by: java.lang.IllegalArgumentException: Invalid connection string: Error parsing connection string: Missing character =. Position 21. at com.microsoft.windowsazure
Package I used:
using Firebase.Iid; using Firebase.Messaging; using Newtonsoft.Json.Linq; using Tux.Core.Constants; using System.Linq; using System.Collections.Generic; using Tux.Core.Network.Utility; using WindowsAzure.Messaging;
Please check the value of your connection string.
You could following this guide to get the correct connection string. Make sure you are not using the connection string for DefaultFullSharedAccessSignature.
And the code for NotificationHub:
NotificationHub hub = new NotificationHub("Name", "connection string", this);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With