c# - PushSharp OnNotificationSent event not trigger when push notification sent to Android but its trigger when sent to iphone -


i using pushsharp library send pushnotification .net android , iphone

my android , iphone recieving push notification sent .net in .net onnotificationsent event trigger ios , not android

    **my pushsharp registration code**     push = new pushbroker();     push.onnotificationsent += notificationsent;     push.onchannelexception += channelexception;     push.onserviceexception += serviceexception;     push.onnotificationfailed += notificationfailed;     push.ondevicesubscriptionexpired += devicesubscriptionexpired;     push.ondevicesubscriptionchanged += devicesubscriptionchanged;     push.onchannelcreated += channelcreated;     push.onchanneldestroyed += channeldestroyed;      push.registergcmservice(new gcmpushchannelsettings(configurationsettings.appsettings["pushnotificationapikey"]));       string basepath = appdomain.currentdomain.basedirectory;     string fullpath = path.combine(basepath, "certificates/certificate.p12");      byte[] applecert = file.readallbytes(fullpath);     push.registerappleservice(new applepushchannelsettings(false, applecert, "")); 


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -