Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-222

ACS / Arrow Push - push to multiple channels, delimited by a comma does not seem to work as per docs

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Needs more info
    • Affects Version/s: None
    • Component/s: Arrow Push
    • Environment:

      Description

      See https://community.appcelerator.com/topic/2563/acs-arrow-push-push-to-multiple-channels-delimited-by-a-comma-does-not-seem-to-work-as-per-docs for background and full notes.

      From that post...

      I'm trying to push notifications to multiple channels, we should be able to just pass multiple channels into the Appcelerator Push API.

      The docs state channel can be a single word, a comma delimited list or an array. So either the docs are wrong/not clear, or the API doesn't work as described.

      Appcelerator docs at...
      http://docs.appcelerator.com/arrowdb/latest/#!/api/PushNotifications-method-notify
      ...it says...
      channel : String/String[] required
      Name of the channel. For multiple channels, either comma-separate the list of channels or use an array of strings.
      The name of the push channel cannot start with a hash symbol ('#') or contain a comma (',').

      The two commands to send a push from linux/osx terminal (with curl)...

      log-in...
      curl -b cookies.txt -c cookies.txt -F "login=MYUSERNAME" -F "password=MYPASSWORD" https://api.cloud.appcelerator.com/v1/users/login.json?key=MYAPIKEY&pretty_json=true

      send push...
      curl -b cookies.txt -c cookies.txt -F "channel=year3" -F "to_ids=everyone" -F "payload=test" https://api.cloud.appcelerator.com/v1/push_notification/notify.json?key=MYAPIKEY&pretty_json=true

      ...and that works fine.

      We should just be able to modify the second one to push to multiple channels, like...

      curl -b cookies.txt -c cookies.txt -F "channel=year3,year4" -F "to_ids=everyone" -F "payload=test" https://api.cloud.appcelerator.com/v1/push_notification/notify.json?key=MYAPIKEY&pretty_json=true

      ...but that does not work, we get a...
      "code":400,"status":"fail","message":"Subscription not found","method_name":"Notify"

      Any ideas? Am I doing something wrong, misunderstanding the docs, or have I found a bug?

      Thanks
      Andy

        Attachments

          Activity

            People

            • Assignee:
              mrahman Mostafizur Rahman
              Reporter:
              AndyG Andy Gaskell
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration