Comments (5)
The Push Messaging system does not directly provide any way to get the email of the user, all that you get is a Channel ID. That being said, you could always ask, the user to enter their email, and send it to your server out of band when you send the Channel ID.
from chrome-extensions-samples.
Well the example I use of push messaging uses the authenticacion and if I am not logged on the browser(chrome) the application asks for that, but I don't how to get that account, or do you mean I have to add some ohter function to ask the user enter the email??
from chrome-extensions-samples.
First of all, Push Messaging will only work if the user is logged into the browser.
There may be some chrome API that you can use to get the email name of the logged in user, you can check for one. If you do not find one, and you need the users email, I would recommend showing the user a dialog and asking them to give you their email name.
from chrome-extensions-samples.
Thank you I will try, I keep contact to inform about what I get.
2013/5/24 petewil-G [email protected]
First of all, Push Messaging will only work if the user is logged into the
browser.There may be some chrome API that you can use to get the email name of the
logged in user, you can check for one. If you do not find one, and you need
the users email, I would recommend showing the user a dialog and asking
them to give you their email name.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/103#issuecomment-18419209
.
from chrome-extensions-samples.
Use chrome.identity and the Plus API here: https://developers.google.com/+/web/people/
Closing the issue. If you have more questions like this, please post to StackOverflow or chromium-apps group.
from chrome-extensions-samples.
Related Issues (20)
- Can't call chrome.desktopCapture.chooseDesktopMedia from serviceWorker without target tab. HOT 1
- .github/CODE_OF_CONDUCT.md
- Chrome 121.0.6167.86 version have a bug some website line Some table lines are not aligned, chrome 120.x not have this BUG same code HOT 4
- How to open devTools after open a new tab? HOT 1
- continuous recording sample - allow user to select media stream tab or window ? HOT 1
- Manifest V3 declarativeNetRequest redirect sample is completely broken on latest chrome 121 HOT 11
- The Quick Start tutorial "quick-api-reference" sample doesn't work HOT 15
- Samples for chrome.management HOT 2
- Network preview tab override HOT 2
- How i can use extensions to hide maximize、minimize HOT 1
- Sample for chrome.types HOT 1
- Sample for chrome.desktopCapture
- Sample for chrome.offscreen HOT 1
- A CI to check for grammer mistake in the `.md` files HOT 8
- Adding a pull request template to the repository as like issue template HOT 2
- CEO
- Sample for chrome.commands API HOT 5
- Proposal: Enforce Node Version Rule and Prevent Modifications to package-lock.json
- I have a problem with the color of the tab page in the console HOT 1
- Incorrect Time Unit in History API Sample Code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-extensions-samples.