diff --git a/README.md b/README.md index 79373e5..ec9c6ba 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ PHPush PHPush is a PHP package that provide a simple API to send push notifications to foreign platforms. -Currently, we support only 2 platforms - Android and iOS. +Currently, we support 3 platforms - Android, iOS, and Google Chrome. Installation ----------- @@ -38,6 +38,7 @@ $queue = PHPush::Queue(); // Adding some devices $queue->add(new \PHPush\providers\android\Device('android_registration_id')); +$queue->add(new \PHPush\providers\chrome\Device('chrome_registration_id')); $queue->add(new \PHPush\providers\ios\Device('ios_device_token')); // Setting message diff --git a/src/PHPush/providers/android/Device.php b/src/PHPush/providers/android/Device.php index c528f43..1a26f06 100644 --- a/src/PHPush/providers/android/Device.php +++ b/src/PHPush/providers/android/Device.php @@ -16,7 +16,7 @@ class Device implements \PHPush\providers\Device { * * @var string */ - private $device_token; + protected $device_token; /** * Setting device token diff --git a/src/PHPush/providers/android/Provider.php b/src/PHPush/providers/android/Provider.php index ccbeab9..09789ef 100644 --- a/src/PHPush/providers/android/Provider.php +++ b/src/PHPush/providers/android/Provider.php @@ -16,7 +16,7 @@ class Provider implements \PHPush\providers\Provider { * * @var string */ - private $access_key = ''; + protected $access_key = ''; /** * Setting Access Key diff --git a/src/PHPush/providers/chrome/Device.php b/src/PHPush/providers/chrome/Device.php new file mode 100644 index 0000000..761861b --- /dev/null +++ b/src/PHPush/providers/chrome/Device.php @@ -0,0 +1,14 @@ +stream_socket)) {