-
Notifications
You must be signed in to change notification settings - Fork 448
app not receiving push notifications from firebase #1440
Comments
Can you share that project with me? And are you running on a real device? |
@EddyVerbruggen Yes, I'm running on a real Android device. How can I share my project with you? |
Push a version of your that shows the problem to Github. Please strip it of any unrelated things.. |
@EddyVerbruggen This is the code in my app.component file: ngOnInit() {
I am getting some console log output: JS: firebase.init done But the notifications do not show up on the device. Android 5.0 SM-N9005 |
@EddyVerbruggen I got one notification but it was only when the app was in the background. Not when the app was in the foreground. |
Let's continue in your repo. |
Hi, do you have this sorted out? |
|
|
I wonder maybe this is because i never got notification about push notification permissions? |
I have the same issue |
Will the emulator not work in any way? |
I’m working on trying to get push notifications working on my project. I’m working on a new project with NativeScript and Angular 8.
I have created a free account with Firebase: https://console.firebase.google.com/
I linked my app id to the Firebase project and added Android. I downloaded the file ‘google-services.json ’ and put it in app/App_Resources/Android/google-services.json
I found a plugin for NativeScript for using Firebase:
https://github.com/EddyVerbruggen/nativescript-plugin-firebase
I followed the steps on both the firebase console and on the plugin github page but I’m not getting any notifications through on my phone.
How can I get my app to receive the push notifications?
Here is my app.components.ts file:
package.json:
Here are my push notification attempts:
The text was updated successfully, but these errors were encountered: