<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 1:30 PM, Corinne Krych <span dir="ltr">&lt;<a href="mailto:corinnekrych@gmail.com" target="_blank">corinnekrych@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">+1 on a custom-data section.<br>
Going even further as we add more platforms support, I think having sth like cordova push config:<br>
<a href="http://aerogear.org/docs/guides/aerogear-cordova/AerogearCordovaPush/#_sample_example" target="_blank">http://aerogear.org/docs/guides/aerogear-cordova/AerogearCordovaPush/#_sample_example</a><br>
where you have platform specific section would be nice.<br></blockquote><div><br></div><div>perhaps, not fully convinced atm. Original idea was to have a simple format for multiple platforms. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
++<br>
Corinne<br>
<div><div class="h5"><br>
On 21 Aug 2014, at 13:09, Erik Jan de Wit &lt;<a href="mailto:edewit@redhat.com">edewit@redhat.com</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; With the upcoming windows support and simple push change (making simple push more like &#39;normal&#39;) the number of ‘special’ keys in our message is increasing. Right now we are mixing our ‘special’ keys with those the user can add, but we keep simple push out of it:<br>

&gt;<br>
&gt; {<br>
&gt;<br>
&gt;<br>
&gt; &quot;variants&quot; : [&quot;c3f0a94f-48de-4b77-a08e-68114460857e&quot;, &quot;444939cd-ae63-4ce1-96a4-de74b77e3737&quot; ....],<br>
&gt;<br>
&gt;<br>
&gt; &quot;alias&quot; : [&quot;<a href="mailto:user@account.com">user@account.com</a>&quot;, &quot;<a href="mailto:someone@aerogear.org">someone@aerogear.org</a>&quot;, ....],<br>
&gt;<br>
&gt;<br>
&gt; &quot;categories&quot; : [&quot;someCategory&quot;, &quot;otherCategory&quot;],<br>
&gt;<br>
&gt;<br>
&gt; &quot;deviceType&quot; : [&quot;iPad&quot;, &quot;AndroidTablet&quot;],<br>
&gt;<br>
&gt;<br>
&gt; &quot;ttl&quot; : 3600,<br>
&gt;<br>
&gt;<br>
&gt; &quot;message&quot;: {<br>
&gt;<br>
&gt;<br>
&gt; &quot;alert&quot;:&quot;HELLO!&quot;,<br>
&gt;<br>
&gt;<br>
&gt; &quot;sound&quot;:&quot;default&quot;,<br>
&gt;<br>
&gt;<br>
&gt; &quot;badge&quot;:7,<br>
&gt;<br>
&gt;<br>
&gt; &quot;content-available&quot; : true,<br>
&gt;<br>
&gt;<br>
&gt; &quot;action-category&quot; : &quot;some_category&quot;,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &quot;someKey&quot;:&quot;some value&quot;,<br>
&gt;<br>
&gt;<br>
&gt; &quot;anotherCustomKey&quot;:&quot;some other value&quot;<br>
&gt;<br>
&gt;<br>
&gt; },<br>
&gt; &quot;simple-push&quot;: &quot;version=123”<br>
&gt; }<br>
&gt;<br>
&gt;<br>
&gt; As simple push is going to be more like ‘normal’ push why not move the simple-push into the message as well. As for the windows support there are a lot more types of messages you can send. The most normal form is called ‘toast’, but there are other ones for when you app is pinned to the home screen. Then one can send message that contain pictures. To support all of this we need something like this: <a href="https://gist.github.com/edewit/305d76c31960aa6254a9" target="_blank">https://gist.github.com/edewit/305d76c31960aa6254a9</a><br>

&gt;<br>
&gt; Adding all these ‘special’ keys will make it easier to get into a conflict with the users own data, so I propose we put the user data into a separate data object, like so:<br>
&gt;<br>
&gt; {<br>
&gt;<br>
&gt;<br>
&gt; &quot;variants&quot; : [&quot;c3f0a94f-48de-4b77-a08e-68114460857e&quot;, &quot;444939cd-ae63-4ce1-96a4-de74b77e3737&quot; ....],<br>
&gt;<br>
&gt;<br>
&gt; &quot;alias&quot; : [&quot;<a href="mailto:user@account.com">user@account.com</a>&quot;, &quot;<a href="mailto:someone@aerogear.org">someone@aerogear.org</a>&quot;, ....],<br>
&gt;<br>
&gt;<br>
&gt; &quot;categories&quot; : [&quot;someCategory&quot;, &quot;otherCategory&quot;],<br>
&gt;<br>
&gt;<br>
&gt; &quot;deviceType&quot; : [&quot;iPad&quot;, &quot;AndroidTablet&quot;],<br>
&gt;<br>
&gt;<br>
&gt; &quot;ttl&quot; : 3600,<br>
&gt;<br>
&gt;<br>
&gt; &quot;message&quot;: {<br>
&gt;<br>
&gt;<br>
&gt; &quot;alert&quot;:&quot;HELLO!&quot;,<br>
&gt;<br>
&gt;<br>
&gt; &quot;sound&quot;:&quot;default&quot;,<br>
&gt;<br>
&gt;<br>
&gt; &quot;badge&quot;:7,<br>
&gt;<br>
&gt;<br>
&gt; &quot;content-available&quot; : true,<br>
&gt;<br>
&gt;<br>
&gt; &quot;action-category&quot; : &quot;some_category&quot;,<br>
&gt;          &quot;simple-push&quot;: &quot;version=123&quot;,<br>
&gt;<br>
&gt;<br>
&gt; &quot;data&quot; : {<br>
&gt;<br>
&gt;<br>
&gt; &quot;someKey&quot;:&quot;some value&quot;,<br>
&gt;<br>
&gt;<br>
&gt; &quot;anotherCustomKey&quot;:&quot;some other value&quot;<br>
&gt;<br>
&gt;<br>
&gt; }<br>
&gt;<br>
&gt;<br>
&gt; }<br>
&gt; }<br>
&gt;<br>
&gt;<br>
&gt; WDYT?<br>
&gt;<br>
&gt; Cheers,<br>
&gt;       Erik Jan<br>
</div></div>&gt; _______________________________________________<br>
&gt; aerogear-dev mailing list<br>
&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br>
<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>