samedi 17 juin 2017

Testing Chrome Extension APIs Locally

This is a pretty general question with a couple examples. I'm fairly new to writing chrome extensions and I seem to keep running into cases that are impossible to test without deploying to the webstore (which takes ~60m each time). This is an impossible workflow. Am I missing something?

Case 1 inline installation

Trying to set up inline installation from my site to a chrome extension. When I run the site locally i get the following.

Error downloading extension: Inline installs can only be initiated for Chrome Web Store items that have one or more verified sites.

But I cannot seem to add localhost website property in chrome's developer dashboard. What is the recommended way to do this in a dev environment. I tried using local.mywebsite.com and adding a local alias for localhost, but now chrome cannot find the verification file you are required to serve...

Case 2 Chrome Extension OAuth

Attempting to use chrome.identity.launchWebAuthFlow to setup user credentials in my extension for my website, but of course the callback url provided http://ift.tt/2smYtI7 does not redirect to my local deploy of the extension.

Is there no way to test these things??

Aucun commentaire:

Enregistrer un commentaire