using Android.App;
|
using Android.Content;
|
using Android.OS;
|
using Android.Runtime;
|
using Android.Views;
|
using Android.Widget;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
|
namespace JPushSample
|
{
|
|
[BroadcastReceiver(Enabled = true, Exported = false, Name = "com.hdl.onpro.JPushFirmBroadcast")]
|
[Android.App.IntentFilter(new string[]
|
{
|
"com.hdl.onpro.jpush.firm.NOTIFICATION_OPENED"
|
},
|
Categories = new string[]
|
{
|
Intent.CategoryDefault
|
})]
|
class JPushFirmBroadcast : BroadcastReceiver
|
{
|
|
|
public override void OnReceive(Context context, Intent intent)
|
{
|
|
/* 用来接收厂商点击通知消息,需要打开MainActivity 需要自行调用
|
cn.jpush.android.EXTRA,cn.jpush.android.MSG_ID,
|
cn.jpush.android.TYPE_PLATFORM,
|
cn.jpush.android.TITLE,
|
cn.jpush.android.MESSAGE*/
|
|
|
}
|
}
|
}
|