Filtering Hybrid App Messages

Prevent the Hybrid App from displaying some messages.

  1. Add a MessageFilter class that uses the base class Ifilter<Message>.
  2. Override the select method using code similar to:
    public bool Select(Message subject)
    {
      if (subject.Priority == MessageConsts.EMAIL_STATUS_IMPORTANCE_HIGH)
      {
        return false;
      }
      return true;
    }
    
  3. Open the CustomizationHelper class in the CustomCode folder.
  4. Override the MessageFilter method using:
    public override IFilter<Message> MessageFilter
    {
      get
      {
        return new MessageFilter();
      }
    }
    
  5. Save the file.