My experience with Javascript is limited, but as I work on my application, I realize the necessity of incorporating it into Cloud Code. I have a Parse class called Groups where I store group data including Name, Description, Users, and Requests.
Name, Description, Users, Requests.
When a user creates a group from their device, the information is stored here with the name, description, and user pointer. I use the objectId with a "+C" character to subscribe that user to a channel for push notifications. However, I encountered an issue where push notifications were only received on the device where the group was created.
To address this issue, I believe I need to use a Parse Cloud function to ensure all installations for a specific user subscribe to the same channels.
Another challenge is ensuring that client-side notifications are handled properly when a user re-installs the application, in order to avoid receiving duplicate notifications. I am looking for a cloud function that can check for and manage multiple installations for the same user and device ID.
I believe solving these problems will not only benefit me but also others facing similar issues. Any references, example codes, or guidance on how to approach these challenges would be greatly appreciated.
(P.S.: If you need more information, feel free to comment, and I will respond within 24 hours)