应该是可以放到extras
$ios_notification = array('sound' => 'hello jpush',
'badge' => 2,
'content-available' => true,
'category' => 'jiguang',
'extras' => array(
'key' => 'value',
'jiguang'
),
)
$android_notification = array(
'title' => 'hello jpush',
'build_id' => 2,
'extras' => array(
'key' => 'value',
'jiguang'
),
)
你可以以API的方式调用,具体操作如下:1、andriod 建立一个 含 andoid机器和消息的API请求;
2、ASP 或者 PHP 服务端请求jpush,根据返回结果输出给API,可以参考jpush API v3案例:
http://docs.jpush.io/server/rest_api_v3_push/
public void save(){try {
FileOutputStream outStream=this.openFileOutput("a.txt",Context.MODE_WORLD_READABLE)
outStream.write(text.getText().toString().getBytes())
outStream.close()
Toast.makeText(MyActivity.this,"Saved",Toast.LENGTH_LONG).show()
} catch (FileNotFoundException e) {
return
}
欢迎分享,转载请注明来源:夏雨云
评论列表(0条)