Open
Description
Finally got this working using the below:
$client = new \Fcm\FcmClient($serverKey, $senderId);
$subscribe = new \Fcm\Topic\Subscribe('my_topic_name');
$subscribe->addDevice($deviceId);
$client->send($subscribe);
However, no success using the shortcut, what am I doing wrong:
$client = new \Fcm\FcmClient($serverKey, $senderId);
// Shortcut function:
$client->topicSubscribe('my_topic_name', $deviceId);
Metadata
Metadata
Assignees
Labels
No labels