<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi,</div><div><br></div>That could be a problem, I think Xcode 5.1 doesn’t work with Cordova, there are some issue that will be fixed in 3.5 you might have to revert this update. As for the plugin update the javascript API has not change yet, but it will when we merge the simplification branch.&nbsp;<div><br></div><div>Cheers,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Erik Jan</div><div><br><div><div>On 17 Mar,2014, at 11:30 , Miguel Lemos &lt;<a href="mailto:miguel21op@gmail.com">miguel21op@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="auto"><div>Further info: I use Xcode 5.1, iOS 7.1 and Cordova 3.4</div><div><br></div><div>M</div><div><br><br>Enviado do meu iPhone</div><div><br>No dia 17/03/2014, às 10:13, Erik Jan de Wit &lt;<a href="mailto:edewit@redhat.com">edewit@redhat.com</a>&gt; escreveu:<br><br></div><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252">Hi Miguel,<div><br></div><div>Not sure what the problem is, but you could maybe try to debug it a bit. The easiest way is to start safari on your machine and on your device enable the web inspector ( Settings&nbsp;&gt;&nbsp;Safari&nbsp;&gt;&nbsp;Advanced ). Then in safari you can go to develop &gt; “device name” then you can open the javascript console and see if there was an error of some kind.</div><div><br></div><div>Also we just released a new version (0.0.3) that that fixes some bugs you could also try to update to that version by removing and adding the plugin in you cordova project.</div><div><br></div><div>Hope this helps,</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Erik Jan</div><div><br><div><div>On 17 Mar,2014, at 10:53 , Miguel Lemos &lt;<a href="mailto:miguel21op@gmail.com">miguel21op@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="auto"><div>I have this problem now: in iPhone (the same code works just fine with Android) the event handler never triggers the alert message.</div><div><br></div><div>If the app is running in the background I get the message in the status bar, the badge shows, but when I touch on it or if the app is in the foreground the alert box inside the app never shows.</div><div><br></div><div>As I told you, the same code works just fine in Android.</div><div><br></div><div>Meanwhile I noticed this odd thing in the Xcode debugger: even if the app is running in the background, when the push notification arrives it says a foreground message has arrived...</div><div><br></div><div>Thanks</div><div><br></div><div>M</div><div><br>Enviado do meu iPhone</div><div><br>No dia 16/03/2014, às 18:45, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt; escreveu:<br><br></div><blockquote type="cite">Just saw the rest of the thread :-)<div><br></div><div>Glad it works!&nbsp;</div><div><br></div><div>-Matthias<span></span><br><br>On Sunday, March 16, 2014, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does the app-id (bundle identifier) match the one which you created the SSL certificate for?<div><br></div><div>Otherwise it is not valid to&nbsp;Apple</div>
<div><br></div><div>-Matthias<span></span><br><div><br>On Sunday, March 16, 2014, Miguel Lemos &lt;<a href="javascript:_e(%7B%7D,'cvml','miguel21op@gmail.com');" target="_blank">miguel21op@gmail.com</a>&gt; wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all!<div><br></div><div>As you know I managed - with a little help from my friends ;-) &nbsp;-to have the push notifications working on Android. But with iOS, not the same luck so far. What I've done:</div>


<div><br></div><div><div>a) I created my development profile at Apple;</div><div>b) I uploaded the Certificates.p12 to &nbsp;the AeroGear Server;</div><div>c) I installed the devprof profile (the mobile provision file) in Xcode (which says it's valid);</div>


<div>d) I inserted the variant ID and Secret on my phone code, like this (keys are not real):</div><div><br></div><div>if(device.platform=='iOS'){</div><div><span style="white-space:pre-wrap">                </span>varID= "bb66d681-zabc-42cc-87f6-c27185c2389f";</div>


<div><span style="white-space:pre-wrap">                </span>varSec= "e66271f5-dd92-492d-bbac-83736f53e930";<span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">        </span>} else if (device.platform=='Android'){</div>


<div><span style="white-space:pre-wrap">                </span>varID= "b438d657-5eef-4301-ba82-28c46cc3466f";</div><div><span style="white-space:pre-wrap">                </span>varSec= "150b5f99-z450-4edc-bdad-62dad284af2e";<span style="white-space:pre-wrap">                </span></div>


<div><span style="white-space:pre-wrap">        </span>}</div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>var pushConfig = {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; senderID: "278695547260", // not relevant for Android anyway</div>


<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pushServerURL: "<a href="https://aerogear-metalpush.rhcloud.com/" target="_blank">https://aerogear-metalpush.rhcloud.com</a>",&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; variantID: varID,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; variantSecret: varSec,</div>


<div><span style="white-space:pre-wrap">        </span> &nbsp;alias: userid</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp;</div><div>&nbsp;But nevertheless I can't register the device. I get this error:</div><div>&nbsp;</div><div>&nbsp;no valid aps-environment (the message is not in English, so I translate it freely:"It was not found a valid aps-environment for the app")</div>


<div>&nbsp;</div><div>&nbsp;What can be wrong?</div><div>&nbsp;</div><div>&nbsp;Thanks</div></div><div><br></div><div>Miguel</div></div>
</blockquote></div></div><br><br>-- <br>Sent from Gmail Mobile<br>
</blockquote></div><br><br>-- <br>Sent from Gmail Mobile<br>
</blockquote><blockquote type="cite"><span>_______________________________________________</span><br><span>aerogear-dev mailing list</span><br><span><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></span></blockquote></div>_______________________________________________<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">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></blockquote></div><br></div></blockquote><blockquote type="cite"><span>_______________________________________________</span><br><span>aerogear-dev mailing list</span><br><span><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></span></blockquote></div>_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev</blockquote></div><br></div></body></html>