<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 9, 2014 at 8:28 PM, Thomas Schweitzer <span dir="ltr">&lt;<a href="mailto:thomers@me.com" target="_blank">thomers@me.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><span class=""><div>On 09.12.2014, at 16:22, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt; wrote:</div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div>The reason I’m asking is that I deleted all the development tokens from the DB, but still couldnt receive a push message on a device.</div><div><br></div><div>But I know that I’m sending push registrations to the production variant not just from the “Free” version of my app (using the correct “Free” variant ID and key), but also from the “Paid” version (incorrectly using the “Free&quot; variant ID and key). Since I do not know the tokens sent from the “Paid” version, I cannot disable them. </div></div></blockquote><div><br></div><div>I understand that you do not want to delete them. However, the &#39;didRegisterForRemoteNotificationsWithDeviceToken&#39; method is always invoked when the application is launched - you will get back all your tokens, eventually ;-)</div></div></div></div></blockquote><div><br></div></span><div>It’s not that I do not want to delete them - I just don’t think I can determine which ones are the invalid ones (?), since the “Paid” version is live in the app store as well, and I do not know which devices are running it. (I do not care about sending pushes to the few “Paid” installations, </div></div></div></blockquote><div><br></div><div><div>Ok, let&#39;s see what we can do here.</div><div>paid and free (both are backed by PRODUCTION Apple certs) are on the same variant? is the free one on the app-store too? Do you care about the &#39;free&#39;, or do you only care about the &#39;paid&#39; version ? <br></div></div></div></div></div></blockquote><div><br></div></span><div>i only created a PRODUCTION variant for the FREE version, because that is the only one i care about (since the number of PAID downloads is much lower, and i dont need to send them pushes).</div><div><br></div><div>so, the setup is:</div><div><br></div><div>*) the FREE app installs register correctly against the FREE PRODUCTION variant</div><div>*) the PAID app installs register incorrectly against the FREE PRODUCTION variant </div><div><br></div><div>i want to send pushes to the FREE devices.</div><span class=""><div><br></div><div><br></div><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div> </div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">and I didn’t bother taking out the code to register the device token with the wrong variant/key, assuming it would not cause me any problems - duh ;-)).</div></blockquote><div><br></div><div>but it is :-) The real &quot;problem&quot; with the registration against the &#39;wrong&#39; variant is, that well, they are different app-ids and apple certs</div></div></div></div></blockquote><div><br></div></span><div>i know. i was totally aware of that - just thought (naively) that the wrong registrations will by silently discarded/ignored…</div></div></div></blockquote><div><br></div><div>yeah, I know the behavior is not optimal - I think we have to do something on the underlying java-apns library for that</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span class=""><div><br></div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><span><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Could this be the reason why I’m not receiving pushes?</div><div><br></div><div>Since I’m using the OpenShift cartridge - what’s the best way how to proceed? Can I change the “<span style="background-color:rgba(0,0,0,0.0392157)"><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace">withNoErrorDetection” </font></span>of <span style="color:rgb(51,51,51);font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;background-color:rgba(0,0,0,0.0392157)">ApnsService </span>somehow?</div></div></blockquote><div><br></div><div><br></div><div>Do you know what exact version of the UPS you are running on Openshift? I am asking, because you could build the UPS yourself and simply replace the WAR file. </div><div>But we before we do that, let&#39;s make sure we are all on the same page<br></div></div></div></div></blockquote><div><br></div></span><div>I havent changed anything since I restarted the OpenShift application last month (see <a href="http://lists.jboss.org/pipermail/aerogear-users/2014-November/000020.html" target="_blank">http://lists.jboss.org/pipermail/aerogear-users/2014-November/000020.html</a> )</div><div><br></div><div>The OpenShift console shows</div><div><br></div><div><span style="color:rgb(48,48,48);font-family:&#39;Open Sans&#39;,&#39;Helvetica Neue&#39;,Helvetica,&#39;Liberation Sans&#39;,Arial,sans-serif;line-height:20px;background-color:rgb(255,255,255)">AeroGear Push Server 1.0.0, MySQL 5.5, phpMyAdmin 4.0</span></div></div></blockquote><div><br></div><div>Ok, thanks</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><br></div></blockquote></div></div></div></blockquote></span></div><br><div><br></div><div>any idea what i could do now?</div></div></blockquote><div><br></div><div>I created a patch for you:</div><div><a href="https://github.com/matzew/aerogear-unifiedpush-server/tree/ThomasPatch">https://github.com/matzew/aerogear-unifiedpush-server/tree/ThomasPatch</a><br></div><div>containing <a href="https://github.com/matzew/aerogear-unifiedpush-server/commit/9e71472ec7931240a2264e8d1aa4ef4b5bc4ff94">https://github.com/matzew/aerogear-unifiedpush-server/commit/9e71472ec7931240a2264e8d1aa4ef4b5bc4ff94</a></div><div><br></div><div>Now, checkout that branch and build it yourself. the WAR file in here:</div><div><a href="https://github.com/matzew/aerogear-unifiedpush-server/tree/ThomasPatch/servers/ups-as7">https://github.com/matzew/aerogear-unifiedpush-server/tree/ThomasPatch/servers/ups-as7</a><br></div><div><br></div><div>is the one you need to upload to openshift</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>if the only possible solution is to build the WAR from scratch and install it ontop of the openshift cartridge, i’d do that, but maybe there is an easier way?</div></div></blockquote><div><br></div><div>You can log in via SSH (details are on the Openshift console). Once logged in, cd to &quot;aerogear-push/versions/&lt;MY_VERSION_OF_UPS&gt;/standalone/deployments&quot;</div><div><br></div><div>Via SCP you could upload the WAR file, mentioned above. Basically replace the &quot;ag-push.war&quot; file in &quot;deployments&quot; folder.</div><div><br></div><div>I know it is hacky, but hopefully is good enough for now </div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>thanks</div><span class=""><font color="#888888"><div>thomas</div><div><br></div></font></span></div><br>_______________________________________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
<br></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>