-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
localStorage in Mac doesn't share the data between Word, Excel and PowerPoint add-ins #3159
Comments
Thank you for letting us know about this issue. We will take a look shortly. Thanks. |
Hi @jargil could you please take a look this issue? |
Hello @penglongzhaochina ! I am encountering the same issue. I was going to open a new issue, but found that this one already addresses the same problem. Steps to Reproduce:
It appears that Office apps might isolate add-ins per application (and do not utilize GroupContainers unlike some other features). This particular distinction from Windows is not documented, and it would be really great if Mac apps allow an add-in to share localStorage/indexedDB across different hosts, given that the add-in ID and origin remain consistent, as we are using the same manifest.xml. |
@msftbot @penglongzhaochina I have the same issue on Excel for Mac. The problem does not occur for me on Windows. |
Hi all, Could you please check whether the local storage key which the add-in want to get are really there? If the local storage key really are there you can paste the error message which the API can't get the local storage content to here. It would be very helpful,Thanks! |
No, when I check the storage key in a different host application, it is not present (for example, a key set in Excel does not appear when checked in Word). There is no error message; in both applications, localStorage (as well as other browser APIs like indexedDB) functions correctly, but they operate independently, unlike on Windows. |
Can below link give you some insights? This issue may be similar with your scenario. Could you please go through this link to check whether your issue is related with this issue. having a workaround there. |
@penglongzhaochina, thanks, but the issue discussed in the issue you provided a link for is about the Dialog API and online platform (and thus the storage partitioning applies). |
Hi all, This is a by-design behavior on mac. |
|
Hi @jargil , could you please help explain this issue? |
I just found this issue seems to be related: #2928 (and covers OfficeRuntime.Storage). |
I have defined the Word, Excel and PowerPoint add-ins in one manifest.xml file. I am using localStorage to share data between these Word, Excel and PowerPoint add-ins. It works fine in Windows but not in Mac. In Mac, the data are shared between the same app add-ins but not across the apps add-ins. For example, if I store data in the localStorage of word add-in then it gets shared with all other word add-ins but not with excel and powerpoint add-ins.
Your Environment
Expected behavior
I expect localStorage.getItem(key) in Excel and PowerPoint add-ins should get the value set in Word add-in using localStorage.setItem(key, value) and vice versa. It works fine in Windows but not in Mac.
Current behavior
Word add-in localStorage data are not shared with Excel and PowerPoint add-ins and vice versa.
Context
My add-in customers need data to be shared between Word, Excel and PowerPoint add-ins.
The text was updated successfully, but these errors were encountered: