<div dir="ltr">Is there an option to move this payload from under alert to a dedicated "ios" section as we have the "windows" one explained in UPS guide [1]?<div>With this option Cordova will still have to deal with extended ios features for alert and we will have a new payload version.</div><div><br></div><div>Out of all options, I think a Cordova support need to be done anyway. <br></div><div><br></div><div>++</div><div>Corinne</div><div>[1] <a href="https://aerogear.org/docs/unifiedpush/push-message-format-dev/">https://aerogear.org/docs/unifiedpush/push-message-format-dev/</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 June 2015 at 18:09, Matthias Wessendorf <span dir="ltr"><<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,<br></div><div><br></div><div>since iOS 8.0 we have the option for UI actions on the push notification:</div><div><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></div><div><br></div><div>This is supported on java-apns and therefore on the UPS, however this causes the alert to be an object, and not a String, if the 'action' is provided.</div><div>Another feature that is leveraging this is the support for Safari, there is a 'title' on the alert object, used by Apple Watch (iOS 8.3) as well.</div><div><br></div><div>Sending always an object from the UPS to the APNs cloud breaks the Cordova code, since it's expecting a string.</div><div><br></div><div>On the UPS I could do construct the object only if things like title or action are actually set. This would fix the issue on Cordova. However, this means that our Cordova code would not support the 'action', introduced in iOS 8.0 </div><div><br></div><div><br></div><div>I can see a few options:</div><div>* for 1.1.0 -> do if/else and send object only if present. However, this would still mean the Cordova plugin has to check if the alert is just a string, to avoid crahes </div><div>* for 1.2.0 (or 1.1.x, if really needed) -> Add Cordova support for alert being an object (helps for Apple Watch apps and supports the 'action')</div><div><br></div><div>Any thoughts or other options?</div><div><br></div><div>Thanks,</div><div>Matthias</div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div>-- <br><div>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>
</font></span></div>
<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></div>