vue-push-notification-example icon indicating copy to clipboard operation
vue-push-notification-example copied to clipboard

Can you add a server to this example?

Open MarbilleJuntado opened this issue 8 years ago • 4 comments

So that we can do something like node app.js and test it locally?

MarbilleJuntado avatar Apr 16 '18 18:04 MarbilleJuntado

You can run the firebase function locally: https://github.com/invokemedia/vue-push-notification-example/blob/0aa4d86619f2233113c9decb20a53b5bc8e1bae6/firebase-function/functions/package.json#L5

There are checks in the function to allow this.

Change to firebase functions folder and run npm run start which will trigger the function as if it was live in firebase

james2doyle avatar Apr 16 '18 18:04 james2doyle

Thanks. However, why am I getting this error "registration ids field cannot be empty" when I run npm run start?

MarbilleJuntado avatar Apr 16 '18 18:04 MarbilleJuntado

I am guessing your database is empty and you have not added any subscribers to it

james2doyle avatar Apr 16 '18 19:04 james2doyle

Are you referring to the Firebase realtime database? How do I add subscribers to it?

MarbilleJuntado avatar Apr 17 '18 15:04 MarbilleJuntado