Azure notifications hub can't register template with content-available
<p>I am trying to register a template for Azure Notifications Hub for iOS with content-available field in aps and I'm having some issues regarding this. When I register a template with the following format it works:</p>

<pre><code>"{\"aps\" : {\"alert\":\"$(message)\" }, \"payload\": { \"type\" : \"$(type)\", \"startDate\" : \"$(startDate)\", \"id\" : \"$(id)\"} }"
</code></pre>

<p>However, when I try to add content-available field, since I want to be able to send silent notifications I get an error from Azure saying it's bad request: </p>

<pre><code>"{\"aps\" : {\"alert\":\"$(message)\", \"content-available\": \"$(content-available)\", \"sound\":\"\" }, \"payload\": { \"type\" : \"$(type)\", \"startDate\" : \"$(startDate)\", \"id\" : \"$(id)\"} }"
</code></pre>

<p>When I change "$" notation to "#" and "-" to "_" I can register sucessfully however, when I try to send notification I get an error on Azure portal saying notification payload is invalid: </p>

<pre><code>"{\"aps\" : {\"alert\":\"$(message)\", \"content-available\": \"#(content_available)\", \"sound\":\"\" }, \"payload\": { \"type\" : \"$(type)\", \"startDate\" : \"$(startDate)\", \"sleeperId\" : \"$(sleeperId)\"} }"
</code></pre>

<p>I understand that this problem has something do to with the fact that "content-available" has "-" which Azure cannot parse. </p>