Just saw the rest of the thread :-)<div><br></div><div>Glad it works! </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 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,&#39;cvml&#39;,&#39;miguel21op@gmail.com&#39;);" 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 ;-)  -to have the push notifications working on Android. But with iOS, not the same luck so far. What I&#39;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  the AeroGear Server;</div><div>c) I installed the devprof profile (the mobile provision file) in Xcode (which says it&#39;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==&#39;iOS&#39;){</div><div><span style="white-space:pre-wrap">                </span>varID= &quot;bb66d681-zabc-42cc-87f6-c27185c2389f&quot;;</div>


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


<div><span style="white-space:pre-wrap">                </span>varID= &quot;b438d657-5eef-4301-ba82-28c46cc3466f&quot;;</div><div><span style="white-space:pre-wrap">                </span>varSec= &quot;150b5f99-z450-4edc-bdad-62dad284af2e&quot;;<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>          senderID: &quot;278695547260&quot;, // not relevant for Android anyway</div>


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


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


<div> </div><div> What can be wrong?</div><div> </div><div> 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>