<div dir="ltr">Created <a href="https://issues.jboss.org/browse/AGCORDOVA-106">https://issues.jboss.org/browse/AGCORDOVA-106</a> for this</div><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"><<a href="mailto:edewit@redhat.com" target="_blank">edewit@redhat.com</a>></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. 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>
<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 <<a href="mailto:matzew@apache.org">matzew@apache.org</a>> wrote:<br>
><br>
><br>
> On Wed, Jun 3, 2015 at 8:37 AM, Corinne Krych <<a href="mailto:corinnekrych@gmail.com">corinnekrych@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Is there an option to move this payload from under alert to a dedicated<br>
>> "ios" section as we have the "windows" one explained in UPS guide [1]?<br>
>> With this option Cordova will still have to deal with extended ios<br>
>> features for alert and we will have a new payload version.<br>
><br>
><br>
> right, since Cordova_iOS boils down to be... iOS :-)<br>
><br>
>><br>
>> Out of all options, I think a Cordova support need to be done anyway.<br>
><br>
><br>
> I think so too<br>
><br>
>><br>
>><br>
>> ++<br>
>> Corinne<br>
>> [1] <a href="https://aerogear.org/docs/unifiedpush/push-message-format-dev/" rel="noreferrer" target="_blank">https://aerogear.org/docs/unifiedpush/push-message-format-dev/</a><br>
>><br>
>> On 2 June 2015 at 18:09, Matthias Wessendorf <<a href="mailto:matzew@apache.org">matzew@apache.org</a>> wrote:<br>
>>><br>
>>> Hi,<br>
>>><br>
>>> since iOS 8.0 we have the option for UI actions on the push notification:<br>
>>><br>
>>> <a href="http://cdn.iphonehacks.com/wp-content/uploads/2014/06/lock-screen-notifications.jpg" rel="noreferrer" target="_blank">http://cdn.iphonehacks.com/wp-content/uploads/2014/06/lock-screen-notifications.jpg</a><br>
>>><br>
>>> This is supported on java-apns and therefore on the UPS, however this<br>
>>> causes the alert to be an object, and not a String, if the 'action' is<br>
>>> provided.<br>
>>> Another feature that is leveraging this is the support for Safari, there<br>
>>> is a 'title' on the alert object, used by Apple Watch (iOS 8.3) as well.<br>
>>><br>
>>> Sending always an object from the UPS to the APNs cloud breaks the<br>
>>> Cordova code, since it's expecting a string.<br>
>>><br>
>>> On the UPS I could do construct the object only if things like title or<br>
>>> action are actually set. This would fix the issue on Cordova. However, this<br>
>>> means that our Cordova code would not support the 'action', introduced in<br>
>>> iOS 8.0<br>
>>><br>
>>><br>
>>> I can see a few options:<br>
>>> * for 1.1.0 -> do if/else and send object only if present. However, this<br>
>>> would still mean the Cordova plugin has to check if the alert is just a<br>
>>> string, to avoid crahes<br>
>>> * for 1.2.0 (or 1.1.x, if really needed) -> Add Cordova support for alert<br>
>>> being an object (helps for Apple Watch apps and supports the 'action')<br>
>>><br>
>>> Any thoughts or other options?<br>
>>><br>
>>> Thanks,<br>
>>> Matthias<br>
>>><br>
>>><br>
>>> --<br>
>>> Matthias Wessendorf<br>
>>><br>
>>> blog: <a href="http://matthiaswessendorf.wordpress.com/" rel="noreferrer" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
>>> sessions: <a href="http://www.slideshare.net/mwessendorf" rel="noreferrer" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
>>> twitter: <a href="http://twitter.com/mwessendorf" rel="noreferrer" target="_blank">http://twitter.com/mwessendorf</a><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" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
>><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" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Matthias Wessendorf<br>
><br>
> blog: <a href="http://matthiaswessendorf.wordpress.com/" rel="noreferrer" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
> sessions: <a href="http://www.slideshare.net/mwessendorf" rel="noreferrer" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
> twitter: <a href="http://twitter.com/mwessendorf" rel="noreferrer" target="_blank">http://twitter.com/mwessendorf</a><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" rel="noreferrer" 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" rel="noreferrer" 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>