Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #7 from ker0x/develop
Browse files Browse the repository at this point in the history
Spring update
  • Loading branch information
ker0x committed Mar 21, 2016
2 parents ba8182b + c409caa commit 9cfbb59
Show file tree
Hide file tree
Showing 5 changed files with 386 additions and 372 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Or add it in your `composer.json`:
### Enable plugin
In `config/bootstrap.php` file add :
```php
Plugin::load('CakeGcm', ['autoload' => true]);
Plugin::load('CakeGcm');
```
or uncomment :
```php
Expand All @@ -44,7 +44,7 @@ To get an API key, follow the instructions in this link: http://developer.androi

Then, in an action of your Controller, add the following code:
```php
if ($this->Gcm->send($ids, $data, $parameters)) {
if ($this->Gcm->send($ids, $payload, $parameters)) {
// do some stuff
} else {
// do other stuff
Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
"cakephp",
"google",
"cloud",
"messaging"
"messaging",
"plugin",
"cake3"
],
"license": "MIT",
"version": "1.0.0",
"version": "2.0.0",
"authors": [
{
"name": "Romain Monteil",
Expand Down

0 comments on commit 9cfbb59

Please sign in to comment.