- Create a private key file, from which you can create the manifest key and Application ID, as detailed here: https://stackoverflow.com/questions/23873623/obtaining-chrome-extension-id-for-development
- Add the manifest key to "key" in manifest.json
- Create a new project in Google Developer Console https://console.developers.google.com/project
- Go to "APIs & auth > Credentials" and create new client id for a Chrome Application using the Application ID generated in step 3.
- Copy the Client ID to oauth2.client_id in the manifest.json
- Create a new app on the Chrome Web Store Developer Dashboard https://chrome.google.com/webstore/developer/dashboard
- Click on "more info" and copy the public key to "key" in manifest.json. (or not needed because of next step...?)
I also tried that approach with
identity.launchWebFlow
, but it doesn't work if I use the value returned fromidentity.getRedirectURL
asredirectURL
parameter.I'm calling this piece of code in my background page from an action triggered in the content script. It doesn't work if I set
redirect_uri
tosender.tab.url
(from theruntime.onMessage
listener) either.It works only if I use localhost 😕
I don't need the private key for though.
My extension is loaded in development mode. That's maybe the for that?
Who knows...
Couldn't find anything in the docs.