Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Add FCM Support #161

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Add FCM Support #161

wants to merge 8 commits into from

Conversation

curiosity26
Copy link

@curiosity26 curiosity26 commented Nov 30, 2017

So I realized after I forked and made these changes that a PR was already open (#141), but it was in need of review. I went ahead and made the changes that were mentioned in the comments.

I also made additional formatting changes to comply with Symfony and PSR-2 standards.

This applies to issues #160 and #140 .

*
* @var array
*/
protected $gcmOptions = array();
protected $fcmOptions = array();

/**
* Sets the string message

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,
In the FCM case setMessage method will not work :) it should be replaced by body attribute. We can add also "title" attribute.

public function setMessage($message) { if ($this->isFCM){ $this->body = $message; } else { $this->message = $message; } }

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! Good catch. Thanks. I'll get that fixed shortly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants