Apple Push Notification can not send push on AWS EC2 - ios

I sent push notification by simple push on local server is success and app get message normally.
But push notification can not sent on AWS EC2, it sent to Android normally, I check device token is correct.
I don't know why, please help me!

I found the issue is some device token is invalid, so that, it is can not send push notification any more. I use Houston on Web server Ruby. I changed push instead of write, and now, it is work normally.

Related

Does Apple Push APN provide a statistics API?

I didn't find this answer anywhere so decided to ask.
Does the Apple Push Notifications have a stats API or dashboard where we can see count for sent, received and opened?
Thanks.
Apple does not provide that kind of dashboard. When you are calling the APNS server to send a push notification you receive a response from the APNS server, that you can use to extract some statistics(mostly if the notification was send). If you need to know that the notification was opened you can manually track if the application was launched due to the user tapping the PN or an action of the PN.

APN Push Notifications coming in bursts

I'm developing an iOS app and I'm facing this weird bug where the push notifications come in bursts.
Basically, let's say I send 10 push notifications with APN from a server (my logs show that the push notification sends), but I don't receive it until some arbitray time later, when I receive all 10 notifications at once.
I've double-checked my app-side code and have also tried re-generating/re-uploading the p12 certs and after looking around here, I haven't managed to find anything either./
Would anyone be able to shed some light on this? Any help is appreciated!
*UPDATE: my logs show that every time the server sends a push notification, it also sends a 'apple sandbox notification' simultaneously, but I'm notsure what that is

An issue with implementing Push Notification for ios using Rocket Chat React Native

I am trying to implement Push Notification with the ios app, as I tested the .pem file its ok and I am able to send push notification but as I am unable to get the push notification from rocket chat app. In fact, I don’t find any guide on how to activate push notification with rocket chat.
Here are the steps I followed.
Here are my rocket chat push settings :here
here
by following these instructions:
https://github.com/raix/push/blob/v3.x/docs/IOS.md
Let me know where i'm wrong
I'm not sure, but I think that you need to disable gateway. From Rocket.Chat documentation:
Go to “Administration”, then “Push”
Set the Enable Gateway to False, then you will use your own
Rocket.Chat as gateway instead of the https://rocket.chat server
Restart server
Now you should be able to Send a test message.
Make sure that you have logged in to the server once, and then closed
the app. You should see a test notification after you pressed the
send button.

iOS push notification coming twice

I am using the one signal third party sdk to send push notification, for this, i had created ssl certificate and export p12 to one signal dashboard.
For some reason my own server need to send push notification for this I have created another SSL certificate and give pem to the my server side.
Once my server send push notification, one signal also send push notification, what is issue anyone suggest me to solve this type of problem.
How to solve this type of issue.
OneSignal is designed to never deliver the same notification to the same device, so it seems like the likely cause of this issue is that you are delivering the notification twice yourself (once through your own server, and then another time through OneSignal).

Push notification capabilities

1) If I want to send simultaneously e.g. 10 thousand push notifications, do I have this capability?
2) Can push notifications interact with other apps? To explain this: If I want something to be done when a push notification is sent to another app, does Apple act as a middle man, or the other developer has to give me the tokens of his clients in order to send them the notifications directly?
Thanks in advance!
1) If you have 10,000 devices to send the push to then that should be possible. If you sent 10,000 to the same device the Apple servers would detect that and block it most probably.
2) Your question is not clear. A push is a message sent from a server to an app. The server that is sending the push needs to be signed with the push certificate of whatever app it is sending the push to, also the app needs to send its push token to the server before the server can send the push.
A server is not an iOS app so to say "when a push notification is sent to another app" does not make sense. If you are talking about a server sending a push to more than one app, then provided the server is signed with the relevant certificates and has the device tokens it can do whatever it wants.

Resources