Can somebody tell me if you get push notifications?
I think there is a problem with APNS because yesterday everything worked fantastic, no changes were made and today I can't get even one push notification.
Will be happy to hear you answers.
Thanks
So I fixed the problem and now everything works just fine.
The problem was with .pem file.
You can use this url for getting correct pem file:
https://pushio.zendesk.com/entries/21644287-generating-a-pem-file-for-ios
Related
This question is probably the same as Duplicate Apple APNS push notifications?, but since that one didn't get an answer, and I have some more information, I'll try to ask it again.
Steps to reproduce the problem:
Set notification center to display notifications as alerts, this will make the problem more obvious.
Make sure the app isn't running in the foreground.
Send 3 identical push-notifications in rapid succession.
Wait until the messages arrive at the phone, you will now have to dismiss the alert 3 times.
Now send 1 more notification, that isn't identical with the previous ones.
You now get that last notification, but you'll also get one of the previous notifications showing up once more. This is the problem.
If you continue to send single notifications, one of the first 3 will keep popping up when it shouldn't.
Here is a video that follow these steps, which clearly shows the problem:
http://youtu.be/TSqt8S4FY6w
We have just as Remy Gale did in the linked question above made sure that our notifications are sent in the correct way, and only once per notification. We have also tested this with both the sandbox-apns and the production-apns, both behave exactly the same.
The problem disappears if the app-badge is set to 0, which in turn removes all notifications from notification center. Removing the notifications manually doesn't help.
UIApplication *app = [UIApplication sharedApplication];
app.applicationIconBadgeNumber = 0;
But that isn't a solution.
The problem doesn't appear if all notifications contain unique text. Adding a GUID to the alert-text will make the problem disappear. Adding it to the apns-payload as a custom property or as a localized argument will however not help, so this is also not a solution.
This will probably rarely happen in a production environment with a live app, but it can happen, and when it does, it is really annoying for the users!
Does anyone know why this happen? Does anyone have a viable solution?
This Google Group for Gmail has an entry from a user who has researched the bug a bit and includes a possible workaround. According to the entry the bug is not present in iOS 5 but was introduced with iOS 6.
The workaround is simply appending a random number of Zero-width non-joiner to the title in order to assure uniqueness.
This could be an issue with the timestamp that the server is picking while sending a push notification to APNs. Pick only the latest timestamp.
I'm dealing with the apple push notifications.
First point: they're working, and that's fine :) (I followed this tutorial as kikstart: http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1)
Second point: when I push a notification from the server, my phone is receiving an alert (I'm talking when the app isn't running) for each notification I didn't 'open'.
Is this a default behaviour?
If this is not a default behaviuor I'll add some code and particulars about all the system I'm working with, but before writing tons of information I would like to understand if this behaviour is a bug.
Thanks!
I know this question has already been asked but I am in urgent need of the answer.
I was implementing push notifications in my app.
Initially everything was working fine and I was getting alerts.
But one day my certificate expired and I renewed the cert and used the updated p12 file.
I regenerated the pem files. But now I stopped getting alerts.
I thought that may be I there could be some issue with p12 files so I regenerated them several times. But push notifications don't work.
Please suggest something to resolve this issue.
Thanx in advance.
May be the ports for sending the push notification are closed on your machine.
Check with the ports specified in apple push notification guide.
I got the solution for my problem.
According to apple docs sometimes due to impersistent connection the device is not able to connect with APNS.
So for this you need to on-off Notifications from the Settings app frequently so that the connection is regained with APNS.
Hope this saves a lot of time of many people stuck in this issue.
I found some weird behavior in push notification. My iPod app receives push notifications till last week with no issues. Then I found that my app is not receiving push notifications, and I changed the certificates and it worked fine, and after 2 days its not working. And I repeated the same process and same kinda problem. I was wondering why this happens?
NOTE I am using my own java based server to send push notification. I am sure that my certification are not expired. At the time of this problem the badge id is also not visible with my application icon.??
Thanks in advance.
Ensure a few things
You are using the correct combination of production or dev pem and the APNS or sandbox server URL
Check the Feedback services to ensure whether you are getting any errors
I faced similar issues with my 3GS running OS 4.1 last week. It started working after I restarted my device. Try doing that and see if it works.
Please make sure to update the device token in the database of you provider. I guess some updates in your iOS/certificates may changed your device token. Just make a test around that.
Try lostInTransit's solution and also check for your internet connectivity. I also faced this issue with my iPod sometimes the push notifications not come in my iPod. Try this -
Install facebook iPhone app on your device.
Send a test push notification from your server.
If the notification does not come then do something with facebook which should generate the notification.
If the notification from facebook does not come it means its related to your net connectivity.And your code is perfect.
Sometimes I see that when my iPod is on DHCP it does not receive the notification but when I assign it a static network (dedicated IP) it works fine.
I have a problem where I don't receive notifications every time I push them to the device. I do receive them occasionally or after a big delay. I'm using the development certificate for APNS and Ruby on Rails on the server side. The server does send notifications to the Apple server its only when I'm receiving them I have a problem.
I initially thought it was a problem with global notifications (tunnel being closed) and to test it I sent my device a notification to Skype which was received almost instantaneously. So, I really dont understand whats the problem here. Is there anything I'm missing or how do I trouble shoot it in depth.
Are push notifications reliable and whats the latency involved? Any help will be greatly appreciated. Thanks
In development, the sending of push notification is not reliable. Some notifications may arrive with some delay. You can try to send notifications in production by building your app in adhoc.
If you haven't the same result with different iphone/ipod, you can try to reset network settings device.