Buddy4all: Difference between revisions
From Salumentis
| Line 4: | Line 4: | ||
= Developers Guide = | = Developers Guide = | ||
== Notification messages == | |||
Notifications are sent by the backend via Websocket and/or Firebase push notifications. | |||
The following notification are sent: | |||
=== Friendship endpoints === | |||
==== When new friendship request has been made === | |||
Channel: Websocket | |||
Message: | |||
<pre> | |||
[ | |||
'message' => "Mesage text, | |||
'message_type' => 'friendship_request', | |||
'friend_id' => $this->friend->id, | |||
'open_requests' => $n, | |||
'tooltip' => $tooltip, | |||
'with_sound' => !$this->broadcastOnly | |||
]; | |||
</pre> | |||
Revision as of 08:57, 29 September 2023
Introduction
User's Guide
Developers Guide
Notification messages
Notifications are sent by the backend via Websocket and/or Firebase push notifications. The following notification are sent:
Friendship endpoints
= When new friendship request has been made
Channel: Websocket Message:
[
'message' => "Mesage text,
'message_type' => 'friendship_request',
'friend_id' => $this->friend->id,
'open_requests' => $n,
'tooltip' => $tooltip,
'with_sound' => !$this->broadcastOnly
];
