Ad

(Packaged Chrome App) Chrome.identity.getAuthToken Requires "key" In The Manifest.json

Struggling with a conflict between my development environment and the the Chrome Web Store.

Basically, I have a feature in my app whereby a user can log into the app using their Google+ account and everything works locally with a "key" value set in the manifest.json however the Chrome Web Store prevents any app from being uploaded with this "key" in the manifest.json.

If I remove the "key" entry from the manifest then chrome.identity.getAuthToken no longer works.

Does anyone have any clue as to how I can keep the getAuthToken function working without the "key"?

Ad

Answer

It turns out that chrome.identity.getAuthToken was still working however when trying to use the app from the Chrome Web Store, there seemed to be some sort of cache that rendered the previous version of the app which cleared after completely removing the app and re-installing it.

To conclude, you need not (and can not) use the "key" value in the manifest.json for the deployment to the Chrome Web Store however you do need it to run locally so two versions of the manifest.json need to be used; one for each environment.

Ad
source: stackoverflow.com
Ad