Пример #1
0
 // 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);
     }
 }
Пример #2
0
        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);
        }
Пример #3
0
 protected abstract void OnMessageCustomActionInvokedInternal(PushNotificationModel parsedNotification, string actionId, string textInput);