azasar/yii2-expo
Composer 安装命令:
composer require azasar/yii2-expo
包简介
Yii2 extension for working with Expo push notifications
README 文档
README
Yii2 extension for working with Expo push notifications
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist azasar/yii2-expo "*"
or add
"azasar/yii2-expo": "*"
to the require section of your composer.json file.
Config
Once the extension is installed, add it to your config file(main.php) :
'expo' => [
'class' => 'azasar\expo\ExpoPush'
],
Usage
$data = [
'title' => 'Some title',
'text' => 'Some text'
];
$notification = ['body' => $text, 'data' => $data];
\Yii::$app->expo->notify('ExponentPushToken[xxxxxxxxxxxxx]', $notification);
$data is optional
统计信息
- 总下载量: 2.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-08