Skip to content

Commit 3c47ea6

Browse files
authored
Merge pull request #63 from amreladawy/patch-1
Fix the if statement to correctly use GCM
2 parents aec6ad1 + 0ec98c9 commit 3c47ea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/UsageExample.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public void sendPushMessage(Subscription sub, byte[] payload) {
308308
Notification notification;
309309
PushService pushService;
310310

311-
if (useGcm) {
311+
if (!useGcm) {
312312
// Create a notification with the endpoint, userPublicKey from the subscription and a custom payload
313313
notification = new Notification(
314314
sub.getEndpoint(),

0 commit comments

Comments
 (0)