Chrome WebStore Licensing API: extension developers are expected to have FULL access instead of FREE_TRIAL

61 views
Skip to first unread message

ilyaigpetrov

unread,
May 28, 2020, 12:41:01 PM5/28/20
to Chromium Extensions
I want to add a trial period to my extension.
To check that WebStore API works I make a request:
```js
(async () => {

  const getTokenAsync = () => new Promise((resolve) => chrome.identity.getAuthToken(
    { interactive: true },
    resolve,
  ));

  fetch(
    {
      headers: new Headers({
        Authorization: `Bearer ${await getTokenAsync()}`,
        'content-type': 'application/json',
      }),
    },
  )
    .then((res) => res.json())
    .then((json) => {

      console.log('Your license info:');
      console.log(json);
    });
})();
```
I run this script with my google account which I use to develop the extension. This extension is published by a google group in which I am an owner.
The result I get is like the following:
```json
{
  accessLevel: "FREE_TRIAL",
  createdTime: "<stamp from 2019 here>",
  itemId: "<extension id here>",
  kind: "chromewebstore#userLicense",
  maxAgeSecs: "2",
}
```.

Now I want to limit number of days a user may use the extension during his trial period.
However I don't want to apply this limit to my developer account.
The problem is that I can't distinguish my developers accounts from some different account of a user during a trial, because they are both FREE_TRIAL.

I think it's an issue in the API, I expect developer accounts to have FULL access level instead of FREE_TRIAL so I can apply my limit to the right group of users.
Should I create a ticket in chromium bug tracker or somewhere else?

Please, let me know how should I proceed with this issue.

Thanks,
Ilya.

ilyaigpetrov

unread,
May 30, 2020, 11:18:10 AM5/30/20
to Chromium Extensions, sim...@chromium.org
Simeon, sorry for notifying you directly -- could you, please, guide me in the right direction to resolve this issue.

Thanks,
Ilya.

ilyaigpetrov

unread,
Jun 1, 2020, 8:43:17 AM6/1/20
to Chromium Extensions


On Thursday, May 28, 2020 at 4:41:01 PM UTC, ilyaigpetrov wrote:
Reply all
Reply to author
Forward
0 new messages