pushsharp

Send Push Notification to iOS PushSharp certificate

被刻印的时光 ゝ 提交于 2020-01-07 07:37:30
问题 I'm using PushSharp 4.0.10 in my push notification server. I can send push notifications to Android, but when I'm trying to send push notifications to ios, an error occurs: Something went wrong in Comunications Worker: Method name -> PushNotifications.DispatchPushNotifications() Message -> There is an error sending iOS push notifications. Exception - > Specified argument was out of the range of valid values. Parameter name: You are using a certificate created for connecting only to the

PushSharp returns invalid token for newly created P12

帅比萌擦擦* 提交于 2019-12-25 06:23:21
问题 I have had an email from Apple saying that my push notifications certificate is due to expire, so trying to be proactive I have regenerated the certificate and exported the P12 however now when I use that new P12 instead of the old one PushSharp gives me an "Invalid Token" error. If then I use the old P12, the notification is sent successfully. I have now tried to revoke the old certificate as my theory was that the old certificate was still being used by the application to generate the

PushSharp notification error

不想你离开。 提交于 2019-12-24 10:56:12
问题 I keep getting this error when using PushSharp: Waiting for Queue to Finish... Failure: Apple -> Exception of type 'PushSharp.Apple.NotificationFailureException' was thrown. -> {"aps":{"alert":"Alert Text From .NET!","badge":7,"sound":"default"}} Queue Finished, press return to exit... Any thoughts? I use the DeviceToken as the long UID shown in iTunes when you pluging your phone. The certificate was exported (Sandbox) as per instruction on PushSharp Wiki. 回答1: What you are using is not the

Android push notifications not being received when app closed

早过忘川 提交于 2019-12-24 01:20:02
问题 I followed the example in the PushSharp repository at: PushSharp Android Client Sample Everything is working great if the app is open or in the background (by hitting home or back button). If I close the app by swiping it away in the application manager I no longer receive notifications, though. My assumption was that since the PushHandlerService is marked as a [Service] that it would remain open even when the app is closed and continue to listen for notifications. Is there a way to continue

APN Production certificate not being recognized by PushSharp

↘锁芯ラ 提交于 2019-12-22 03:15:11
问题 I've developed an iOS app, that receives Push Notifications. I'm sending them from a .NET environment using PushSharp. Everything went beautifully while developing, and the Pushs were successfully sent: var push = new PushBroker(); var appleCert = File.ReadAllBytes(@"Utils\Cert.Development.p12"); push.RegisterAppleService(new ApplePushChannelSettings(false, appleCert, "*******")); push.QueueNotification(new AppleNotification() .ForDeviceToken(token) .WithContentAvailable(1) ); push

PushSharp + Windows Phone deep linking on Toast Notifcation

偶尔善良 提交于 2019-12-20 06:38:21
问题 When using PushSharp with Windows Phone, I'm sending the notification with a deep link to a view in my app. push.QueueNotification(new WindowsPhoneToastNotification() .ForEndpointUri(new Uri(endpoint)) .ForOSVersion(WindowsPhoneDeviceOSVersion.Eight) .WithBatchingInterval(BatchingInterval.Immediate) .WithNavigatePath("/Views/DetailView.xaml") .WithParameter("slug", slug) .WithText1(text) .WithText2(message)); But when the toast appears and I touch it to open the app, the app opens to my

Processing multiple Notifications with PushSharp for ios and android

亡梦爱人 提交于 2019-12-19 04:39:25
问题 I have implemented a windows service that runs every 3 minutes and polls a database for notifications that are ready to be sent. I collects them into a list determines whether it is an ios or an android notification and then call the PushBroker (PushSharp solution is included as a compiled solution in my solution project) I then iterate the items in the list to process as follows: static void ProcessIOS(List<Client> IOS) { PushBroker push = new PushBroker(); push.OnNotificationSent +=

PushSharp APNS production: The credentials supplied to the package were not recognized (development works fine though)

泪湿孤枕 提交于 2019-12-17 10:57:11
问题 My app just got ready for sale on App Store, but none of my production devices (devices that have installed the app from App Store) are getting push notifications. When I try to send a push notification to a production device, I am getting this error: "The credentials supplied to the package were not recognized" (System.ComponentModel.Win32Exception) This exception is internally thrown and caught in an infinite loop: It is thrown at line 539 of ApplePushChannel.cs file: try { stream

Toast notification disappears after 10 sec in windows phone 8

你离开我真会死。 提交于 2019-12-13 07:47:35
问题 Toast notification disappears after 10 sec,if user does not tap on that and I am not able to get How to handle this, if user misses the notification. Requirement is that toast should not disappear untill user taps on it. One way of doing this is to send toast and tile notification at the same time.so that if user misses the toast notification then he may find it on tile.But not able to get how to do it using push sharp.So please suggest any solution for the following : How to decide duration

PushSharp APNS Service Stop working after windows shutdown

放肆的年华 提交于 2019-12-13 02:31:53
问题 I can send notifications to my iPhone device succeffully using Push Sharp via sandbox APNS server but I am having a problem. I have generated .cer and .p12 files and then installed them on my windows 8 development machine successfully. I used this tutorial to install the certificates on my windows 8 machine. Yesterday things were working fine and I was sending the notification successfully. I shutdown my system and then next day when I try to run the code I was getting following exception: