代码实例:
function IGtNotificationTemplateDemo(){
$template = new
IGtNotificationTemplate();
$template->set_appId(APPID);//
应用
appid
$template->set_appkey(APPKEY);//
应用
appkey
$template->set_transmissionType(1);//
透传消息类型
$template->set_transmissionContent("
测试离线
");//
透传内容
$template->set_title("
个推
");//
通知栏标题
$template->set_text("
个推最新版点击下载
");//
通知栏内容
$template->set_logo("
http://wwww.igetui.com/logo.png"
);//
通知栏
logo
$template->set_isRing(true);//
是否响铃
$template->set_isVibrate(true);//
是否震动
$template->set_isClearable(true);//
通知栏是否可清除
return
$template;
}
点击通知打开链接: