Acoustic Campaign Ideas


The Acoustic Ideas portal has moved! Please sign up for our new Ideas portal and submit your suggestions at https://ideas.goacoustic.com.

Allow arbitrary modification of push JSON

Sometimes it would be useful to be able to make arbitrary modifications to the JSON that gets pushed to Apple or Google from the UI. Right now you can add things like "content-available":1 to the JSON if you push via API, but there's no way to do the equivalent if you create the push from the UI.

Ideally there would be some sort of JSON rewriter that would start with the JSON sent by the UI, then allow the developer to modify the output of that before the payload gets sent to Apple/Google with various rules (add JSON, pull out values, substitute body inside something else).

This would allow customers to have full control over what gets sent to the push provider if they want/need it, and also make things more robust if push providers change what is required (the default rules could be stored in a database and changed by WCA).

Note that each notification might potentially need different rules - I might want to add a "launch-image" to one of my messages but not to all of them.

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Jan 10 2019
  • Needs review
How will this idea be used?

I decide I want to translate my message when I send it out. Apple provides loc-key and loc-args options in the payload, which I could use to translate it. I tell the outgoing message to add my loc-key and loc-args to the payload that WCA sends out, and the APNS message I receive on the device includes the loc-key and loc-args elements in the notification payload.

What is your industry? Computer Services
What is the idea priority? Medium
DeveloperWorks ID
RTC ID
Link to original RFE
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    January 10, 2019 18:45

    This is a great idea! We can have the flexibility of customizing existing templates in the UI!