| | |
| | | //}, |
| | | //Categories = new string[]
|
| | | //{ |
| | | // "com.jinlu.onpro" |
| | | // "com.hdl.onpro" |
| | | //})] |
| | | |
| | | |
| | | [Android.App.Service(Enabled = true, Exported = false)] |
| | | [Android.App.IntentFilter( |
| | | new string[] { "cn.jpush.android.intent.SERVICE_MESSAGE" }, |
| | | Categories = new string[]
|
| | | { |
| | | "com.jinlu.onpro" |
| | | })] |
| | | public class JPushReceiver : JPushMessageService |
| | | //[Android.App.Service(Enabled = true)] |
| | | //[Android.App.IntentFilter( |
| | | // new string[] { "cn.jpush.android.intent.SERVICE_MESSAGE" }, |
| | | // Categories = new string[]
|
| | | // { |
| | | // "com.hdl.onpro" |
| | | // })] |
| | | |
| | | [BroadcastReceiver(Enabled = true, Exported = true)] |
| | | [Android.App.IntentFilter(new string[] { "cn.jpush.android.intent.SERVICE_MESSAGE" }, Categories = new string[] { "com.hdl.onpro" })] |
| | | public class JPushReceiver : JPushMessageReceiver// JPushMessageService |
| | | {
|
| | |
|
| | |
|
| | |
| | | public override void OnRegister(Context context, string p1) |
| | | { |
| | | base.OnRegister(context, p1); |
| | | Utlis.WriteLine("极光推送-注册成功回调: " + p1); |
| | | } |
| | | |
| | | /// <summary> |