We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
当用户安装您的扩展程序时,您可以使用 Google 帐户 API 之一向 Google 验证用户身份。这将为您提供一个 URL,您可以将其用作用户的唯一标识符。
我怀疑 Chrome 会在没有权限警告的情况下泄露用户的电子邮件地址,因为警告列表< /a> 不包含与用户的 Google 帐户相关的任何内容,我假设它无法获取用户的 Google 帐户名。
You could use one of the Google Accounts APIs to authenticate the user with Google when he installs your extension. This will give you a URL you can use as a unique identifier for the user.
I doubt Chrome would divulge the user's email address without a permission warning, and since the list of warnings doesn't contain anything related to the user's Google account, I'm assuming it just isn't possible to get the user's Google account name.
我认为您无法直接收到分机用户的电子邮件。如果扩展程序第一次在浏览器上运行,该扩展程序会从您的 GAE 服务请求一个新 ID 来识别该浏览器,这对您来说是否足够。之后,GAE 服务将能够使用该 ID(存储在扩展程序的本地存储中)识别浏览器。
I don't think you can get e-mail of extension user directly. Would it be enough for you if first time the extension is run on browser the extension requests a new id from your GAE service to identify that browser. After that the GAE service would be able to identify the browser using that id (stored in local store of the extension).