actions-on-google / actions-on-google-nodejs

Node.js client library for Actions on Google
https://actions-on-google.github.io/actions-on-google-nodejs
Apache License 2.0
900 stars 194 forks source link

userStorage does not work for some of my alpha testers. #375

Open varoOP opened 4 years ago

varoOP commented 4 years ago

I am storing three values in userStorage.

conv.user.storage.counter = 1;
conv.user.storage.remind = false;
conv.user.storage.share = false;

The values get stored normally and work on my account and for many other accounts of some of my alpha testers as well. Unfortunately , for some of my alpha testers , even though they are verified users with all related settings like web activity etc enabled nothing is stored in their userstorage. I have noticed that this happens for G Suite accounts. My own G suite account is facing this issue. Is this a bug or is it just that I am not aware of some setting ? Any help would be appreciated . Thank you.

Fleker commented 4 years ago

So the users are being marked as VERIFIED but data is still not being saved?

varoOP commented 4 years ago

That's correct. The users are marked as verified but the data isn't saved. I am sorry if this is the wrong place to ask , but is there an alternative to saving data across conversations ?

Fleker commented 4 years ago

This behavior only occurs for a GSuite account, but not a Gmail account?

An alternative would be to use account linking and use your own database solution.

varoOP commented 4 years ago

This behavior only occurs for a GSuite account, but not a Gmail account?

An alternative would be to use account linking and use your own database solution.

As far as I have tested that is true. I have tried it on two of my own business accounts and I face this problem on those. On the normal , personal Gmail accounts , it works fine.

I just re-checked on my g suite account. It does not store anything but in the firebase function logs , it says that the account is verified :

 "originalDetectIntentRequest": {
    "source": "google",
    "version": "2",
    "payload": {
      "user": {
        "locale": "en-US",
        "lastSeen": "2020-01-06T17:03:23Z",
        "userVerificationStatus": "VERIFIED"
      },