// ReSharper disable once UnusedMethodReturnValue.Global - used on Android protected virtual void OnMessageReceivedInternal(object pushNotification, PushNotificationModel parsedNotification, bool inForeground) { if (parsedNotification.IsSilent) { PushNotificationsHandler.HandleSilentPushNotification(parsedNotification); } else { PushNotificationsHandler.HandlePushNotificationReceived(parsedNotification, inForeground); } }
private bool TryParsePushNotification(object pushNotification, out PushNotificationModel result) { try { result = PushNotificationParser.Parse(pushNotification); return(true); } catch (Exception ex) { PushNotificationsHandler.HandleInvalidPushNotification(ex, pushNotification); } result = new PushNotificationModel(); return(false); }
protected abstract void OnMessageCustomActionInvokedInternal(PushNotificationModel parsedNotification, string actionId, string textInput);