【发布时间】:2017-06-23 19:45:50
【问题描述】:
我正在使用 Ionic Framework V1。 我已经通过 Postman 收到推送通知 而且我已经将所有设备令牌保存在我的数据库中,但我一直坚持在 php 函数中获取特定设备的任何推送。
curl -X POST -H "Authorization: Bearer API_TOKEN" -H "Content-Type: application/json" -d '{
"tokens": ["DEV_DEVICE_TOKEN"],
"profile": "PROFILE_NAME",
"notification": {
"message": "This is my demo push!"
}
例子:
public function confirmAction($request){
$action = $this->find($request->idtblAction);
$action->idtblStatus=1;
if($action->save()){
//I need to send notification in this part
return Response::json(array('success'=>'true'));
}else{
return Response::json(array('success'=>'false'));
}
}
Ionic io 使用 Bearer key 和 profileapp 有什么想法吗?
【问题讨论】:
标签: php ionic-framework push devicetoken