-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Firebase integration problem #805
Comments
Hello! There is nothing we can do about it, since sandboxing the code is one of the core ideas of |
By the way, you don't need firebase at all :) |
why not? we use it for push notifications. Single interface for multiple platforms(iOS / Android). What are the alternatives? @tshemsedinov |
@ykolomiets you can use JSTP, Websocket or SSE to push event from server to client. It is implemented in impress and available without any extensions. |
How can I push notifications to the app which is closed and connection with impress server isn't established? For this purposes Apple provides APN and Google provides its own service. Firebase is just a wrapper around these two services, so it's easy to use |
Use two different push services for those platforms, it's just twice harder. Using firebase for this more then twice harder ) @ykolomiets |
Hi! I have a mysterious issue. I want to use firebase-admin package in my project.
On this code:
receive 'Error: Registration token(s) provided to sendToDevice() must be a non-empty string or a non-empty array.'
And this happens because in function sendToDevice presents check
(ids instanceof Array)
and it returns false. This problem is mysterious to me because if I check(ids instanceof Array)
right before passing ids to sendToDevice it returns TRUE, but in function sendToDevice same check returns FALSE.If I don't use impress and just create an empty folder, (npm install firebase-admin --safe), create file test.js, insert same code, node test.js - it works fine, without such error.
The text was updated successfully, but these errors were encountered: