CrossGeeks / AzurePushNotificationPlugin

Azure Push Notification Plugin for Xamarin iOS and Android
MIT License
67 stars 34 forks source link

Push Send from Backed not working #42

Closed k0steash closed 4 years ago

k0steash commented 4 years ago

Hallo to all, I'm testing from Azure - portal and it working. But if i send from backend - not working. Should i yet template register? I use NotificationHubClient

k0steash commented 4 years ago

I checked devices with GetRegistrationsByTagAsync and my device be present. So i send notifications:

Hub.SendTemplateNotificationAsync(new Dictionary<string, string> { { "message", sendvalue.ToString(Newtonsoft.Json.Formatting.None) } }, users); , where users is string[] with tags and sendvalue is JObject

k0steash commented 4 years ago

With SendFcmNativeNotificationAsync and SendAppleNativeNotificationAsync working

ikeoriaku123 commented 4 years ago

Hallo to all, I'm testing from Azure - portal and it working. But if i send from backend - not working. Should i yet template register? I use NotificationHubClient

I can give a good advice. Develop your own framework for push notification. I used the plugin which only worked for iOS but not 100%. It never worked for android. So I decided to create my own framework in order to have more control whenever ios or android is updated. I did that and it worked for me. Kudos to the people that developed this plugin but I rather implement mine