Suppose user X is followed by users A1...An
When user X creates a post, I want users A1...An to receive push notifications.
I plan to do this:
#1 When user A follows user X, I add 'tag_X' to user A's channel.
When user X creates a post, I send the push that match 'tag_X'.
#2 When user A unfollows user X, I remove 'tag_X' from user A's channel.
In both cases, I update the registration after adding or removing the tag using:
UAirship.push().updateRegistration() // iOS/SWIFT
Is this whole approach correct ?
Comments
13 comments