Redth / PushSharp

A server-side library for sending Push Notifications to iOS (iPhone/iPad APNS), Android (C2DM and GCM - Google Cloud Message), Windows Phone, Windows 8, Amazon, Blackberry, and (soon) FirefoxOS devices!
Other
4.38k stars 1.52k forks source link

FCM Topic problem #789

Open amirzeinaly opened 7 years ago

amirzeinaly commented 7 years ago

What version of PushSharp are you using? v4

Describe your issue:

I can't send push notification to topic here the code i use: gcmBroker.QueueNotification(new GcmNotification() { To = $"/topic/{topic}", Data = JObject.Parse("{ \"message\" : \"" + message + "\" }") }); The response I get

2016-12-11 12:24:00.PM [DEBUG] Scaled Changed to: 1 2016-12-11 12:24:00.PM [INFO] Stopping: Waiting on Tasks 2016-12-11 12:24:00.PM [INFO] Waiting on all tasks 1 GCM Notification Failed: ID=, Desc= 2016-12-11 12:24:01.PM [INFO] All Tasks Finished 2016-12-11 12:24:01.PM [INFO] Passed WhenAll 2016-12-11 12:24:01.PM [INFO] Broker IsCompleted 2016-12-11 12:24:01.PM [DEBUG] Broker Task Ended 2016-12-11 12:24:01.PM [INFO] Stopping: Done Waiting on Tasks

What are the steps required to reproduce this issue?

Please provide any Exception Stack Traces

cblaze22 commented 7 years ago

I posted same thing but for one that To should be topics, not topic