Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin android : Having invalid connectionString for azure push notification

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;

like image 264
LittleFunny Avatar asked Feb 01 '26 00:02

LittleFunny


1 Answers

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);
like image 179
Billy Liu - MSFT Avatar answered Feb 03 '26 15:02

Billy Liu - MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!