Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Cant get it to work #25

Closed
SlirigHorcrux opened this issue Jan 10, 2017 · 1 comment
Closed

Cant get it to work #25

SlirigHorcrux opened this issue Jan 10, 2017 · 1 comment

Comments

@SlirigHorcrux
Copy link

SlirigHorcrux commented Jan 10, 2017

Hello i am using your plugin but it does not send a push notificiation for me, is there something wrong with these lines of code?

$notificationBuilder = new PayloadNotificationBuilder('my title');
$notificationBuilder->setBody('body')
->setSound('default');

$notification = $notificationBuilder->build();

$optionBuilder = new OptionsBuilder();

$deviceResponse = FCM::sendTo($userKey, $optionBuilder->build(), $notification);

@brozot
Copy link
Owner

brozot commented Jan 25, 2017

Hello

It looks ok, are you sure about your client implementation ?
Your token is valid ?
your key is valid ?

Best regards,

@brozot brozot closed this as completed Apr 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants