-
-
Notifications
You must be signed in to change notification settings - Fork 105
ERR! parse-server-push-adapter APNS cannot find vaild connection #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Does your server actually stay alive across these errors? I'm experiencing the same error (though because we switched APN certificates), but it results in a fatal crash and the server must be restarted. I'm wondering if I'm missing some sort of necessary recovery option or module. |
Yes it does. It also sends out the push messages correctly. |
Thanks for the response, @funkenstrahlen . Looks like something was wrong with the certs I was using, but now that I have the correct key, the server stays alive. I too have a deviceToken that is invalid and causing the same error you report, but thankfully it's no longer a fatal error. |
I am getting the same error and my server is alive, actually I am able to send push notification from first application to second application but unable to send from second application to first application, by the way I have installed two application in same device. Following is my index.js file of parse server, // Example express application adding the parse-server module to expose Parse const resolve = require('path').resolve; var express = require('express'); var fpPushAdapter = new FpPushAdapter(pushConfig); var databaseUri = ""; if (!databaseUri) { var api = new ParseServer({ // Client-keys like the javascript key or the .NET key are not necessary with parse-server var app = express(); // Serve static assets from the /public folder // Serve the Parse API on the /parse URL prefix // Parse Server plays nicely with the rest of your web routes // There will be a test page available on the /test path of your server url var port = process.env.PORT || 1337; httpServer.listen(port, function() { // This will enable the Live Query real-time server |
Closing as outdated |
My parse server log is filled with
ERR! parse-server-push-adapter APNS cannot find vaild connection
errors. Push Notifications reach devices though. This seems to happen for devices that uninstalled the app and are now no longer reachable.Some discussion can be found here as this issue got moved and reopened here: parse-community/parse-server#1665 (comment)
Environment Setup
Steps to reproduce
Expected Behaviour
Devices that are no longer reachable get removed from the database.
The make it clear: Push notification do get send out fine to valid devices. I just do not know why this error appears. I think the error is caused by devices which do not have the app installed any more?
Logs/Trace
The text was updated successfully, but these errors were encountered: