Replicate channel behavior like in Parse

Comments

1 comment

  • Avatar
    Chris Hornberger

    Resolved.

    Tags via /setTags still requires { tags: {xxxx:xxxx} } notation even though the tags : declaration in the body is apparently redundant (given you're calling setTags)

    Seems silly to be so verbose, but there you go.

    The documentation could be clearer, or more explicit about the need to still send declarations in typed/named api calls.

    Note for PushWoosh folks:

    /setTags api call should minimize the payload by NOT requiring { tags: } declarations.

    For instance, you require:

    forge.pushwoosh.setTags( { tags: { "channels" : ["12345678"] } },
      function (status) {
          forge.logging.log('set tags success');
      },
      function(status) {
          forge.logging.log('setTags failed');
      }
    );
    

    when

    forge.pushwoosh.setTags( { "channels" : ["12345678"] },
      function (status) {
          forge.logging.log('set tags success');
      },
      function(status) {
          forge.logging.log('setTags failed');
      }
    );
    

    is far clearer. It's not like you're using /setTags to set other properties, right? Food for thought.

    $.02

Please sign in to leave a comment.