firebase push notification to specific user [on hold]
up vote
0
down vote
favorite
I have a web application and I want to develop an android app for my application. Since my web application is very responsive, so I decided to make a very simple app using android webview. And I want to send a push notification to users, so I am using firebase cloud messaging (FCM). I have successfuly implemented FCM to my app to send notification to all user at once. But I want to send the notification to specific user so for that FCM is providing FCM TOKEN, but the only problem is how to get the FCM TOKEN with user's email address. I have login/registration and google AOuth in my web application. User can login to the application using google AOuth but inside webview.
How to get the FCM TOKEN with user's email address out side webview or is there any other way of doing it ?
NOTE:- i am using Java as backen server.
java
put on hold as off-topic by Frank van Puffelen, chŝdk, pirho, AL., Max Vollmer Nov 8 at 23:00
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Frank van Puffelen, pirho, AL.
add a comment |
up vote
0
down vote
favorite
I have a web application and I want to develop an android app for my application. Since my web application is very responsive, so I decided to make a very simple app using android webview. And I want to send a push notification to users, so I am using firebase cloud messaging (FCM). I have successfuly implemented FCM to my app to send notification to all user at once. But I want to send the notification to specific user so for that FCM is providing FCM TOKEN, but the only problem is how to get the FCM TOKEN with user's email address. I have login/registration and google AOuth in my web application. User can login to the application using google AOuth but inside webview.
How to get the FCM TOKEN with user's email address out side webview or is there any other way of doing it ?
NOTE:- i am using Java as backen server.
java
put on hold as off-topic by Frank van Puffelen, chŝdk, pirho, AL., Max Vollmer Nov 8 at 23:00
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Frank van Puffelen, pirho, AL.
go to the link and have a look at all the topics in it. docs are made for everyone form beginner to pro : firebase.google.com/docs/cloud-messaging/android/client
– Har Kal
Nov 8 at 12:15
1
When the user logs into a device, write the deviceID to the Firebase database paired with their email address. Users can have more than one device, so you might want to keep a list of devices with timestamps of when they were last seen.
– James Poag
Nov 8 at 12:25
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a web application and I want to develop an android app for my application. Since my web application is very responsive, so I decided to make a very simple app using android webview. And I want to send a push notification to users, so I am using firebase cloud messaging (FCM). I have successfuly implemented FCM to my app to send notification to all user at once. But I want to send the notification to specific user so for that FCM is providing FCM TOKEN, but the only problem is how to get the FCM TOKEN with user's email address. I have login/registration and google AOuth in my web application. User can login to the application using google AOuth but inside webview.
How to get the FCM TOKEN with user's email address out side webview or is there any other way of doing it ?
NOTE:- i am using Java as backen server.
java
I have a web application and I want to develop an android app for my application. Since my web application is very responsive, so I decided to make a very simple app using android webview. And I want to send a push notification to users, so I am using firebase cloud messaging (FCM). I have successfuly implemented FCM to my app to send notification to all user at once. But I want to send the notification to specific user so for that FCM is providing FCM TOKEN, but the only problem is how to get the FCM TOKEN with user's email address. I have login/registration and google AOuth in my web application. User can login to the application using google AOuth but inside webview.
How to get the FCM TOKEN with user's email address out side webview or is there any other way of doing it ?
NOTE:- i am using Java as backen server.
java
java
asked Nov 8 at 12:06
Electronics World
113
113
put on hold as off-topic by Frank van Puffelen, chŝdk, pirho, AL., Max Vollmer Nov 8 at 23:00
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Frank van Puffelen, pirho, AL.
put on hold as off-topic by Frank van Puffelen, chŝdk, pirho, AL., Max Vollmer Nov 8 at 23:00
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Frank van Puffelen, pirho, AL.
go to the link and have a look at all the topics in it. docs are made for everyone form beginner to pro : firebase.google.com/docs/cloud-messaging/android/client
– Har Kal
Nov 8 at 12:15
1
When the user logs into a device, write the deviceID to the Firebase database paired with their email address. Users can have more than one device, so you might want to keep a list of devices with timestamps of when they were last seen.
– James Poag
Nov 8 at 12:25
add a comment |
go to the link and have a look at all the topics in it. docs are made for everyone form beginner to pro : firebase.google.com/docs/cloud-messaging/android/client
– Har Kal
Nov 8 at 12:15
1
When the user logs into a device, write the deviceID to the Firebase database paired with their email address. Users can have more than one device, so you might want to keep a list of devices with timestamps of when they were last seen.
– James Poag
Nov 8 at 12:25
go to the link and have a look at all the topics in it. docs are made for everyone form beginner to pro : firebase.google.com/docs/cloud-messaging/android/client
– Har Kal
Nov 8 at 12:15
go to the link and have a look at all the topics in it. docs are made for everyone form beginner to pro : firebase.google.com/docs/cloud-messaging/android/client
– Har Kal
Nov 8 at 12:15
1
1
When the user logs into a device, write the deviceID to the Firebase database paired with their email address. Users can have more than one device, so you might want to keep a list of devices with timestamps of when they were last seen.
– James Poag
Nov 8 at 12:25
When the user logs into a device, write the deviceID to the Firebase database paired with their email address. Users can have more than one device, so you might want to keep a list of devices with timestamps of when they were last seen.
– James Poag
Nov 8 at 12:25
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
go to the link and have a look at all the topics in it. docs are made for everyone form beginner to pro : firebase.google.com/docs/cloud-messaging/android/client
– Har Kal
Nov 8 at 12:15
1
When the user logs into a device, write the deviceID to the Firebase database paired with their email address. Users can have more than one device, so you might want to keep a list of devices with timestamps of when they were last seen.
– James Poag
Nov 8 at 12:25