Push notifications don’t work

It depends on which push, iOS or Android.

For iOS: If you have created a .pem certificate be sure it has been well created. Open it with a text editor, and download and open our certificat-exemple.pem, to check if yours has the same appearance (Two “Begin certificate” and two “Begin rsa private key”).

Be sure you have followed our tutorial in the video at the bottom of this article:

https://doc.siberiancms.com/how-to-publish-ios-apps/

If it still doesn’t work, it may be because the port 2195 is not open on your server. A goog solution to see it is a problem with the port 2195 is to go to your var/logs folder on your install, and check if you have some push error files. Download the last one and open it in a text editor. If there is something about the port 2195, it must be that. Ask your hosting provider to open this port or connect in SSH to your server and enter these commands one after the other:

iptables -A INPUT -p tcp -m tcp --dport 2195 -j ACCEPT
/etc/init.d/iptables save

 

For Android, make sure that:
– you have filled out the info in your backoffice in Settings > Push before generating your APK.
– you have not entered the IP of your server when creating your project in the Google Console (when following this article: https://doc.siberiancms.com/google-api-for-youtube-and-android-push/)
– Still when creating your project on the Google Console, make sure that you have activated “Google Cloud Messaging for Android”

For both iOS and Android, make sure that you have activated the cron job for the scheduled push notifications (it that’s the one you are trying to send):

https://doc.siberiancms.com/how-to-activate-scheduled-push-notifications/

If you have followed all of this there is no reason you can’t send push notifications.

Leave A Comment?