Apple push notification server on Amazon EC2 connected but not receive notification - ios

I tried the apple push notification API and made it work on my local mac(environment). I tested it in my local tomcat, everything works fine and iOS devices receive notifications as excepted.
But when I deploy my war into the tomcat at remote server( Amazon EC2 instance), noted that I use the same .p12 file for verification. The application returns a successful message but the iOS devices could not receive any messages.
I checked the connection with Apple push server, everything seems fine.
I am wondering if I missed any other system set up for this Amazon EC2. The same code works on a tomcat on windows machine as well.
Thanks!

I have verified that sending a push notification from ec2 through Apns works great. I was having trouble, but it turned out to be using a cert for the wrong app and it failed silently. If you have trouble connecting then check firewall. If it is saying that it sends successfully but there is no delivery then eliminate variables in your certs.

Related

Push notifications not receiving/working for AppStore and TestFlight build

As one of our iOS applications is UNABLE to receive push/remote notifications for production/live build which installed from App Store/TestFlight but able to receive push/remote notifications in development environment and even in production environment also app is able to receive push/remote notifications from third party services like Gimbal (which is in sync with Urban Airship) but not receiving in app notifications which triggered from our servers using Java code base.
We have cross checked
Push notifications permissions in iOS devices
Device token registration/update in our databases.
All ports which are needed for APNS are open in our servers firewall restrictions.
All the .p12 certificates which we are using for development and production are not expired and even we are able to send/trigger these push/remote notifications manually from third party portals(like pushtry.com website, NWPusher) by using the same .p12 certificates even in production environment to live build installed from App Store/TestFlight.
Need help/suggestions in this issue???
Thanks
I would suggest to check the host and port used in your server for production push notification.
I hope you are removing the sandbox from the host for production push notifications.

Push notification is not received in Testflight

Im trying to implement Apple Push notification.
It is working fine in Local environment. But it is not working in test flight.
I have got Automatic signing enabled.
I have included the APNS entitlement file in my build with Key APS Environment and Value Development.
I have used both of the following urls in my server,
Sandbox: gateway.sandbox.push.apple.com, port 2195.
Production: gateway.push.apple.com, port 2195.
But still the push notification is not received from testflight mode. Why so?
Since your push notification is working fine on development but not on test flight.
You should check these as below:
Use the production SSL certificate to generate the .pem file on your push server when your app is using test flight.
Make sure your pem file and device token is right on your push server

Production iOS Push Notification sent locally but not from aws elastic beanstalk

I am able to send a notification from my own machine with production certificate and it is reaching to my iPhone correctly, but when I deploy to my aws elastic beanstalk server it still says that the connection to APNS server was successful but the notification is not reaching anymore to my device.
I am using Grails 2.3, Java 1.7, and the Grails Plugin for APNS "Apple Push Notification Service Integration" that wraps the Java plugin java-apns for Grails.
I donĀ“t know why the notification is not reaching to my device with elastic beanstalk if it is working well locally, besides it says that the connection to the APNS server is ok in both cases
Probably you have to tweak inbound connections settings for your elastic beanstalk setup.
Have a look on "IP Address Range Used by the Push Service"
https://developer.apple.com/library/ios/technotes/tn2265/_index.html

Apple Push Notifications not working from java webservice deployed in Linux

Tested java build with ios production certificate from local windows machines. It was working fine and the push notifications were sent successfully to iphone and ipad.Push notifications are done using javapns.
Deployed the same build in Linux machine, but the push notifications are not working now.
Granted full permission for p12 file in linux server.
should we add/grant anything in the linux server for sending push notification from Linux.
Please help to sort out this issue.
check your java version
JavaPNS javapns-jdk16 Java1.6 compatible

Blackberry push notification - push server sample app missing

We tried to implement the push notification in blackberry. We followed the steps provided in BB developer guide.
We installed the push SDK in our system. once the SDK is installed, we checked whether the tomcat is running ... It was running fine. But, we could not find the sample push server app. (war file is missing in the webapps folder of tomcat).
Are we missing anything or should we install the push server sample app seperately from elsewhere ?
Any pointers where the steps for configuring a push server and a push client app (in device) would be very much helpful ....
Thanks in advance.
php Server side code reference
This is very helpful for the server side code.

Resources