push-notification-server | Simple express server that can be | Notification library
kandi X-RAY | push-notification-server Summary
kandi X-RAY | push-notification-server Summary
Simple nodejs server using express webserver that can be used as provider of push notifications for both GCM and APNs. APNs stands for Apple Push Notification Service and GCM for Google Cloud Messaging. These services enable us to send push notifications to Android and/or iOS and WatchOS apps. After you have configured and registered your app correctly a 2-way secure connection can be established between your app and the service. GCM and APNs only relay notifications, the notifications themselves have to be created (provided) by a service called the provider. A provider creates and sends a notification based on criteria that you can decide yourself. This could be for instance an incoming chat message, an updated weather forecast, a software update and so on. The provider in this project just sends generic messages. You can send push notifications directly to a specific device, or to a specific topic. In the latter case the notification is sent to all devices that have subscribed to that specific topic. In this example we will focus on notifications that are directly sent to a device. To be able to do this, we need to have a unique device id, and we obtain this as soon as the app registers itself to GCM or APNs. Both services return a token that identifies the app running on that specific device. Our provider service stores these tokens in a PostgreSQL database. Besides the token we also store which service we use to relay the notification: GCM or APNs. You might think that all Apple devices use APNs and all Android devices use GCM, but you can use GCM for Apple devices as well. GCM has a wrapper for the APNs service so you can use GCM for all devices; we will discuss how this is done later. But first we have to set up the server and the database.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of push-notification-server
push-notification-server Key Features
push-notification-server Examples and Code Snippets
Community Discussions
Trending Discussions on push-notification-server
QUESTION
I'm using:
Xcode10 Legacy build
Phonegap-plugin-push 1.10.5
I followed https://github.com/aggarwalankush/push-notification-server (notification server) and https://github.com/aggarwalankush/ionic-push-base (ionic app)
I have set up FCM using https://medium.com/@ankushaggarwal/gcm-setup-for-android-push-notifications-656cfdd8adbd.
I have also set up the .p12 certificate for both production and development and have targeted the production certificate in my notification server.
Once my app was published to the app-store, the push notification broke. But development build is still working fine. What could be the reason?
I have also upload the certificate into FCM as follows:
...ANSWER
Answered 2019-Jan-14 at 02:20I have finally figured out the issue.
It is due to :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install push-notification-server
We are going to setup the first test client. This example is iOS only but later we will set up another example that works with both iOS and Android devices.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page