node-pushnotifications | Push notifications for GCM , APNS , MPNS , AMZ | Notification library
kandi X-RAY | node-pushnotifications Summary
kandi X-RAY | node-pushnotifications Summary
Push notifications for GCM, APNS, MPNS, AMZ (automatic detection from device token)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- send a notification to the list of notifications
- Process failure .
node-pushnotifications Key Features
node-pushnotifications Examples and Code Snippets
Community Discussions
Trending Discussions on node-pushnotifications
QUESTION
After setting up a new independent WatchOS6 app, which now supports push notifications, getting the device to request the user for push notifications and capturing the push token. I can’t get my server to send a push notification.
With all the correct credentials and P8 set up on my NodeJS server, I have tried to push messages to the device... This is the error all the time:
Status 400 - DeviceTokenNotForTopic
- Which according to Apple’s documentation, means that the Topic (BundleId of the app) is wrong. But in this case it is not.
Tried 2 different NPM packages (for elimination)
https://www.npmjs.com/package/node-pushnotifications
https://www.npmjs.com/package/apn
Both providing me with the same issue.
Has anyone successfully managed to complete a Independent WatchOS app with APNs? What am I missing
———
Update
To test the node service, a further 2 tests have been made:
Created a new app, iOS this time, with the same Bundle Identifier, using the pushToken and sending a message the service was successful
Created a new app, another watchOS, with a different Bundle Identifier, this was again rejected but the APNs for the same
DeviceTokenNotForTopic
issue.
To test production, the only way current is to submit to the store for App Store review. TestFlight option is currently not available for the Watch and there is no way to install a production ad-hoc .ipa
manually. Once it is in the store I will continue with further tests.
ANSWER
Answered 2019-Oct-05 at 08:47Problem has been solved.
Xcode has a couple of issues, if you rely on Xcode to sort out your certificates in the developer portal then please don't.
I have been in touch with support and after a few days back and forth with logs it has been made aware that:
- Apple's documentation for Independent WatchOS applications does not state anywhere that the
topic
(which is the bundle id) should be the one ending in .watchkitapp - Xcode does not allow you to add the Push Notification Capability to the .watchkitapp thus meaning it never creates the AppId in your developer portal.
The solution to the problem, I had, was to manually go to the developer portal and add the .watchkitapp AppId and create the certificates, thus allowing my p8 certificate on the server to allow pushes to that particular application.
QUESTION
Following steps from : https://github.com/appfeel/node-pushnotifications#installation
I've installed package :
...ANSWER
Answered 2019-Jun-11 at 09:28Try :
- delete
node-pushnotifications
frompackage.json
- Install by
npm i node-pushnotifications
- Else, you can use install ny
yarn
QUESTION
Similar to this post, push notifications works on development, but does not work through testflight. Here are screenshots of my certs:
- Certificate of type iOS Distribution
- App ID. Named (not wildcard). Push notifications enabled for both Development and Distribution - green lights - with all SSL certificates genereated and uploaded
- iOS Distribution Provisioning Profile, that usese the above mentioned Certificate and App ID as well as lists Push Notifications among enabled services
- distribution and adhoc signing
Using Heroku and "node-pushnotifications". It works on development, does not work on testflight. APN_key.p8 and serviceAccountKey.json are in there as well.
I've been working on this all day and been scouring the internet for answers but have yet to find any. Any ideas?
...ANSWER
Answered 2017-Apr-20 at 15:41Issue resolved! we didn't properly set up our node environment in the server (needed NODE_ENV=production
)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-pushnotifications
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