custom data that is different for each user
BeantwortetI have two accounts that access the same bubble, call it account A and account B. when the first bubble is created, the customs owned by account A and B contains the same customdata.
picture : same custom data
However, when I login as account A, I use the bubbles.updateCustomDataForBubble API, and change one of the customdata and customdata keys successfully changed for the bubble.
the problem is why the same bubble in account B, does not have the same customdata, which has been updated account A earlier.
picture: custom data after updated in account A ,but not changed on account B
-
OK SDK Web then =)
3 things please:
1- In your config.json, you also download the latest SDK Web, I mean using
"sdk": { "official": [ "//api.openrainbow.com/sdk/web/libs/vendors-sdk.min.js", "//api.openrainbow.com/sdk/web/libs/rainbow-sdk.min.js" ], "default": "official" },
?
2- In browser logs, if you activated logs in config.json like that in settings part
"settings": { "verboseLog": true, "disableCache": true, "enableLoader": true }
you can also see which version is loaded.
3- For user A, in browser logs, Network tab (to open before changing the custom data), does an error occured ?
Regards,
Pascal -
2 other things, for user B, did you receive the event
"RAINBOW_ONBUBBLEUPDATED" (bubble)
after A updated the customData ?
=> this means the bubble was updated and you have to ask for new datasAnd, if with user B, after the
"RAINBOW_ONBUBBLEUPDATED" (bubble)
you call a getBubbleById (https://hub.openrainbow.com/#/documentation/doc/sdk/web/api/bubbles#module_Bubbles.getBubbleById) are the new customData inside ?
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
8 Kommentare