pushsharp

pushsharp 2 fires an exception while sending notification to apple ios

谁说我不能喝 提交于 2019-12-12 02:55:36
问题 I used PushSharp 2.0.4 and its fires an exception while sending notification to apple: You have selected the Production server, yet your Certificate does not appear to be the Production certificate! Please check to ensure you have the correct certificate! I notice that due to change in apple certificate policies and i think there are a hard coded value in the pushsharp 2 that referee to the old certificate name. I don't want to transfer to the new pushsharp 3 version till now but i want to

iOS Push Notifications AuthenticationException for Certificate

雨燕双飞 提交于 2019-12-11 08:25:32
问题 I am trying to use PushSharp to send a push notification to my app. I have two Apple accounts... one is a regular account, and the other is an Enterprise account. I have a developer certificate on the regular account that works, but both my development and distribution certificates fail to work from the Enterprise account. I get an Authentication Exception.. A call to SSPI failed, see inner exception. Inner Exception: [System.ComponentModel.Win32Exception]: {"An unknown error occurred while

PushSharp - The credentials supplied to the package were not recognized

怎甘沉沦 提交于 2019-12-11 04:15:15
问题 I been searching for an answer for this for a long time now. There are a zillion discussions but none seems to have helped me (I have tried everything I have read). I have an ASP.net website that send apple push notifications. I created a Console app using push sharp - run it on my server, the push notifications get sent/received successfully. I run the console on my local dev system, it also works. I run my 'website' from IIS Express on my local system - the push notifications are also

sending passbook update with pushsharp

旧城冷巷雨未停 提交于 2019-12-10 16:27:15
问题 I'm trying to test talking to apple's push notification sandbox server. I made a certificate following this link (enabled push notification, requested certificate authority, uploaded, generated cert, export p12) I made a sample C# console application that looks like the following PushBroker push = new PushBroker(); var appleCert = File.ReadAllBytes(@"devapns.p12"); push.OnNotificationSent += NotificationSent; push.OnChannelException += ChannelException; push.OnServiceException +=

PushSharp ASP.net MVC4 on Azure woes. - Can't connect to APNS feedback service

烂漫一生 提交于 2019-12-10 15:25:52
问题 I have an ASP.Net MVC4 website running a simple web service on Azure to provide a Push Notification service for our mobile app. It works when run on a local IIS instance on my machine but once deployed to Azure it works for a while then stops. It seems like it may stop after PushSharp fails to connect to Apple's feedback service. Initially I get the first stack trace then every ten minutes after that I get the second one. The certificates work fine for connecting to the APNS itself, indeed I

How to send batch notifications in GCM using PushSharp

谁说我不能喝 提交于 2019-12-10 12:19:08
问题 As the title says, I have a list of all my registration IDs, and I want to send the same message to all of them at once. I was told that GCM can handle approximately 1000 notifications at once, but I'm really confused as to how to do this in PushSharp (other than actually sending them individually, using a for loop). If anyone is familiar with this I would really appreciate some assistance. He's some generic code push.RegisterGcmService(new GcmPushChannelSettings(ApiKey)); push

Structuring GCM messages in PushSharp 4.0

不打扰是莪最后的温柔 提交于 2019-12-09 23:05:00
问题 I'm somewhat confused in how I'm supposed to structure the message body for a GCM push notification using PushSharp. The docs as well as the test files in the GitHub repo show what looks to be the message structure as this: broker.QueueNotification (new GcmNotification { RegistrationIds = new List<string> { regId }, Data = JObject.Parse ("{ \"somekey\" : \"somevalue\" }") }); I've been using Postman for testing in which I send a message in the following JSON format to https://gcm-http

PushSharp notifications to iOS are not reaching device

半世苍凉 提交于 2019-12-08 05:35:47
问题 I am attempting to use the PushSharp library for apple push notifications in a c# service I am running. The code all appears to execute correctly, there are no errors and it seems all things are done correctly. However the notification never reaches my application. Everything Ive read seems to conclude the issue is my certificate, but ive re-downloaded, and redone the steps numerous times and everything seems to be correct with it. Here is my PushSharp c# code string pushCertPath = string

Production certificate error in push notification - PushSharp

时光怂恿深爱的人放手 提交于 2019-12-06 13:30:35
问题 My app was getting push notification when I used Enterprise account with following push notification certificate in production environment: Apple Production iOS Push Services Then in order to publish my app in App store, I started using app store account, no matter what I try, apple creates production certificate in following name: Apple Push Services Then from this SO, I came to know that Apple has changed its naming in certificate. My issue is, I am using Push Sharp in server side and

how to validate Apple APN device token - WCF .NET

杀马特。学长 韩版系。学妹 提交于 2019-12-06 08:46:37
问题 I am building a WCF REST web service that is called by the mobile app to insert the Apple device Token into the database. I would like to validate a device token before inserting into the database. Is there anyway to validate a device token to know if it is valid?? I have searched around the forum and could not find any sample code (in .NET) to do this, there were recommendations that I should use the Apple FeedBack service but how do I do that in .NET?? Could anyone please provide me a piece