<div dir="ltr">Hi,<div><br></div><div>in the message spec discussions, a while ago, we agreed that for &quot;triggering&quot; notifications for registered SimplePush clients, the &quot;deviceType&quot; needs to match &quot;web&quot; (see [1] for the spec).</div>
<div><br></div><div>Right now, only a few &quot;metadata&quot; items are submitted to the UnifiedPush Server, using the &quot;registerWithPushServer&quot; (perhaps we should rename it ?):</div><div><a href="https://github.com/aerogear/aerogear-js/blob/Notifier/src/unified-push/aerogear.unifiedpush.js#L48-L52">https://github.com/aerogear/aerogear-js/blob/Notifier/src/unified-push/aerogear.unifiedpush.js#L48-L52</a><br>
</div><div><br></div><div>However, I have already filed a ticket for that (see [2]), since on Cordova (and similar things) a bit more &quot;metadata&quot; would be nice (since they are really treated as &quot;native&quot; clients, with APNs/GCM setup on the UP server etc)</div>
<div><br></div><div><br></div><div>Now... talking about metadata (including the &quot;deviceType&quot;). The above statement, that the &quot;deviceType&quot; needs to match &quot;web&quot; for SimplePush clients leads to a question:</div>
<div><br></div><div>* Do we want to have ALL SimplePush clients auto-submit the &quot;deviceType&quot;:&quot;web&quot;, or not ? <br></div><div><br></div><div>If NOT, I guess that means there will be NO deviceType for SimplePush clients, on the UnifiedPush server, which is fine.</div>
<div><br></div><div>But once more metadata is possible (e.g. after AGJS-56), I think we than need to ensure that a SP client does not set it&#39;s deviceType to something like &quot;winBROwsPhone&quot; :)</div><div><br></div>
<div><br></div><div>-Matthias</div><div><br></div><div><br></div><div>[1] <a href="https://github.com/aerogear/aerogear.org/blob/master/docs/specs/aerogear-push-messages/index.markdown#query-component">https://github.com/aerogear/aerogear.org/blob/master/docs/specs/aerogear-push-messages/index.markdown#query-component</a><br clear="all">
<div>[2] <a href="https://issues.jboss.org/browse/AGJS-56">https://issues.jboss.org/browse/AGJS-56</a></div><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>