Skip to content
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

react-my-lists-notifications Why not using "sp-list-subscription" #444

Open
tleclaire opened this issue Feb 24, 2022 · 2 comments
Open

react-my-lists-notifications Why not using "sp-list-subscription" #444

tleclaire opened this issue Feb 24, 2022 · 2 comments

Comments

@tleclaire
Copy link

Sample

react-application-my-lists-notifications

Author(s)

@hugubarnier

Question

Looking at the code, you are handling the notifications by using the graph api and Socket.io directly allthough there is a SPFx standard package "sp-list-subscription" available, which would at least eliminate the need for graph permissions.
So the question is:
Why aren't you using sp-list-subscription for this sample and would that work as well?

Thanks
Thomas

@ghost
Copy link

ghost commented Feb 24, 2022

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@mohammadamer
Copy link
Contributor

Hi @tleclaire

Regarding your question about Why not "sp-list-subscription", I believe that sp-list-subscription will work as well but, in this case, you would need to renew SP-list subscription every 180 days.

I'm using SharePoint Webhook "sp-list-subscription" approach to receive notifications about changes that are happening in Site Pages library, and it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants