Comments (3)
如果没有特别的需求,建议针对不同设备分别建立推送,如:
$iosPush = new LeanPush();
$iosPush->setData("alert", "Hello iOS!");
$iosPush->setData("badge", "Increment");
$iosPush->send();
...
from php-sdk.
建议还是直接支持下
2015-11-21 15:07 GMT+08:00 Juvenn Woo [email protected]:
如果没有特别的需求,建议针对不同设备分别建立推送,如:
$iosPush = new LeanPush();$iosPush->setData("alert", "Hello iOS!");$iosPush->setData("badge", "Increment");$iosPush->send();...
—
Reply to this email directly or view it on GitHub
#35 (comment).
庄晓丹
Email: [email protected] [email protected]
Site: http://fnil.net
Twitter: @killme2008
from php-sdk.
#82 已支持多平台同时发送消息:
$data = array(
"ios" => array(
"alert" => "Hello world!",
"badge" => 20,
"sound" => "APP/media/sound.mp3"
),
"android" => array(
"alert" => "Hello world!",
"title" => "Hello from app",
"action" => "app.action"
),
"wp" => array(
"alert" => "Hello world!",
"title" => "Hello from app",
"wp-param" => "/chat.xaml?NavigatedFrom=Toast Notification"
)
);
$push = new LeanPush($data);
from php-sdk.
Related Issues (20)
- 用户反馈 PHP SDK 的一个报错 HOT 1
- 防止afterHook 死循环需要更新
- app-router 不可用时应该返回应用域名
- Would you give an adapter for php-cache? HOT 1
- relation还在使用吗 HOT 1
- 梳理 batch 请求错误的异常处理
- PHP 定义云函数时,没有 fetchUser 的参数可选
- support android key
- 异常信息格式 HOT 1
- add support for captcha HOT 1
- 账号相关短信方法支持 ttl 参数
- 3 个单元测试失败
- 增加显式指定远程调用云函数的参数 HOT 1
- 支持 RPC 调用云函数
- php 8.0 HOT 4
- travis CI 上 phpunit 和 PHP 7.3、7.4 不兼容
- 考虑在 CI 中集成 PHPStan
- GitHub Action 跑测试的超时问题
- 修复 testRelationBatchOp 测试
- 开发者反馈保存对象时没有自动保存引用到的新构建的文件
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-sdk.