setEmailTags

open fun setEmailTags(emailTags: TagsBundle, email: String)

Associates device with given email tags. If setEmailTags request fails email tags will be resent on the next application launch. Example:


  pushwoosh.setEmailTags(Tags.intTag("intTag", 42), "my@email.com");

Parameters

email

user email


open fun setEmailTags(emailTags: TagsBundle, email: String, callback: Callback<Void, PushwooshException>)

Associates device with given email tags. If setEmailTags request fails email tags will be resent on the next application launch. Example:


  List<String> emails = new ArrayList<>();
  emails.add("my@email.com");
  pushwoosh.setEmailTags(Tags.intTag("intTag", 42), emails, (result) -> {
      if (result.isSuccess()) {
          // tags sucessfully sent
      }
      else {
          // failed to send tags
      }
  });

Parameters

email

user email

callback

sendEmailTags operation callback