Apple push notification issue for status true - apple-push-notifications

I am sending apple push notification from java. I am getting true for pushedNotification.isSuccessful(). But push is not getting on ios device for that device token.
What can be the issue?

Finally resolved.
I found issue in p12 certificate. given device tokens were not registered to p12 I am using.

Related

Parse Push Notifications: Another Error Occurred

I am using parse.com and my app is in production mode. and I have an issue with push notifications for IOS.
most of the times it works fine but sometimes it show "Another Error Occurred" in push notification explorer with the status sent. But users not getting push notification as they were supposed to get.
So how can I trace what is the reason behind and how can I fix this?
it's not certificate related issue as I have already changed my certificate on parse.com, and if it was certificate issue it should occurred each time.
does anyone have any idea how to fix this?

Query on push notification plaforms

How does push notification platforms check if the app credentials(Android - app key, project id // ios - certificate etc) provided by user are genuine or not. Do they validate this at the time of app registration or while pushing a notification on to GCM - Google cloud , APN - Apple push
I don't know the specifics for GCM but I assume it's similar to Apple: every time you try to send a push notification, you need to connect to Apple's servers with the Push Certificate that you will have generated between them and you. The validity of the certificate is checked for every single call that you make to their servers.

Coding Issue while registerForRemoteNotificationTypes

I had a support for push notification "registerForRemoteNotificationTypes" in my app which is under a macro "EnablePushNotification". That means only if I enable this macro, then my "registerForRemoteNotificationTypes" will be executed.
I have recently submitted my app to Apple Appstores, and they have sent me a warning as below:
"Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the "aps-environment" entitlement.
If you would like to update your binary for this app, you can reject this binary from the Binary Details page in iTunes Connect. Note that rejecting your binary will remove your app from the review queue and the review process will start over from the beginning when you resubmit your binary."
My question is that I had not enabled this macro "EnablePushNotification" so "registerForRemoteNotificationTypes" will never get executed. Also I had not enabled my appstores provisioning profile for push notification. Even then i got this warning. What might be the issue here? Help appreciated.
I think you should also put under macro following UIApplicationDelegate methods
application:didReceiveRemoteNotification:
application:didRegisterForRemoteNotificationsWithDeviceToken:
application:didFailToRegisterForRemoteNotificationsWithError:

push notification not received by iPad

We are running into an issue with push notification. We are sending alerts to iPad app through apple sand box. From our C# console, it connects to APNS (TCP/IP), authenticates SSL and sends notification. But the device didn't receive anything. Certificate(.pem) generated for development environment and we are sending the notification in ByteArray format. Is there a way to validate the device token?(meaning are we targeting the right device). Also how to retrieve the status through enhanced notification format. Any feedback/suggession would be of great help. Thank you
A couple questions:
How are you sending the notification in byte array format?
Isn't the Notification just a string formatted as Json?
A couple things you should be doing:
Also you can be using the development certificate but in your code you've not set the environment to be sandbox.
And most importantly you should be using a .p12 file as your certificate not a .pem file.
Hope that helps.

APNS: Not receving any feedback for registerForRemoteNotificationTypes: neither +/-

I have been trying to use the default code in the iPhone APNS documentation to generate a device token using registerForRemoteNotificationTypes() but without succes.
Neither the didRegisterForRemoteNotificationsWithDeviceToken or the didFailToRegisterForRemoteNotificationsWithError is called. I had placed a UIAlert in both these methods- both did not appear.
My iPhone is acceesing APNS using Wi/Fi using DHCP.(& am able to browse )
Is there any other setting that needs to to be done to genrate a device token?
can someone post a working code which can be used to generate device token?
SOLVED:
The outgoing port 5223 had to be opened for the Firewall of my WiFi AP.

Resources