protected override bool OnRecoverableError(Context context, string errorId) { AndroidPushService.SetRegisterRegistrationId(string.Empty); AndroidPushService.SetUnRegisterRegistrationId(string.Empty); return(false); }
protected override void OnMessage(Context context, Intent intent) { if (intent != null || intent.Extras != null) { var message = intent.Extras.GetString("msg"); if (message != null) { mainThreadHandler.Post(() => { var baseActivity = CrossCurrentActivity.Current.Activity as BaseActivity; if (baseActivity != null && baseActivity.IsActivityVisible) { AndroidPushService.ShowInAppToast(context, message); } else { AndroidPushService.ShowLocalPush(context, message); } }); } } }
protected override void OnError(Context context, string errorId) { AndroidPushService.SetRegisterRegistrationId(string.Empty); AndroidPushService.SetUnRegisterRegistrationId(string.Empty); }
protected override void OnUnRegistered(Context context, string registrationId) { AndroidPushService.SetUnRegisterRegistrationId(registrationId); }