You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i was wondering if there is any chance to send a notification to a specific role of authenticated users to your own drupalgap app. I recently started to use drupalgap and i have little knowledge about programming in drupal. Thanks in advance for your help and I apologize for my poor english.
The text was updated successfully, but these errors were encountered:
Thank you, I managed to achieve this through the rule module in drupal :)
I'd like to ask a final question: is there any possibility to modify the push in a way it becomes a link to the content? I studied the example on the drupalgap push notification repository but i didn't figured out yet how this work (or if is still working):
///////////////drupal
/**
Implements hook_form_alter(). /
function example_form_alter(&$form, $form_state, $form_id) {
switch ($form_id) {
case 'push_notifications_mass_push_form':
$form['message']['nid'] = array(
'#type' => 'textfield',
'#title' => t('Node ID'),
'#description' => t('Enter a the id of a node to display to the recipients.'),
'#size' => 6
);
break;
}
}
///////////////drupalgap
/*
Implements hook_push_notifications_receive().
*/
function sal_push_notifications_receive(data) {
if (data.additionalData && data.additionalData.nid) {
drupalgap_goto('node/' + data.additionalData.nid);
}
}
Hi, i was wondering if there is any chance to send a notification to a specific role of authenticated users to your own drupalgap app. I recently started to use drupalgap and i have little knowledge about programming in drupal. Thanks in advance for your help and I apologize for my poor english.
The text was updated successfully, but these errors were encountered: