Slow APNS on IBM Bluemix - apple-push-notifications

I developed a PHP backend for a mobile app that runs as an Bluemix CF app. I use custom PHP code to send push notifications via APNS. Everything works but the connection to APNS is extremly slow. The same app uses GCM for push Android devices and this works great. Any advice?

It is not uncommon to see a delay in APNs Push Notifications as seen in some of the other posts:
Apple's APNS Delivery is Sometimes Slow
How much delay of ios push notification?
In regards to PHP specifically I also found a post about delay in connection:
Pushing notifications using ApnsPHP is slow
Finally I will share with you a document from Apple showing the architecture of APNs in order to get a better idea of how and where the delay may occur:
Apple Push Service

Related

The triggered notifications are not receiving in to the android devices

The triggered notifications are not receiving in to the android devices, and these scenario's are failing to receive the notification.
1) When the Android/iOS mobile app doesn't has the internet but notifications are triggered from the FCM Console or FCM Api(We developed the api to trigger notifications). Few minutes later Android/iOS mobile app get internet access, immediately Android/iOS mobile app should get all triggered notifications. But Android mobile app doesn't receive the any notifications, iOS mobile app able to receive the all notifications.
2) We have Scheduler to schedule the notifications by Daily basis, the android mobile app is not receiving the scheduled notifications from the FCM Server, but iOS mobile app received all scheduled notifications from the FCM Server.
Kindly requesting you please help me to resolve these scenario.
Let me know if you require more information on my side.
Push notifications are managed by firebase service for Android. Google software decides how to queue and when to push notifications to the device. If you are pushing iOS notifications through firebase, Apple service decides when to push notifications to the device. That means that these services doesn't have to follow the same pattern. The real question is if all notifications are received finally by android device or not. If all there is no error in your code. What you can do is to set higher priority for android notifications. Google service takes in count traffic, battery state and several other factors when sending notifications to device. If Android device does not receive any notifications during lets say 1 hr, you should revisit your code.

Push notification from local API in xamarin forms

I am having an API locally hosted in one of the servers (LAN). What I am looking to understand if it is feasible to enable push notification from the server in case of a record entry. Every time a post request is made to the local server, Is it possible to push a notification to a certain mobile device? Please note, I am not considering push notification from web services such as google, Azure, Firebase etc.
It is feasible.
As Sushi said, you can use WebSockets or other Sockets to keep connect between Apps and Server. When client connected to your server, server will record which app is connecting.
By the way, you can custom notification's url between server and app.Use some special characters to distinguish between your various parameters, such as &/[ ]. You are free to set the header and body style of the message. Also, when your message needs to be encrypted, some encryption methods can be used.
Here is a similar discussion about Building an Android notification server can be refer .

Send push by Parse.com and receive in client web

I'm making a real-time system with API in PHP Parse.com, since I already use for Android.
I need to receive notifications (PUSH), the same that are received on mobile versions.

XMPP Notfication service instead of GCM / APNS

How does device receive Android GCM push notification?
Hi,
In the link above the steps of GCM and Blackberry notifcation services are explained.
I'm wondering if it is possible to change the GCM (android) / APNS (iOS) to one central notfication service with XMPP? This because I want to build a server and client with XMPP and want to communicate between these as well with messages and notifications.
Thereby, with the setup of a webview in a android application and GCM sending notifications to the device, GCM is not reliable. Not all messages are send to the device. I'm not sure yet how this works for APNS, but the app will be used on different platforms and it would be nice if there is just one way of sending notifications.
Anybody experience with this? Or is there another way of implementing the notifcations?
iOS does not allow you to run apps in background (except of voice apps). This means that you cannot have a XMPP stream in the background with iOS. For iOS there is no other solution than APNS if you are not a voice app. Android does not have these restrictions. Windows Phone 7.X hast the same restrictions as iOS, I don't know how Blackberry handles this.

How to Use Apple Push Notification?

I am completed my App but i want to add push notification into my application, i installed the SSL certificate and also build the app and get the ipa file...
But i have a doubt that is how the apple pushes the Notification to My Device? How to change the Alert Message from Apple? Where the code written to Customize our Push Notification message? Is it Client side Or server side..?
I suggest reading this carefully first and when you run into problems you ask them here.
Push Notifications programming guide
You need a push notification server in order to be able to send push notes to your application. Push notification server tutorial

Resources