Skip to content

Please add support for Android FCM client #31

@matsumura-f

Description

@matsumura-f

I'd like to pushing to my Android FCM client
example use [pusher/pusher-php-server]

// Install the server library with:
//   composer require pusher/pusher-php-server

require __DIR__ . '/vendor/autoload.php';

$pusher = new Pusher\Pusher('APP_KEY', 'APP_SECRET', 'APP_ID', array('cluster' => 'APP_CLUSTER'));

$pusher->notify(
  array("donuts"),
  array(
    'fcm' => array(
      'notification' => array(
        'title' => 'hello world',
        'icon' => 'androidlogo'
      ),
    ),
  )
);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions