null notify(string $app_id, string $key_name, int $feed_id, int $user_id)
Push a notification to your user.
$app_id
Your apps ID.
$key_name
Unique key to connect your notification to your JSON Configuration.
$feed_id
Feed ID#.
$user_id
User ID# of whom we should send the notification to.
Sample code to be placed in your start.php when notifying the user.
notify('Sample_App', 'my_update', 1, 2); |
The 2nd argument, must be a unique $key_name, which should be associated in your app.json file
{ "id": "Sample_App", "notifications": { "my_update": { "message": "Howdy!", "url": "/url/:id", "icon": "fa-video-camera" } } } |