<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 3, 2015 at 10:04 AM, Erik Jan de Wit <span dir="ltr">&lt;<a href="mailto:edewit@redhat.com" target="_blank">edewit@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So what the cordova plugin does now is take the payload it received<br>
create a json from this and call the js interface. So as a 3rd option<br>
we could also remove all the properties from the alert and leave only<br>
the body in all cases. </blockquote><div><br></div><div>I think that&#39;s fine for now.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This only question is does one need to know the<br>
title and action settings in the js or is can one suffice with the<br>
alert text?<br></blockquote><div><br></div><div>@action: not sure, perhaps Corinne knows more.</div><div>@title: nope</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If needed the plugin can move these things to a ios specific object, I<br>
would like to keep it as unified as possible the whole idea of our own<br>
plugin was to eliminate the need for platform aware js code.<br>
<div><div class="h5"><br>
On Wed, Jun 3, 2015 at 9:45 AM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jun 3, 2015 at 8:37 AM, Corinne Krych &lt;<a href="mailto:corinnekrych@gmail.com">corinnekrych@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Is there an option to move this payload from under alert to a dedicated<br>
&gt;&gt; &quot;ios&quot; section as we have the &quot;windows&quot; one explained in UPS guide [1]?<br>
&gt;&gt; With this option Cordova will still have to deal with extended ios<br>
&gt;&gt; features for alert and we will have a new payload version.<br>
&gt;<br>
&gt;<br>
&gt; right, since Cordova_iOS boils down to be... iOS :-)<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Out of all options, I think a Cordova support need to be done anyway.<br>
&gt;<br>
&gt;<br>
&gt; I think so too<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ++<br>
&gt;&gt; Corinne<br>
&gt;&gt; [1] <a href="https://aerogear.org/docs/unifiedpush/push-message-format-dev/" target="_blank">https://aerogear.org/docs/unifiedpush/push-message-format-dev/</a><br>
&gt;&gt;<br>
&gt;&gt; On 2 June 2015 at 18:09, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; since iOS 8.0 we have the option for UI actions on the push notification:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <a href="http://cdn.iphonehacks.com/wp-content/uploads/2014/06/lock-screen-notifications.jpg" target="_blank">http://cdn.iphonehacks.com/wp-content/uploads/2014/06/lock-screen-notifications.jpg</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; This is supported on java-apns and therefore on the UPS, however this<br>
&gt;&gt;&gt; causes the alert to be an object, and not a String, if the &#39;action&#39; is<br>
&gt;&gt;&gt; provided.<br>
&gt;&gt;&gt; Another feature that is leveraging this is the support for Safari, there<br>
&gt;&gt;&gt; is a &#39;title&#39; on the alert object, used by Apple Watch (iOS 8.3) as well.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Sending always an object from the UPS to the APNs cloud breaks the<br>
&gt;&gt;&gt; Cordova code, since it&#39;s expecting a string.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On the UPS I could do construct the object only if things like title or<br>
&gt;&gt;&gt; action are actually set. This would fix the issue on Cordova. However, this<br>
&gt;&gt;&gt; means that our Cordova code would not support the &#39;action&#39;, introduced in<br>
&gt;&gt;&gt; iOS 8.0<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I can see a few options:<br>
&gt;&gt;&gt; * for 1.1.0 -&gt; do if/else and send object only if present. However, this<br>
&gt;&gt;&gt; would still mean the Cordova plugin has to check if the alert is just a<br>
&gt;&gt;&gt; string, to avoid crahes<br>
&gt;&gt;&gt; * for 1.2.0 (or 1.1.x, if really needed) -&gt; Add Cordova support for alert<br>
&gt;&gt;&gt; being an object (helps for Apple Watch apps and supports the &#39;action&#39;)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Any thoughts or other options?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt; Matthias<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Matthias Wessendorf<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt;&gt;&gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt;&gt;&gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; aerogear-dev mailing list<br>
&gt;&gt;&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; aerogear-dev mailing list<br>
&gt;&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Matthias Wessendorf<br>
&gt;<br>
&gt; blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
&gt; sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
&gt; twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
&gt;<br>
&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>
--<br>
</div></div>Cheers,<br>
       Erik Jan<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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></div>