Giter VIP home page Giter VIP logo

Comments (5)

petewil-G avatar petewil-G commented on May 22, 2024

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.

John05 avatar John05 commented on May 22, 2024

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.

petewil-G avatar petewil-G commented on May 22, 2024

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.

John05 avatar John05 commented on May 22, 2024

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.

mangini avatar mangini commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.