tag:blogger.com,1999:blog-7119932468549495710.post9107155665827416596..comments2023-06-23T03:37:44.136-04:00Comments on Burr Blog: iOS APNS & Android GCM Push with Apache Cordova (Phonegap)Anonymoushttp://www.blogger.com/profile/10931204415287849441noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-7119932468549495710.post-53781185577237992014-04-04T23:39:02.621-04:002014-04-04T23:39:02.621-04:00If you use the updatesite at http://download.jboss...If you use the updatesite at http://download.jboss.org/jbosstools/updates/stable/kepler/<br /><br />you can select "JBoss Mobile Development"<br /><br />http://screencast.com/t/sg5Ed1W8XbP8Anonymoushttps://www.blogger.com/profile/10931204415287849441noreply@blogger.comtag:blogger.com,1999:blog-7119932468549495710.post-61194288649561271352014-04-04T14:26:08.899-04:002014-04-04T14:26:08.899-04:00Hello Burr, I saw your Mobile Dev using Eclipse ta...Hello Burr, I saw your Mobile Dev using Eclipse talk at Great Wide Open and wanted to install the Mobile Dev parts of JBoss Tools right away. Do you know what the minimum features of JBoss Tools are required to install to get the Mobile Dev environment since I don't do JavaEE development?ndejonghttps://www.blogger.com/profile/14694502729994745969noreply@blogger.comtag:blogger.com,1999:blog-7119932468549495710.post-27094766736606157152014-02-16T10:06:39.637-05:002014-02-16T10:06:39.637-05:00Yes, what induced my mistake on the pushserverURL ...Yes, what induced my mistake on the pushserverURL parameter was that when I registered to Aeroger I got this info:<br /><br /> Connection URL: https://$OPENSHIFT_APP_DNS:8443/simplepush<br /><br />Reading the service documentation more carefully I could find out that "simple push" is indeed a different thing....<br /><br />ThanksMiguel Lhttps://www.blogger.com/profile/06583896792390901959noreply@blogger.comtag:blogger.com,1999:blog-7119932468549495710.post-48032240112610841212014-02-14T10:52:11.604-05:002014-02-14T10:52:11.604-05:00Hello Miguel,
I have submitted a PR to fix the do...Hello Miguel,<br /><br />I have submitted a PR to fix the documentation:<br /><br />https://github.com/aerogear/aerogear.org/pull/252<br /><br />Please review and comment there if things are still confusing.<br /><br />Thanks again for the interest!<br />-MatthiasUnknownhttps://www.blogger.com/profile/15788981102771294943noreply@blogger.comtag:blogger.com,1999:blog-7119932468549495710.post-81212581505166711692014-02-13T14:06:37.284-05:002014-02-13T14:06:37.284-05:00HEllo Miguel,
thanks for the interest in on the A...HEllo Miguel,<br /><br />thanks for the interest in on the AeroGear push bits. Let me reply <br /><br /><br />Can you give me the link to the "original documentation" whuch you find is not very clear?<br /><br />Glad you noticed that the pushServerURL, should not contain the simplePush URL at all :- )I don't see Burr's post is mentioning 'simplePush', so I wonder why you this is required.<br /><br />The Android error you notice does, atm, not ring a bell. However we, yesterday, merged a PR to update the underlying AeroGear-Android library:<br />https://issues.jboss.org/browse/agdroid-195 and https://github.com/aerogear/aerogear-pushplugin-cordova/pull/9<br /><br />Do you mind to give the latest master branch a shot ? <br /><br /><br />Again, thanks for the interest in our push bits. We are interested in improving the user expericens. If you like, please join our mailing list for further discussions ? <br /><br />https://lists.jboss.org/mailman/listinfo/aerogear-dev<br /><br />Greetings,<br />Matthias<br />Unknownhttps://www.blogger.com/profile/15788981102771294943noreply@blogger.comtag:blogger.com,1999:blog-7119932468549495710.post-5381854275011573202014-02-13T13:35:18.946-05:002014-02-13T13:35:18.946-05:00Hello Miguel, yes, my example does not use the &qu...Hello Miguel, yes, my example does not use the "SimplePush" URL as it does not use that feature - it focuses on APNS & GCM which are different than SimplePush - SimplePush is fairly different animal. I will ask the team to see if there is an answer for your error.Anonymoushttps://www.blogger.com/profile/10931204415287849441noreply@blogger.comtag:blogger.com,1999:blog-7119932468549495710.post-61510415930968983622014-02-13T11:07:03.504-05:002014-02-13T11:07:03.504-05:00Hi again ;-)
Yes the problem was with the URL. I...Hi again ;-)<br /><br />Yes the problem was with the URL. It should be instead:<br /><br />http://aerogear-metalpush.rhcloud.com/<br /><br />Now I get a "normal" error:<br /><br />02-13 16:00:07.272: E/HttpRestProvider(25972): Error on POST of http://aerogear-metalpush.rhcloud.com/rest/registry/device<br />02-13 16:00:07.272: E/HttpRestProvider(25972): java.io.IOException: BufferedInputStream is closed<br />02-13 16:00:07.272: E/HttpRestProvider(25972): at java.io.BufferedInputStream.streamClosed(BufferedInputStream.java:118)Miguel Lhttps://www.blogger.com/profile/06583896792390901959noreply@blogger.comtag:blogger.com,1999:blog-7119932468549495710.post-43714104423990675602014-02-13T10:46:35.441-05:002014-02-13T10:46:35.441-05:00Hi Hello!
Thanks for your tutorial. It's very...Hi Hello!<br /><br />Thanks for your tutorial. It's very important, since the original documentation is not very clear and some times apparently contradictory :-(<br /><br />I managed to install the whole thing (I think...) on Cordova Android but the app crashes after few seconds because, according to the log, it can't get a connection to the server. It shouldn't crash because of this, but this is another matter...<br /><br />I wonder if the pushServerURL is incorrect:<br /><br />https://aerogear-metalpush.rhcloud.com:8443/simplepush<br /><br />... or if there's another situation. The routine never reaches the success or error handlers.<br /><br />Any idea about this would be very useful.<br /> <br /><br />Thanks<br /><br />Miguel<br /><br />The code I use is this:<br /><br />var pushConfig = {<br /> senderID: "xxxxxx",<br /> pushServerURL: "https://aerogear-metalpush.rhcloud.com:8443/simplepush", <br /> variantID: "xxxxxx",<br /> variantSecret: "xxxxxxx"<br /> }<br /> <br /> try {<br /> push.register(successHandler, errorHandler, {"badge": "true", "sound": "true",<br /> "alert": "true", "ecb": "onNotification", pushConfig: pushConfig});<br /> <br /> } catch (err) {<br /> txt = "There was an error on this page.\n\n";<br /> txt += "Error description: " + err.message + "\n\n";<br /> alert(txt);<br /> <br /> }<br /><br /> function successHandler(result) {<br /> var respush = document.getElementById("pushst");<br /> respush.innerHTML = "Serviço de notificações: " + result;<br /> }<br /><br /> function errorHandler(error) {<br /> var respush = document.getElementById("pushst");<br /> respush.innerHTML = "Serviço de notificações: " +error; <br /> }<br /><br /><br />The log I get is this:<br /><br />02-13 15:10:45.420: E/AndroidRuntime(24758): FATAL EXCEPTION: AsyncTask #2<br />java.lang.RuntimeException: java.net.SocketTimeoutException: Read timed out<br />02-13 15:10:45.420: E/AndroidRuntime(24758): at org.jboss.aerogear.android.impl.http.HttpRestProvider.post(HttpRestProvider.java:158)<br /><br />02-13 15:10:45.420: E/AndroidRuntime(24758): at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:293)<br />02-13 15:10:45.420: E/AndroidRuntime(24758): at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:505)<br />02-13 15:10:45.420: E/AndroidRuntime(24758): at libcore.net.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:134)<br />02-13 15:10:45.420: E/AndroidRuntime(24758): at org.jboss.aerogear.android.impl.http.HttpRestProvider.getHeaderAndBody(HttpRestProvider.java:251)<br />02-13 15:10:45.420: E/AndroidRuntime(24758): at org.jboss.aerogear.android.impl.http.HttpRestProvider.post(HttpRestProvider.java:154)<br />02-13 15:10:45.420: E/AndroidRuntime(24758): ... 10 moreMiguel Lhttps://www.blogger.com/profile/06583896792390901959noreply@blogger.com