Hello, I am setting up Push notifications and I have the following questions regarding the Installation class, and how Push notifications are sent.
Currently, I need to target Web but I would like to be able in the future to send Android and iOS notifications also. As far as I have seen in the docs, currently there's no support for web. But, I use an external provider (https://onesignal.com) which is able to send Web Notifications.
I am using the
parse-server-onesignal-push-adapter availabe here.
Now, I understand that Parse Server sends the notifications to the items in the _Installation class. Is there any way to create an Installation that targets a web browser? If so, how?
I thought one could write a Service worker as described here and then save a new Installation object with the users's subscription key to target that browser later.
I have also thought that as a user could have multiple devices, adding a user Pointer to the Installation class would be the best way to send messages to all of them. Am I ok?
Thank you for your help, and please tell me if there's another way to solve this