Chrome extension identity.email empty
In addition to having the identity.email
permission, as posted in the related Chrome issue for this subject, users must have their profile syncing turned on under chrome://settings
-> People -> Sync for their ID and email to show up using chrome.identity.getProfileUserInfo
.
The getProfileUserInfo documentation says:
- email: Empty if the user is not signed in or the identity.email manifest permission is not specified.
- id: Empty if the user is not signed in or (in M41+) the identity.email manifest permission is not specified.
Edit manifest.json
to include both permissions:
"permissions": ["identity", "identity.email"]