禁止推送通知解雇

时间:2015-05-08 08:37:45

标签: android push-notification dismiss

我正在为 $select->columns(array('name' => new \Zend\Db\Sql\Expression(''))); 使用 Cordova Push插件http://ngcordova.com/docs/plugins/pushNotifications/)和 GCM

有什么办法可以禁止解雇通知?我希望它只在被点击并且用户已进入应用程序时被解雇。

1 个答案:

答案 0 :(得分:0)

You can create an "ongoing" Notification.

Simply add Ext.define('net.omobio.dialog.dialogcc.model.StockTransferDetails', { extend: 'Ext.data.Model', config: { fields: ['to_msisdn','to_profile_id','transfer_lob','transfer_item_status','transfer_product','transfer_qty','transfer_req_type','transfer_item_type','transfer_pack_type'], validations: [ { type: 'presence', field: 'to_msisdn' }, { type: 'presence', field: 'to_profile_id' }, { type: 'exclusion', field: 'transfer_lob', list: ['null'] }, { type: 'exclusion', field: 'transfer_req_type', list: ['null'] }, { type: 'exclusion', field: 'transfer_item_type', list: ['null'] }, { type: 'exclusion', field: 'transfer_pack_type', list: ['null'] } ] } }); to your flags.

Docs: http://developer.android.com/reference/android/app/Notification.html#FLAG_ONGOING_EVENT