Comments (4)
It happened to me too!
I suspect that is because the path to the file is relative, instead of absolute
Try the following:
fs.readFileSync(`${process.cwd()}/relative-path-to/ap-key.p8`).toString()
from node-pushnotifications.
@apaame it seems that this is not an issue with the lib but with your code?
Could you post more of your code? Maybe we can help you identifying the problem :)
from node-pushnotifications.
Closing this for inactivity. Does not seem to be an issue with the lib
from node-pushnotifications.
it would be nice to have a warning from the lib that the key is undefined.
from node-pushnotifications.
Related Issues (20)
- Getting `Mismatchsenderid` error with firebase token HOT 6
- sendAPN handling of received token in success case inconsistent with other cases and providers HOT 1
- error when using a long expiry (from firebase cloud messaging) HOT 1
- rich push notifications on Android: possible values for data.style?
- Question: Increase Badge by 1 for thousands of users HOT 1
- Deeplink seems not working HOT 2
- Support for data-only messages on Android HOT 3
- Cannot create PushNotification instance HOT 2
- Android High priority on silent push. HOT 5
- Update node-forge to fix security vulnerabilities HOT 3
- JSON value '<null>' of type NSNull cannot be converted to NSString
- Unclear how to specify API key for gcm/fcm HOT 2
- Open handles after sending an APN notification HOT 2
- why my apn notification is seen as webPush ? HOT 1
- retriedResults undefined HOT 1
- iOS Simulator Push Tokens incorrectly identified as GCM tokens HOT 4
- Not all users receive push notifications HOT 2
- apn write failed: GOAWAY: PROTOCOL_ERROR Stream 5 does not exist
- Update typescript definitions HOT 4
- Sending Push Notification To Apple Watch Does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-pushnotifications.