Hi,

Can I send Push to specific user ?

Tks,

Comments

haagendazs’s picture

Assigned: Unassigned » haagendazs
Priority: Major » Normal
Status: Active » Closed (works as designed)

Hi there. At the moment, there isn't a feature built to send a push notification to a specific user through the admin interface.

wawacreative’s picture

Hi,

You can send push notification through code ?

wawacreative’s picture

Status: Closed (works as designed) » Active

Hi,

You can send push notification through code ?

Raphael Dürst’s picture

In push_notifications.module, there is the function push_notifications_send_message on line 399.

/**
* Send out push notifications, switch automatically between delivery method.
*
* @param $recipients
*   Array of user ids.
* @param $message
*   Payload to send.
*/
function push_notifications_send_message($recipients, $message) {

I didn't try it myself, but you should be able to send a push to all users in the $recpients array.

greggles’s picture

Issue summary: View changes
Status: Active » Fixed

The comment #4 seems like it addresses the question. Updating status to reflect that.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.