Android, messaging using FCM, self-hosted 1.6.1, Python backend
Hey, I thought that by just setting the users = [<user_id>] inside the create_push() function (and not specifying a target) I could send a push notification.
I can't find anywhere how this "users" and "targets" parameters of create_push() are used, does someone know what I need to set in order to send a push notification to a user? Is it possible to skip the specifying specific targets and only list the userID (and probably the backend sends a push to all active targets?)
Thanks a lot!
TL;DR
To send a push notification to a specific user using the create_push() function, you need to specify the user_id under the users parameter. It is not necessary to specify targets. By setting users = [<user_id>], the push notification will be sent to the specified user.