| | |
| | | using Android.Content; |
| | | using Android.OS; |
| | | |
| | | using Com.Hdl.ON.Jpush.Androidjpush; |
| | | //using Com.Hdl.ON.Jpush.Androidjpush; |
| | | |
| | | using Android.Views; |
| | | |
| | | namespace HDL_ON_Android |
| | | { |
| | | [Activity( |
| | | Exported = true, Enabled = true, Name = "com.hdl.onpro.JPushOpenClickActivity" |
| | | Exported = true, Enabled = true, Name = "com.santan.smartcontrol.JPushOpenClickActivity" |
| | | , Theme = "@android:style/Theme.Translucent.NoTitleBar")] |
| | | [IntentFilter(new string[] { "com.hdl.onpro.JPushOpenClickActivity", Intent.ActionView }, |
| | | [IntentFilter(new string[] { "com.santan.smartcontrol.JPushOpenClickActivity", Intent.ActionView }, |
| | | Categories = new string[] |
| | | { |
| | | "com.hdl.onpro",Intent.CategoryDefault |
| | | "com.santan.smartcontrol",Intent.CategoryDefault |
| | | }) |
| | | ] |
| | | public class JPushOpenClickActivity : Activity |
| | |
| | | protected void HandleOpenClick(Intent intent) |
| | | { |
| | | Intent broadcastIntent = new Intent(); |
| | | broadcastIntent.SetAction("com.hdl.onpro.jpush.firm.NOTIFICATION_OPENED"); |
| | | ComponentName componentName = new ComponentName(PackageName, "com.hdl.onpro.JPushFirmBroadcast"); |
| | | broadcastIntent.SetAction("com.santan.smartcontrol.jpush.firm.NOTIFICATION_OPENED"); |
| | | ComponentName componentName = new ComponentName(PackageName, "com.santan.smartcontrol.JPushFirmBroadcast"); |
| | | |
| | | if (Build.VERSION.SdkInt >= BuildVersionCodes.O) |
| | | { |
| | | broadcastIntent.SetComponent(componentName); |
| | | } |
| | | FirmOpenClickHelper.Instance.HandleOpenClick(this, intent, broadcastIntent); |
| | | //FirmOpenClickHelper.Instance.HandleOpenClick(this, intent, broadcastIntent); |
| | | Finish(); |
| | | |
| | | } |