From edewit at redhat.com Tue Sep 1 02:44:15 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Tue, 1 Sep 2015 08:44:15 +0200 Subject: [Aerogear-users] cordova push plugin release Message-ID: I've create a release branch (release) for your testing pleasure with the cordova push plugin 2.0.3. 2 issues have been resolved there is now windows platform support and a fix in the android lib that broke the categories. If there aren't any issues reported I'll release this version -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150901/a8c8e4f2/attachment.html From edewit at redhat.com Tue Sep 1 05:26:39 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Tue, 1 Sep 2015 11:26:39 +0200 Subject: [Aerogear-users] crypto release Message-ID: Prepared a release branch of the crypto plugin it fixes the promise plugin dependency and updated the crypto libs for your testing pleasure if no issues are found I'll create a release -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150901/d0a5eaa8/attachment.html From fabio.turizo at gmail.com Wed Sep 2 16:06:09 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Wed, 02 Sep 2015 20:06:09 +0000 Subject: [Aerogear-users] Error registering for push notifications in iOS Message-ID: Greetings. Ia have an error when i try to register an user in a Cordova app to the Unified Push Server. The error callback in this code: *function registerPush(alias) {* * if(typeof push !== 'undefined'){* * console.log('Registering push notifications for: ' + alias);* * $.ajax({* * url: "push-config.json",* * dataType: "json"* * }).then(function (pushConfig) {* * pushConfig.alias = alias;* * push.register(onNotification, successHandler, errorHandler, pushConfig);* * function successHandler() {* * console.log('Succesfully registered to aerogear push!');* * }* * function errorHandler(message) {* * console.log('Error registering aerogear push: ' + message);* * }* * });* * }* *}* Gets called with a 'null' message. Do you have any suggestions to debug this issue further? I've tried re-issuing a new APN certiticate but it didn't work. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150902/1a51f8e7/attachment.html From edewit at redhat.com Thu Sep 3 02:07:24 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Thu, 3 Sep 2015 08:07:24 +0200 Subject: [Aerogear-users] Error registering for push notifications in iOS In-Reply-To: References: Message-ID: Hi Fabio, Can you have a look in the UPS logs? The device log might also provided some extra information. Running it from xcode you can see this log. Not being able to register can not be the cause of the certificate is not configured correctly, that will only prevent UPS from sending a message to the device. On Wed, Sep 2, 2015 at 10:06 PM, Fabio Turizo wrote: > Greetings. > > Ia have an error when i try to register an user in a Cordova app to the > Unified Push Server. The error callback in this code: > > *function registerPush(alias) {* > * if(typeof push !== 'undefined'){* > * console.log('Registering push notifications for: ' + alias);* > * $.ajax({* > * url: "push-config.json",* > * dataType: "json"* > * }).then(function (pushConfig) {* > * pushConfig.alias = alias;* > * push.register(onNotification, successHandler, errorHandler, > pushConfig);* > > * function successHandler() {* > * console.log('Succesfully registered to aerogear push!');* > * }* > > * function errorHandler(message) {* > * console.log('Error registering aerogear push: ' + > message);* > * }* > * });* > * }* > *}* > > Gets called with a 'null' message. Do you have any suggestions to debug > this issue further? I've tried re-issuing a new APN certiticate but it > didn't work. > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150903/5e191a98/attachment.html From edewit at redhat.com Thu Sep 3 05:47:29 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Thu, 3 Sep 2015 11:47:29 +0200 Subject: [Aerogear-users] Cordova push release 2.0.3 Message-ID: I've pushed the release button, again what has changed this release: Release 2.0.3 Bug AGCORDOVA-118 - Adding unifiedpush plugin to cordova project does not work Feature Request AGCORDOVA-109 - Support windows platform Plus updated the android library to version 2.2.2 where a bug was fixed for categories AGDROID-492 - Categories field not working also known as AGCORDOVA-112 Happy coding! -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150903/8d4f2a12/attachment.html From matzew at apache.org Thu Sep 3 06:34:14 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Thu, 3 Sep 2015 12:34:14 +0200 Subject: [Aerogear-users] [aerogear-dev] Cordova push release 2.0.3 In-Reply-To: References: Message-ID: yay! On Thu, Sep 3, 2015 at 11:47 AM, Erik Jan de Wit wrote: > I've pushed the release button, again what has changed this release: > > Release 2.0.3 > > > Bug > > AGCORDOVA-118 - Adding > unifiedpush plugin to cordova project does not work > Feature Request > > AGCORDOVA-109 - Support > windows platform > > Plus updated the android library to version 2.2.2 where a bug was fixed > for categories > AGDROID-492 - Categories > field not working > also known as AGCORDOVA-112 > > > Happy coding! > -- > Cheers, > Erik Jan > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150903/5ce2dd30/attachment-0001.html From nifs.arpegiuz at gmail.com Thu Sep 3 10:03:38 2015 From: nifs.arpegiuz at gmail.com (Naif) Date: Thu, 3 Sep 2015 07:03:38 -0700 (MST) Subject: [Aerogear-users] Android Native Login to Keycloak In-Reply-To: References: <1440772367594-219.post@n5.nabble.com> <1440805363803-221.post@n5.nabble.com> Message-ID: <1441289018590-229.post@n5.nabble.com> Thanks for the suggestion. I made the change to: urn:ietf:wg:oauth:2.0:oob, and, now it is working. Thank you very much. I was reading the Keycloak documentation, and i found: http://keycloak.github.io/docs/userguide/html/direct-access-grants.html In the warning frame was written the following: "It is even highly recommended that you use the browser to log in for native mobile applications!". So, at the end, i decided to use this approach. Thank you very much for your replies. -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Android-Native-Login-to-Keycloak-tp219p229.html Sent from the aerogear-users mailing list archive at Nabble.com. From nifs.arpegiuz at gmail.com Thu Sep 3 10:34:59 2015 From: nifs.arpegiuz at gmail.com (Naif) Date: Thu, 3 Sep 2015 07:34:59 -0700 (MST) Subject: [Aerogear-users] Android: How can i get user's roles from Keycloak(OAuth2 Endpoint)? Message-ID: <1441290899103-230.post@n5.nabble.com> Hi everyone I checked the aerogear android cookbook, and i found the 'ShootAndShare' demo, it has interesting code in the 'KeycloakHelper.java' with some utility methods. But, i would like to know, how can i get the roles for a registered keycloak user? Are the AuthorizationManager and AuthzModule the right classes for this task? Or, it is better to use another approach? Because, it would be necessary to retrieve more user information from Keycloak(i.e. user email, first name, etc) and to code a correct logout method. Any ideas? Thanks in advance. -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Android-How-can-i-get-user-s-roles-from-Keycloak-OAuth2-Endpoint-tp230.html Sent from the aerogear-users mailing list archive at Nabble.com. From supittma at redhat.com Thu Sep 3 11:55:00 2015 From: supittma at redhat.com (Summers Pittman) Date: Thu, 3 Sep 2015 11:55:00 -0400 Subject: [Aerogear-users] Android: How can i get user's roles from Keycloak(OAuth2 Endpoint)? In-Reply-To: <1441290899103-230.post@n5.nabble.com> References: <1441290899103-230.post@n5.nabble.com> Message-ID: On Thu, Sep 3, 2015 at 10:34 AM, Naif wrote: > Hi everyone > > I checked the aerogear android cookbook, and i found the 'ShootAndShare' > demo, it has interesting code in the 'KeycloakHelper.java' with some > utility > methods. But, i would like to know, how can i get the roles for a > registered > keycloak user? > > Are the AuthorizationManager and AuthzModule the right classes for this > task? Or, it is better to use another approach? Because, it would be > necessary to retrieve more user information from Keycloak(i.e. user email, > first name, etc) and to code a correct logout method. > > Any ideas? > The authz librares are mostly used to managing OAuth2 tokens and lifecycles. One could modify the classes in the oauth2 package to handle keycloak events. I would begin looking at Oauth2Session and Oauth2AuthzService. The session class would add properties available from KeyCloak and the OAuth2AuthzService class would fetch these properties as part of the login lifecycle. Everything else would probably remain relatively untouched. This sounds like an amazing opportunity for some refactoring or adding pluggability to the lifecycle. TL;DR; yes those are good interfaces to look at. > > Thanks in advance. > > > > > > -- > View this message in context: > http://aerogear-users.1116366.n5.nabble.com/Android-How-can-i-get-user-s-roles-from-Keycloak-OAuth2-Endpoint-tp230.html > Sent from the aerogear-users mailing list archive at Nabble.com. > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150903/1b1873e9/attachment.html From edewit at redhat.com Fri Sep 4 03:07:06 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Fri, 4 Sep 2015 09:07:06 +0200 Subject: [Aerogear-users] crypto release In-Reply-To: References: Message-ID: I've pushed the release button, again what has been fixed in this release: Bug - AGCORDOVA-117 - Crypto plugin has outdated dependency - AGCORDOVA-119 - promise plugin can not be found On Tue, Sep 1, 2015 at 11:26 AM, Erik Jan de Wit wrote: > Prepared a release branch of the crypto plugin it fixes the promise plugin > dependency and updated the crypto libs for your testing pleasure if no > issues are found I'll create a release > > -- > Cheers, > Erik Jan > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150904/472c015f/attachment.html From fabio.turizo at gmail.com Mon Sep 7 16:51:35 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Mon, 07 Sep 2015 20:51:35 +0000 Subject: [Aerogear-users] Error registering for push notifications in iOS In-Reply-To: References: Message-ID: Ok, sorry for answering this late but i had to get a Mac in order to do the right debug. Xcode log files don't give any info. What's more when I debug the application using Xcode, neither the success or error callback handlers are called. The UPS server log also doesn't show anything. Any idea what could be happening? El jue., 3 de sept. de 2015 a la(s) 1:07 a. m., Erik Jan de Wit < edewit at redhat.com> escribi?: > Hi Fabio, > > Can you have a look in the UPS logs? The device log might also provided > some extra information. Running it from xcode you can see this log. Not > being able to register can not be the cause of the certificate is not > configured correctly, that will only prevent UPS from sending a message to > the device. > > > On Wed, Sep 2, 2015 at 10:06 PM, Fabio Turizo > wrote: > >> Greetings. >> >> Ia have an error when i try to register an user in a Cordova app to the >> Unified Push Server. The error callback in this code: >> >> *function registerPush(alias) {* >> * if(typeof push !== 'undefined'){* >> * console.log('Registering push notifications for: ' + alias);* >> * $.ajax({* >> * url: "push-config.json",* >> * dataType: "json"* >> * }).then(function (pushConfig) {* >> * pushConfig.alias = alias;* >> * push.register(onNotification, successHandler, errorHandler, >> pushConfig);* >> >> * function successHandler() {* >> * console.log('Succesfully registered to aerogear push!');* >> * }* >> >> * function errorHandler(message) {* >> * console.log('Error registering aerogear push: ' + >> message);* >> * }* >> * });* >> * }* >> *}* >> >> Gets called with a 'null' message. Do you have any suggestions to debug >> this issue further? I've tried re-issuing a new APN certiticate but it >> didn't work. >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> > > > -- > Cheers, > Erik Jan > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150907/3533f162/attachment.html From fabio.turizo at gmail.com Mon Sep 7 17:16:55 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Mon, 07 Sep 2015 21:16:55 +0000 Subject: [Aerogear-users] Error registering for push notifications in iOS In-Reply-To: References: Message-ID: Hi again, Erik. I tried a sample proof of concept for iOS Notifications and they still didn't work. Created a new cordova app using the cordova create command, added *aerogear-cordova-push* and *cordova-console-plugin *and took the sample implementation code for the iOS variant in the UPS web admin. Launching the application trough Xcode onlye gets me a '*register*' message in the log and nothing more. Even the 'success' or 'error' messages in the callbacks aren't printed in the logs yet. Checking the UPs in the iOS variant, no installations ares shown. I tested this using Cordova 5.2.0. El lun., 7 de sept. de 2015 a la(s) 3:51 p. m., Fabio Turizo < fabio.turizo at gmail.com> escribi?: > > Ok, sorry for answering this late but i had to get a Mac in order to do > the right debug. Xcode log files don't give any info. What's more when I > debug the application using Xcode, neither the success or error callback > handlers are called. The UPS server log also doesn't show anything. Any > idea what could be happening? > > El jue., 3 de sept. de 2015 a la(s) 1:07 a. m., Erik Jan de Wit < > edewit at redhat.com> escribi?: > >> Hi Fabio, >> >> Can you have a look in the UPS logs? The device log might also provided >> some extra information. Running it from xcode you can see this log. Not >> being able to register can not be the cause of the certificate is not >> configured correctly, that will only prevent UPS from sending a message to >> the device. >> >> >> On Wed, Sep 2, 2015 at 10:06 PM, Fabio Turizo >> wrote: >> >>> Greetings. >>> >>> Ia have an error when i try to register an user in a Cordova app to the >>> Unified Push Server. The error callback in this code: >>> >>> *function registerPush(alias) {* >>> * if(typeof push !== 'undefined'){* >>> * console.log('Registering push notifications for: ' + alias);* >>> * $.ajax({* >>> * url: "push-config.json",* >>> * dataType: "json"* >>> * }).then(function (pushConfig) {* >>> * pushConfig.alias = alias;* >>> * push.register(onNotification, successHandler, errorHandler, >>> pushConfig);* >>> >>> * function successHandler() {* >>> * console.log('Succesfully registered to aerogear >>> push!');* >>> * }* >>> >>> * function errorHandler(message) {* >>> * console.log('Error registering aerogear push: ' + >>> message);* >>> * }* >>> * });* >>> * }* >>> *}* >>> >>> Gets called with a 'null' message. Do you have any suggestions to debug >>> this issue further? I've tried re-issuing a new APN certiticate but it >>> didn't work. >>> >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> >> >> >> -- >> Cheers, >> Erik Jan >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150907/a8fc2282/attachment-0001.html From scm.blanc at gmail.com Tue Sep 8 05:15:27 2015 From: scm.blanc at gmail.com (Sebastien Blanc) Date: Tue, 8 Sep 2015 11:15:27 +0200 Subject: [Aerogear-users] Staging of UPS 1.1.0.Final Message-ID: Hi team, I'm happy to announce that UPS 1.1.0 Final has been staged. Please test the staged release : https://repository.jboss.org/nexus/content/repositories/jboss_releases_staging_profile-6516 By the end of the week I'd like to press the button to release it to the wild. Sebi ps : the openshift update will follow -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150908/48d95285/attachment.html From matzew at apache.org Tue Sep 8 05:17:16 2015 From: matzew at apache.org (Matthias Wessendorf) Date: Tue, 8 Sep 2015 11:17:16 +0200 Subject: [Aerogear-users] [aerogear-dev] Staging of UPS 1.1.0.Final In-Reply-To: References: Message-ID: alright, thanks! I will do the OpenShift updates, based on the git tag On Tue, Sep 8, 2015 at 11:15 AM, Sebastien Blanc wrote: > Hi team, > > I'm happy to announce that UPS 1.1.0 Final has been staged. > > Please test the staged release : > > > https://repository.jboss.org/nexus/content/repositories/jboss_releases_staging_profile-6516 > > By the end of the week I'd like to press the button to release it to the > wild. > > Sebi > > ps : the openshift update will follow > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150908/f6cd6b0c/attachment.html From edewit at redhat.com Tue Sep 8 05:20:37 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Tue, 8 Sep 2015 11:20:37 +0200 Subject: [Aerogear-users] Error registering for push notifications in iOS In-Reply-To: References: Message-ID: That is really strange could you debug the plugin? Put a breakpoint here [1] and see if there is a channelId. Also can you fire up safari and attach a javascript debugger to the cordova webview to see if there are some javascript errors? [1] https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L86 On Mon, Sep 7, 2015 at 11:16 PM, Fabio Turizo wrote: > Hi again, Erik. > > I tried a sample proof of concept for iOS Notifications and they still > didn't work. Created a new cordova app using the cordova create command, > added *aerogear-cordova-push* and *cordova-console-plugin *and took the > sample implementation code for the iOS variant in the UPS web admin. > Launching the application trough Xcode onlye gets me a '*register*' > message in the log and nothing more. Even the 'success' or 'error' messages > in the callbacks aren't printed in the logs yet. Checking the UPs in the > iOS variant, no installations ares shown. > > I tested this using Cordova 5.2.0. > > El lun., 7 de sept. de 2015 a la(s) 3:51 p. m., Fabio Turizo < > fabio.turizo at gmail.com> escribi?: > >> >> Ok, sorry for answering this late but i had to get a Mac in order to do >> the right debug. Xcode log files don't give any info. What's more when I >> debug the application using Xcode, neither the success or error callback >> handlers are called. The UPS server log also doesn't show anything. Any >> idea what could be happening? >> >> El jue., 3 de sept. de 2015 a la(s) 1:07 a. m., Erik Jan de Wit < >> edewit at redhat.com> escribi?: >> >>> Hi Fabio, >>> >>> Can you have a look in the UPS logs? The device log might also provided >>> some extra information. Running it from xcode you can see this log. Not >>> being able to register can not be the cause of the certificate is not >>> configured correctly, that will only prevent UPS from sending a message to >>> the device. >>> >>> >>> On Wed, Sep 2, 2015 at 10:06 PM, Fabio Turizo >>> wrote: >>> >>>> Greetings. >>>> >>>> Ia have an error when i try to register an user in a Cordova app to the >>>> Unified Push Server. The error callback in this code: >>>> >>>> *function registerPush(alias) {* >>>> * if(typeof push !== 'undefined'){* >>>> * console.log('Registering push notifications for: ' + alias);* >>>> * $.ajax({* >>>> * url: "push-config.json",* >>>> * dataType: "json"* >>>> * }).then(function (pushConfig) {* >>>> * pushConfig.alias = alias;* >>>> * push.register(onNotification, successHandler, >>>> errorHandler, pushConfig);* >>>> >>>> * function successHandler() {* >>>> * console.log('Succesfully registered to aerogear >>>> push!');* >>>> * }* >>>> >>>> * function errorHandler(message) {* >>>> * console.log('Error registering aerogear push: ' + >>>> message);* >>>> * }* >>>> * });* >>>> * }* >>>> *}* >>>> >>>> Gets called with a 'null' message. Do you have any suggestions to debug >>>> this issue further? I've tried re-issuing a new APN certiticate but it >>>> didn't work. >>>> >>>> _______________________________________________ >>>> Aerogear-users mailing list >>>> Aerogear-users at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>> >>>> >>> >>> >>> -- >>> Cheers, >>> Erik Jan >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >> > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150908/70448d6c/attachment.html From fabio.turizo at gmail.com Tue Sep 8 11:19:09 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Tue, 08 Sep 2015 15:19:09 +0000 Subject: [Aerogear-users] Error registering for push notifications in iOS In-Reply-To: References: Message-ID: Okay, i put a breakpoint there but it's not stepped over by the debugger. I put a breakpoint at [2] and the debugger steps it over. In this point of the process there's a channelId assigned already, but in conclusion the didRegisterForRemoteNotificationsWithDeviceToken breakpoint is not getting called. I debugged the application using GapDebug as well, but no javascript errors appeared. [2] https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L 36 El mar., 8 de sept. de 2015 a la(s) 4:20 a. m., Erik Jan de Wit < edewit at redhat.com> escribi?: > That is really strange could you debug the plugin? Put a breakpoint > here [1] and see if there is a channelId. Also can you fire up safari and > attach a javascript debugger to the cordova webview to see if there are > some javascript errors? > > > [1] > https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L86 > > On Mon, Sep 7, 2015 at 11:16 PM, Fabio Turizo > wrote: > >> Hi again, Erik. >> >> I tried a sample proof of concept for iOS Notifications and they still >> didn't work. Created a new cordova app using the cordova create command, >> added *aerogear-cordova-push* and *cordova-console-plugin *and took the >> sample implementation code for the iOS variant in the UPS web admin. >> Launching the application trough Xcode onlye gets me a '*register*' >> message in the log and nothing more. Even the 'success' or 'error' messages >> in the callbacks aren't printed in the logs yet. Checking the UPs in the >> iOS variant, no installations ares shown. >> >> I tested this using Cordova 5.2.0. >> >> El lun., 7 de sept. de 2015 a la(s) 3:51 p. m., Fabio Turizo < >> fabio.turizo at gmail.com> escribi?: >> >>> >>> Ok, sorry for answering this late but i had to get a Mac in order to do >>> the right debug. Xcode log files don't give any info. What's more when I >>> debug the application using Xcode, neither the success or error callback >>> handlers are called. The UPS server log also doesn't show anything. Any >>> idea what could be happening? >>> >>> El jue., 3 de sept. de 2015 a la(s) 1:07 a. m., Erik Jan de Wit < >>> edewit at redhat.com> escribi?: >>> >>>> Hi Fabio, >>>> >>>> Can you have a look in the UPS logs? The device log might also provided >>>> some extra information. Running it from xcode you can see this log. Not >>>> being able to register can not be the cause of the certificate is not >>>> configured correctly, that will only prevent UPS from sending a message to >>>> the device. >>>> >>>> >>>> On Wed, Sep 2, 2015 at 10:06 PM, Fabio Turizo >>>> wrote: >>>> >>>>> Greetings. >>>>> >>>>> Ia have an error when i try to register an user in a Cordova app to >>>>> the Unified Push Server. The error callback in this code: >>>>> >>>>> *function registerPush(alias) {* >>>>> * if(typeof push !== 'undefined'){* >>>>> * console.log('Registering push notifications for: ' + alias);* >>>>> * $.ajax({* >>>>> * url: "push-config.json",* >>>>> * dataType: "json"* >>>>> * }).then(function (pushConfig) {* >>>>> * pushConfig.alias = alias;* >>>>> * push.register(onNotification, successHandler, >>>>> errorHandler, pushConfig);* >>>>> >>>>> * function successHandler() {* >>>>> * console.log('Succesfully registered to aerogear >>>>> push!');* >>>>> * }* >>>>> >>>>> * function errorHandler(message) {* >>>>> * console.log('Error registering aerogear push: ' + >>>>> message);* >>>>> * }* >>>>> * });* >>>>> * }* >>>>> *}* >>>>> >>>>> Gets called with a 'null' message. Do you have any suggestions to >>>>> debug this issue further? I've tried re-issuing a new APN certiticate but >>>>> it didn't work. >>>>> >>>>> _______________________________________________ >>>>> Aerogear-users mailing list >>>>> Aerogear-users at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>> >>>>> >>>> >>>> >>>> -- >>>> Cheers, >>>> Erik Jan >>>> _______________________________________________ >>>> Aerogear-users mailing list >>>> Aerogear-users at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>> >>> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> > > > -- > Cheers, > Erik Jan > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150908/af26eae8/attachment-0001.html From edewit at redhat.com Tue Sep 8 11:54:06 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Tue, 8 Sep 2015 17:54:06 +0200 Subject: [Aerogear-users] Error registering for push notifications in iOS In-Reply-To: References: Message-ID: So then [1] should have been called? Otherwise try to fix it using this doc [2] [1] https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L98 [2] https://aerogear.org/docs/unifiedpush/aerogear-push-ios/guides/#_question_apns_error On Tue, Sep 8, 2015 at 5:19 PM, Fabio Turizo wrote: > Okay, i put a breakpoint there but it's not stepped over by the debugger. > I put a breakpoint at [2] and the debugger steps it over. In this point of > the process there's a channelId assigned already, but in conclusion the didRegisterForRemoteNotificationsWithDeviceToken > breakpoint is not getting called. > > I debugged the application using GapDebug as well, but no javascript > errors appeared. > > [2] > https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L > > 36 > > El mar., 8 de sept. de 2015 a la(s) 4:20 a. m., Erik Jan de Wit < > edewit at redhat.com> escribi?: > >> That is really strange could you debug the plugin? Put a breakpoint >> here [1] and see if there is a channelId. Also can you fire up safari >> and attach a javascript debugger to the cordova webview to see if there are >> some javascript errors? >> >> >> [1] >> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L86 >> >> On Mon, Sep 7, 2015 at 11:16 PM, Fabio Turizo >> wrote: >> >>> Hi again, Erik. >>> >>> I tried a sample proof of concept for iOS Notifications and they still >>> didn't work. Created a new cordova app using the cordova create command, >>> added *aerogear-cordova-push* and *cordova-console-plugin *and took the >>> sample implementation code for the iOS variant in the UPS web admin. >>> Launching the application trough Xcode onlye gets me a '*register*' >>> message in the log and nothing more. Even the 'success' or 'error' messages >>> in the callbacks aren't printed in the logs yet. Checking the UPs in the >>> iOS variant, no installations ares shown. >>> >>> I tested this using Cordova 5.2.0. >>> >>> El lun., 7 de sept. de 2015 a la(s) 3:51 p. m., Fabio Turizo < >>> fabio.turizo at gmail.com> escribi?: >>> >>>> >>>> Ok, sorry for answering this late but i had to get a Mac in order to do >>>> the right debug. Xcode log files don't give any info. What's more when I >>>> debug the application using Xcode, neither the success or error callback >>>> handlers are called. The UPS server log also doesn't show anything. Any >>>> idea what could be happening? >>>> >>>> El jue., 3 de sept. de 2015 a la(s) 1:07 a. m., Erik Jan de Wit < >>>> edewit at redhat.com> escribi?: >>>> >>>>> Hi Fabio, >>>>> >>>>> Can you have a look in the UPS logs? The device log might also >>>>> provided some extra information. Running it from xcode you can see this >>>>> log. Not being able to register can not be the cause of the certificate is >>>>> not configured correctly, that will only prevent UPS from sending a message >>>>> to the device. >>>>> >>>>> >>>>> On Wed, Sep 2, 2015 at 10:06 PM, Fabio Turizo >>>>> wrote: >>>>> >>>>>> Greetings. >>>>>> >>>>>> Ia have an error when i try to register an user in a Cordova app to >>>>>> the Unified Push Server. The error callback in this code: >>>>>> >>>>>> *function registerPush(alias) {* >>>>>> * if(typeof push !== 'undefined'){* >>>>>> * console.log('Registering push notifications for: ' + alias);* >>>>>> * $.ajax({* >>>>>> * url: "push-config.json",* >>>>>> * dataType: "json"* >>>>>> * }).then(function (pushConfig) {* >>>>>> * pushConfig.alias = alias;* >>>>>> * push.register(onNotification, successHandler, >>>>>> errorHandler, pushConfig);* >>>>>> >>>>>> * function successHandler() {* >>>>>> * console.log('Succesfully registered to aerogear >>>>>> push!');* >>>>>> * }* >>>>>> >>>>>> * function errorHandler(message) {* >>>>>> * console.log('Error registering aerogear push: ' + >>>>>> message);* >>>>>> * }* >>>>>> * });* >>>>>> * }* >>>>>> *}* >>>>>> >>>>>> Gets called with a 'null' message. Do you have any suggestions to >>>>>> debug this issue further? I've tried re-issuing a new APN certiticate but >>>>>> it didn't work. >>>>>> >>>>>> _______________________________________________ >>>>>> Aerogear-users mailing list >>>>>> Aerogear-users at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Cheers, >>>>> Erik Jan >>>>> _______________________________________________ >>>>> Aerogear-users mailing list >>>>> Aerogear-users at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>> >>>> >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> >> >> >> -- >> Cheers, >> Erik Jan >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150908/dc61914e/attachment.html From fabio.turizo at gmail.com Tue Sep 8 12:35:50 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Tue, 08 Sep 2015 16:35:50 +0000 Subject: [Aerogear-users] Error registering for push notifications in iOS In-Reply-To: References: Message-ID: I followed the instructions at "*Question: My registration to UPS never happens*" and implememented the failurecallback: - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { // something went wrong, while talking to APNs // for now we simply log the error NSLog(@"APNs Error: %@", error); } But it's never called (using breakpoints) nor it prints anything to the log. So both callbacks (*didRegisterForRemoteNotificationsWithDeviceToken *and *didFailToRegisterForRemoteNotificationsWithError*) aren't getting called. El mar., 8 de sept. de 2015 a la(s) 10:54 a. m., Erik Jan de Wit < edewit at redhat.com> escribi?: > So then [1] should have been called? Otherwise try to fix it using this > doc [2] > > [1] > https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L98 > [2] > https://aerogear.org/docs/unifiedpush/aerogear-push-ios/guides/#_question_apns_error > > On Tue, Sep 8, 2015 at 5:19 PM, Fabio Turizo > wrote: > >> Okay, i put a breakpoint there but it's not stepped over by the debugger. >> I put a breakpoint at [2] and the debugger steps it over. In this point of >> the process there's a channelId assigned already, but in conclusion the didRegisterForRemoteNotificationsWithDeviceToken >> breakpoint is not getting called. >> >> I debugged the application using GapDebug as well, but no javascript >> errors appeared. >> >> [2] >> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L >> >> 36 >> >> El mar., 8 de sept. de 2015 a la(s) 4:20 a. m., Erik Jan de Wit < >> edewit at redhat.com> escribi?: >> >>> That is really strange could you debug the plugin? Put a breakpoint >>> here [1] and see if there is a channelId. Also can you fire up safari >>> and attach a javascript debugger to the cordova webview to see if there are >>> some javascript errors? >>> >>> >>> [1] >>> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L86 >>> >>> On Mon, Sep 7, 2015 at 11:16 PM, Fabio Turizo >>> wrote: >>> >>>> Hi again, Erik. >>>> >>>> I tried a sample proof of concept for iOS Notifications and they still >>>> didn't work. Created a new cordova app using the cordova create command, >>>> added *aerogear-cordova-push* and *cordova-console-plugin *and took >>>> the sample implementation code for the iOS variant in the UPS web admin. >>>> Launching the application trough Xcode onlye gets me a '*register*' >>>> message in the log and nothing more. Even the 'success' or 'error' messages >>>> in the callbacks aren't printed in the logs yet. Checking the UPs in the >>>> iOS variant, no installations ares shown. >>>> >>>> I tested this using Cordova 5.2.0. >>>> >>>> El lun., 7 de sept. de 2015 a la(s) 3:51 p. m., Fabio Turizo < >>>> fabio.turizo at gmail.com> escribi?: >>>> >>>>> >>>>> Ok, sorry for answering this late but i had to get a Mac in order to >>>>> do the right debug. Xcode log files don't give any info. What's more when I >>>>> debug the application using Xcode, neither the success or error callback >>>>> handlers are called. The UPS server log also doesn't show anything. Any >>>>> idea what could be happening? >>>>> >>>>> El jue., 3 de sept. de 2015 a la(s) 1:07 a. m., Erik Jan de Wit < >>>>> edewit at redhat.com> escribi?: >>>>> >>>>>> Hi Fabio, >>>>>> >>>>>> Can you have a look in the UPS logs? The device log might also >>>>>> provided some extra information. Running it from xcode you can see this >>>>>> log. Not being able to register can not be the cause of the certificate is >>>>>> not configured correctly, that will only prevent UPS from sending a message >>>>>> to the device. >>>>>> >>>>>> >>>>>> On Wed, Sep 2, 2015 at 10:06 PM, Fabio Turizo >>>>> > wrote: >>>>>> >>>>>>> Greetings. >>>>>>> >>>>>>> Ia have an error when i try to register an user in a Cordova app to >>>>>>> the Unified Push Server. The error callback in this code: >>>>>>> >>>>>>> *function registerPush(alias) {* >>>>>>> * if(typeof push !== 'undefined'){* >>>>>>> * console.log('Registering push notifications for: ' + >>>>>>> alias);* >>>>>>> * $.ajax({* >>>>>>> * url: "push-config.json",* >>>>>>> * dataType: "json"* >>>>>>> * }).then(function (pushConfig) {* >>>>>>> * pushConfig.alias = alias;* >>>>>>> * push.register(onNotification, successHandler, >>>>>>> errorHandler, pushConfig);* >>>>>>> >>>>>>> * function successHandler() {* >>>>>>> * console.log('Succesfully registered to aerogear >>>>>>> push!');* >>>>>>> * }* >>>>>>> >>>>>>> * function errorHandler(message) {* >>>>>>> * console.log('Error registering aerogear push: ' + >>>>>>> message);* >>>>>>> * }* >>>>>>> * });* >>>>>>> * }* >>>>>>> *}* >>>>>>> >>>>>>> Gets called with a 'null' message. Do you have any suggestions to >>>>>>> debug this issue further? I've tried re-issuing a new APN certiticate but >>>>>>> it didn't work. >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Aerogear-users mailing list >>>>>>> Aerogear-users at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Cheers, >>>>>> Erik Jan >>>>>> _______________________________________________ >>>>>> Aerogear-users mailing list >>>>>> Aerogear-users at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>> >>>>> >>>> _______________________________________________ >>>> Aerogear-users mailing list >>>> Aerogear-users at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>> >>>> >>> >>> >>> -- >>> Cheers, >>> Erik Jan >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> > > > -- > Cheers, > Erik Jan > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150908/de04b683/attachment-0001.html From edewit at redhat.com Tue Sep 8 13:56:19 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Tue, 8 Sep 2015 19:56:19 +0200 Subject: [Aerogear-users] Error registering for push notifications in iOS In-Reply-To: References: Message-ID: Do you get this: Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" in the log? To fix that: Your Bundle ID name should match with the Bundle ID as created on Apple?s developer portal. Please refer to Apple App ID and SSL certificate for APNs documentation for more details on configuration. On Tue, Sep 8, 2015 at 6:35 PM, Fabio Turizo wrote: > I followed the instructions at "*Question: My registration to UPS never > happens*" and implememented the failurecallback: > > - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { > // something went wrong, while talking to APNs > // for now we simply log the error > NSLog(@"APNs Error: %@", error); > } > > But it's never called (using breakpoints) nor it prints anything to the > log. So both callbacks (*didRegisterForRemoteNotificationsWithDeviceToken > *and *didFailToRegisterForRemoteNotificationsWithError*) aren't getting > called. > > El mar., 8 de sept. de 2015 a la(s) 10:54 a. m., Erik Jan de Wit < > edewit at redhat.com> escribi?: > >> So then [1] should have been called? Otherwise try to fix it using this >> doc [2] >> >> [1] >> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L98 >> [2] >> https://aerogear.org/docs/unifiedpush/aerogear-push-ios/guides/#_question_apns_error >> >> On Tue, Sep 8, 2015 at 5:19 PM, Fabio Turizo >> wrote: >> >>> Okay, i put a breakpoint there but it's not stepped over by the >>> debugger. I put a breakpoint at [2] and the debugger steps it over. In this >>> point of the process there's a channelId assigned already, but in >>> conclusion the didRegisterForRemoteNotificationsWithDeviceToken breakpoint >>> is not getting called. >>> >>> I debugged the application using GapDebug as well, but no javascript >>> errors appeared. >>> >>> [2] >>> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L >>> >>> 36 >>> >>> El mar., 8 de sept. de 2015 a la(s) 4:20 a. m., Erik Jan de Wit < >>> edewit at redhat.com> escribi?: >>> >>>> That is really strange could you debug the plugin? Put a breakpoint >>>> here [1] and see if there is a channelId. Also can you fire up safari >>>> and attach a javascript debugger to the cordova webview to see if there are >>>> some javascript errors? >>>> >>>> >>>> [1] >>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L86 >>>> >>>> On Mon, Sep 7, 2015 at 11:16 PM, Fabio Turizo >>>> wrote: >>>> >>>>> Hi again, Erik. >>>>> >>>>> I tried a sample proof of concept for iOS Notifications and they still >>>>> didn't work. Created a new cordova app using the cordova create command, >>>>> added *aerogear-cordova-push* and *cordova-console-plugin *and took >>>>> the sample implementation code for the iOS variant in the UPS web admin. >>>>> Launching the application trough Xcode onlye gets me a '*register*' >>>>> message in the log and nothing more. Even the 'success' or 'error' messages >>>>> in the callbacks aren't printed in the logs yet. Checking the UPs in the >>>>> iOS variant, no installations ares shown. >>>>> >>>>> I tested this using Cordova 5.2.0. >>>>> >>>>> El lun., 7 de sept. de 2015 a la(s) 3:51 p. m., Fabio Turizo < >>>>> fabio.turizo at gmail.com> escribi?: >>>>> >>>>>> >>>>>> Ok, sorry for answering this late but i had to get a Mac in order to >>>>>> do the right debug. Xcode log files don't give any info. What's more when I >>>>>> debug the application using Xcode, neither the success or error callback >>>>>> handlers are called. The UPS server log also doesn't show anything. Any >>>>>> idea what could be happening? >>>>>> >>>>>> El jue., 3 de sept. de 2015 a la(s) 1:07 a. m., Erik Jan de Wit < >>>>>> edewit at redhat.com> escribi?: >>>>>> >>>>>>> Hi Fabio, >>>>>>> >>>>>>> Can you have a look in the UPS logs? The device log might also >>>>>>> provided some extra information. Running it from xcode you can see this >>>>>>> log. Not being able to register can not be the cause of the certificate is >>>>>>> not configured correctly, that will only prevent UPS from sending a message >>>>>>> to the device. >>>>>>> >>>>>>> >>>>>>> On Wed, Sep 2, 2015 at 10:06 PM, Fabio Turizo < >>>>>>> fabio.turizo at gmail.com> wrote: >>>>>>> >>>>>>>> Greetings. >>>>>>>> >>>>>>>> Ia have an error when i try to register an user in a Cordova app to >>>>>>>> the Unified Push Server. The error callback in this code: >>>>>>>> >>>>>>>> *function registerPush(alias) {* >>>>>>>> * if(typeof push !== 'undefined'){* >>>>>>>> * console.log('Registering push notifications for: ' + >>>>>>>> alias);* >>>>>>>> * $.ajax({* >>>>>>>> * url: "push-config.json",* >>>>>>>> * dataType: "json"* >>>>>>>> * }).then(function (pushConfig) {* >>>>>>>> * pushConfig.alias = alias;* >>>>>>>> * push.register(onNotification, successHandler, >>>>>>>> errorHandler, pushConfig);* >>>>>>>> >>>>>>>> * function successHandler() {* >>>>>>>> * console.log('Succesfully registered to aerogear >>>>>>>> push!');* >>>>>>>> * }* >>>>>>>> >>>>>>>> * function errorHandler(message) {* >>>>>>>> * console.log('Error registering aerogear push: ' + >>>>>>>> message);* >>>>>>>> * }* >>>>>>>> * });* >>>>>>>> * }* >>>>>>>> *}* >>>>>>>> >>>>>>>> Gets called with a 'null' message. Do you have any suggestions to >>>>>>>> debug this issue further? I've tried re-issuing a new APN certiticate but >>>>>>>> it didn't work. >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Aerogear-users mailing list >>>>>>>> Aerogear-users at lists.jboss.org >>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Cheers, >>>>>>> Erik Jan >>>>>>> _______________________________________________ >>>>>>> Aerogear-users mailing list >>>>>>> Aerogear-users at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>> >>>>>> >>>>> _______________________________________________ >>>>> Aerogear-users mailing list >>>>> Aerogear-users at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>> >>>>> >>>> >>>> >>>> -- >>>> Cheers, >>>> Erik Jan >>>> _______________________________________________ >>>> Aerogear-users mailing list >>>> Aerogear-users at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>> >>> >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> >> >> >> -- >> Cheers, >> Erik Jan >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150908/0e744310/attachment.html From David.Walto at baystatehealth.org Wed Sep 9 17:34:30 2015 From: David.Walto at baystatehealth.org (Walto, David) Date: Wed, 9 Sep 2015 17:34:30 -0400 Subject: [Aerogear-users] AeroGear unified push notification Message-ID: <0BBC8B85145220449B53DE768FDA802A12A4D1B710@bhsexc12.bhs.org> Hi, I a new AeroGear unified push notification user. I am trying to create a simple push notification from a WebSphere java application. I have created a couple of push notification classes to test (below) and both version I get the error: SenderClient E Send did not succeed: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 64 I have the following jars for this application. [cid:image001.png at 01D0EB25.5E1F6EE0] [cid:image003.png at 01D0EB25.C89EC4F0] Any direction how to resolve this would be greatly appreciated. Thanks in advance. David Walto Senior Application Engineer | EMR Engineering and Integration Baystate Health | Information & Technology 1550 Main Street, Springfield, MA 01199 | p: 413-794-0627 | f: 413-794-5570 ---------------------------------------------------------------------- Please view our annual report at http://baystatehealth.org/annualreport CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please reply to the sender immediately or by telephone at 413-794-0000 and destroy all copies of this communication and any attachments. For further information regarding Baystate Health's privacy policy, please visit our Internet site at http://baystatehealth.org. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150909/6eb0cfa2/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 4448 bytes Desc: image001.png Url : http://lists.jboss.org/pipermail/aerogear-users/attachments/20150909/6eb0cfa2/attachment-0002.png -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 153854 bytes Desc: image003.png Url : http://lists.jboss.org/pipermail/aerogear-users/attachments/20150909/6eb0cfa2/attachment-0003.png From fabio.turizo at gmail.com Wed Sep 9 18:22:55 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Wed, 09 Sep 2015 22:22:55 +0000 Subject: [Aerogear-users] Error registering for push notifications in iOS In-Reply-To: References: Message-ID: No, the bundle ID and the Application ID are the same. Still no messages in the log though. However i borrowed 2 iphones (a 5 and a 6, both in iOS 8.4.1) and the test worked fine with it. This iphone i'm testing is an 5 with iOS 7.1.2 and it doesn't work. As I told you previously, the register method never finishes, be it a success or failure. Could this be an specific issue with the phone? Any settings i could tweak or other logs i could see? I'm worried this could happen in other phones as well El mar., 8 de sept. de 2015 a la(s) 12:57 p. m., Erik Jan de Wit < edewit at redhat.com> escribi?: > Do you get this: > > Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" > > in the log? To fix that: > > Your Bundle ID name should match with the Bundle ID as created on Apple?s > developer portal. Please refer to Apple App ID and SSL certificate for > APNs > > documentation for more details on configuration. > > On Tue, Sep 8, 2015 at 6:35 PM, Fabio Turizo > wrote: > >> I followed the instructions at "*Question: My registration to UPS never >> happens*" and implememented the failurecallback: >> >> - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { >> // something went wrong, while talking to APNs >> // for now we simply log the error >> NSLog(@"APNs Error: %@", error); >> } >> >> But it's never called (using breakpoints) nor it prints anything to the >> log. So both callbacks (*didRegisterForRemoteNotificationsWithDeviceToken >> *and *didFailToRegisterForRemoteNotificationsWithError*) aren't getting >> called. >> >> El mar., 8 de sept. de 2015 a la(s) 10:54 a. m., Erik Jan de Wit < >> edewit at redhat.com> escribi?: >> >>> So then [1] should have been called? Otherwise try to fix it using this >>> doc [2] >>> >>> [1] >>> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L98 >>> [2] >>> https://aerogear.org/docs/unifiedpush/aerogear-push-ios/guides/#_question_apns_error >>> >>> On Tue, Sep 8, 2015 at 5:19 PM, Fabio Turizo >>> wrote: >>> >>>> Okay, i put a breakpoint there but it's not stepped over by the >>>> debugger. I put a breakpoint at [2] and the debugger steps it over. In this >>>> point of the process there's a channelId assigned already, but in >>>> conclusion the didRegisterForRemoteNotificationsWithDeviceToken breakpoint >>>> is not getting called. >>>> >>>> I debugged the application using GapDebug as well, but no javascript >>>> errors appeared. >>>> >>>> [2] >>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L >>>> >>>> 36 >>>> >>>> El mar., 8 de sept. de 2015 a la(s) 4:20 a. m., Erik Jan de Wit < >>>> edewit at redhat.com> escribi?: >>>> >>>>> That is really strange could you debug the plugin? Put a breakpoint >>>>> here [1] and see if there is a channelId. Also can you fire up safari >>>>> and attach a javascript debugger to the cordova webview to see if there are >>>>> some javascript errors? >>>>> >>>>> >>>>> [1] >>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L86 >>>>> >>>>> On Mon, Sep 7, 2015 at 11:16 PM, Fabio Turizo >>>>> wrote: >>>>> >>>>>> Hi again, Erik. >>>>>> >>>>>> I tried a sample proof of concept for iOS Notifications and they >>>>>> still didn't work. Created a new cordova app using the cordova create >>>>>> command, added *aerogear-cordova-push* and *cordova-console-plugin *and >>>>>> took the sample implementation code for the iOS variant in the UPS web >>>>>> admin. Launching the application trough Xcode onlye gets me a ' >>>>>> *register*' message in the log and nothing more. Even the 'success' >>>>>> or 'error' messages in the callbacks aren't printed in the logs yet. >>>>>> Checking the UPs in the iOS variant, no installations ares shown. >>>>>> >>>>>> I tested this using Cordova 5.2.0. >>>>>> >>>>>> El lun., 7 de sept. de 2015 a la(s) 3:51 p. m., Fabio Turizo < >>>>>> fabio.turizo at gmail.com> escribi?: >>>>>> >>>>>>> >>>>>>> Ok, sorry for answering this late but i had to get a Mac in order to >>>>>>> do the right debug. Xcode log files don't give any info. What's more when I >>>>>>> debug the application using Xcode, neither the success or error callback >>>>>>> handlers are called. The UPS server log also doesn't show anything. Any >>>>>>> idea what could be happening? >>>>>>> >>>>>>> El jue., 3 de sept. de 2015 a la(s) 1:07 a. m., Erik Jan de Wit < >>>>>>> edewit at redhat.com> escribi?: >>>>>>> >>>>>>>> Hi Fabio, >>>>>>>> >>>>>>>> Can you have a look in the UPS logs? The device log might also >>>>>>>> provided some extra information. Running it from xcode you can see this >>>>>>>> log. Not being able to register can not be the cause of the certificate is >>>>>>>> not configured correctly, that will only prevent UPS from sending a message >>>>>>>> to the device. >>>>>>>> >>>>>>>> >>>>>>>> On Wed, Sep 2, 2015 at 10:06 PM, Fabio Turizo < >>>>>>>> fabio.turizo at gmail.com> wrote: >>>>>>>> >>>>>>>>> Greetings. >>>>>>>>> >>>>>>>>> Ia have an error when i try to register an user in a Cordova app >>>>>>>>> to the Unified Push Server. The error callback in this code: >>>>>>>>> >>>>>>>>> *function registerPush(alias) {* >>>>>>>>> * if(typeof push !== 'undefined'){* >>>>>>>>> * console.log('Registering push notifications for: ' + >>>>>>>>> alias);* >>>>>>>>> * $.ajax({* >>>>>>>>> * url: "push-config.json",* >>>>>>>>> * dataType: "json"* >>>>>>>>> * }).then(function (pushConfig) {* >>>>>>>>> * pushConfig.alias = alias;* >>>>>>>>> * push.register(onNotification, successHandler, >>>>>>>>> errorHandler, pushConfig);* >>>>>>>>> >>>>>>>>> * function successHandler() {* >>>>>>>>> * console.log('Succesfully registered to aerogear >>>>>>>>> push!');* >>>>>>>>> * }* >>>>>>>>> >>>>>>>>> * function errorHandler(message) {* >>>>>>>>> * console.log('Error registering aerogear push: ' + >>>>>>>>> message);* >>>>>>>>> * }* >>>>>>>>> * });* >>>>>>>>> * }* >>>>>>>>> *}* >>>>>>>>> >>>>>>>>> Gets called with a 'null' message. Do you have any suggestions to >>>>>>>>> debug this issue further? I've tried re-issuing a new APN certiticate but >>>>>>>>> it didn't work. >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Aerogear-users mailing list >>>>>>>>> Aerogear-users at lists.jboss.org >>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Cheers, >>>>>>>> Erik Jan >>>>>>>> _______________________________________________ >>>>>>>> Aerogear-users mailing list >>>>>>>> Aerogear-users at lists.jboss.org >>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>>> Aerogear-users mailing list >>>>>> Aerogear-users at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Cheers, >>>>> Erik Jan >>>>> _______________________________________________ >>>>> Aerogear-users mailing list >>>>> Aerogear-users at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>> >>>> >>>> _______________________________________________ >>>> Aerogear-users mailing list >>>> Aerogear-users at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>> >>>> >>> >>> >>> -- >>> Cheers, >>> Erik Jan >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> > > > -- > Cheers, > Erik Jan > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150909/ffdd1874/attachment.html From edewit at redhat.com Thu Sep 10 03:47:36 2015 From: edewit at redhat.com (Erik Jan de Wit) Date: Thu, 10 Sep 2015 09:47:36 +0200 Subject: [Aerogear-users] AeroGear unified push notification In-Reply-To: <0BBC8B85145220449B53DE768FDA802A12A4D1B710@bhsexc12.bhs.org> References: <0BBC8B85145220449B53DE768FDA802A12A4D1B710@bhsexc12.bhs.org> Message-ID: Hi David, Your code looks good, is that the complete stack trace? Could you also have a look on the server side and post the log from there? What version of UPS are you using? On Wed, Sep 9, 2015 at 11:34 PM, Walto, David < David.Walto at baystatehealth.org> wrote: > Hi, I a new AeroGear unified push notification user. I am trying to > create a simple push notification from a WebSphere java application. > > > > I have created a couple of push notification classes to test (below) and > both version I get the error: > > SenderClient E Send did not succeed: > *java.lang.ArrayIndexOutOfBoundsException*: Array index out of range: 64 > > I have the following jars for this application. > > > > > > Any direction how to resolve this would be greatly appreciated. > > > > Thanks in advance. > > > > *David Walto* > > *Senior Application Engineer | EMR Engineering and Integration* > > *Baystate Health | Information & Technology* > > 1550 Main Street, Springfield, MA 01199 | p: 413-794-0627 | f: > 413-794-5570 > > > ------------------------------ > Please view our annual report at http://baystatehealth.org/annualreport > > > CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may > contain confidential and privileged information for the use of the > designated recipients named above. If you are not the intended recipient, > you are hereby notified that you have received this communication in error > and that any review, disclosure, dissemination, distribution or copying of > it or its contents is prohibited. If you have received this communication > in error, please reply to the sender immediately or by telephone at > 413-794-0000 and destroy all copies of this communication and any > attachments. For further information regarding Baystate Health's privacy > policy, please visit our Internet site at http://baystatehealth.org. > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150910/839163ac/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 4448 bytes Desc: not available Url : http://lists.jboss.org/pipermail/aerogear-users/attachments/20150910/839163ac/attachment-0002.png -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 153854 bytes Desc: not available Url : http://lists.jboss.org/pipermail/aerogear-users/attachments/20150910/839163ac/attachment-0003.png From corinnekrych at gmail.com Thu Sep 10 03:49:26 2015 From: corinnekrych at gmail.com (Corinne Krych) Date: Thu, 10 Sep 2015 09:49:26 +0200 Subject: [Aerogear-users] Error registering for push notifications in iOS In-Reply-To: References: Message-ID: hello Fabio So to sum up, you managed iOS8+ device but the iOS7 device does not get registered. Between iOS7 and iOS8 registering to remote notification has changed. Could you try to do a breakpoint here [1] and make sure you're entering the iOS7 block ([2] or [3] depending which Xcode version you used). ++ Corinne [1] https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L46-L57 [2] https://github.com/jboss-mobile/unified-push-helloworld/blob/master/ios-objc/HelloWorld/AGAppDelegate.m#L33 [3] https://github.com/jboss-mobile/unified-push-helloworld/blob/master/ios-objc/HelloWorld/AGAppDelegate.m#L37 On 10 September 2015 at 00:22, Fabio Turizo wrote: > No, the bundle ID and the Application ID are the same. Still no messages > in the log though. However i borrowed 2 iphones (a 5 and a 6, both in iOS > 8.4.1) and the test worked fine with it. This iphone i'm testing is an 5 > with iOS 7.1.2 and it doesn't work. As I told you previously, the register > method never finishes, be it a success or failure. Could this be an > specific issue with the phone? Any settings i could tweak or other logs i > could see? I'm worried this could happen in other phones as well > > El mar., 8 de sept. de 2015 a la(s) 12:57 p. m., Erik Jan de Wit < > edewit at redhat.com> escribi?: > >> Do you get this: >> >> Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" >> >> in the log? To fix that: >> >> Your Bundle ID name should match with the Bundle ID as created on Apple?s >> developer portal. Please refer to Apple App ID and SSL certificate for >> APNs >> >> documentation for more details on configuration. >> >> On Tue, Sep 8, 2015 at 6:35 PM, Fabio Turizo >> wrote: >> >>> I followed the instructions at "*Question: My registration to UPS never >>> happens*" and implememented the failurecallback: >>> >>> - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { >>> // something went wrong, while talking to APNs >>> // for now we simply log the error >>> NSLog(@"APNs Error: %@", error); >>> } >>> >>> But it's never called (using breakpoints) nor it prints anything to the >>> log. So both callbacks (*didRegisterForRemoteNotificationsWithDeviceToken >>> *and *didFailToRegisterForRemoteNotificationsWithError*) aren't >>> getting called. >>> >>> El mar., 8 de sept. de 2015 a la(s) 10:54 a. m., Erik Jan de Wit < >>> edewit at redhat.com> escribi?: >>> >>>> So then [1] should have been called? Otherwise try to fix it using this >>>> doc [2] >>>> >>>> [1] >>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L98 >>>> [2] >>>> https://aerogear.org/docs/unifiedpush/aerogear-push-ios/guides/#_question_apns_error >>>> >>>> On Tue, Sep 8, 2015 at 5:19 PM, Fabio Turizo >>>> wrote: >>>> >>>>> Okay, i put a breakpoint there but it's not stepped over by the >>>>> debugger. I put a breakpoint at [2] and the debugger steps it over. In this >>>>> point of the process there's a channelId assigned already, but in >>>>> conclusion the didRegisterForRemoteNotificationsWithDeviceToken breakpoint >>>>> is not getting called. >>>>> >>>>> I debugged the application using GapDebug as well, but no javascript >>>>> errors appeared. >>>>> >>>>> [2] >>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L >>>>> >>>>> 36 >>>>> >>>>> El mar., 8 de sept. de 2015 a la(s) 4:20 a. m., Erik Jan de Wit < >>>>> edewit at redhat.com> escribi?: >>>>> >>>>>> That is really strange could you debug the plugin? Put a breakpoint >>>>>> here [1] and see if there is a channelId. Also can you fire up >>>>>> safari and attach a javascript debugger to the cordova webview to see if >>>>>> there are some javascript errors? >>>>>> >>>>>> >>>>>> [1] >>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L86 >>>>>> >>>>>> On Mon, Sep 7, 2015 at 11:16 PM, Fabio Turizo >>>>> > wrote: >>>>>> >>>>>>> Hi again, Erik. >>>>>>> >>>>>>> I tried a sample proof of concept for iOS Notifications and they >>>>>>> still didn't work. Created a new cordova app using the cordova create >>>>>>> command, added *aerogear-cordova-push* and *cordova-console-plugin *and >>>>>>> took the sample implementation code for the iOS variant in the UPS web >>>>>>> admin. Launching the application trough Xcode onlye gets me a ' >>>>>>> *register*' message in the log and nothing more. Even the 'success' >>>>>>> or 'error' messages in the callbacks aren't printed in the logs yet. >>>>>>> Checking the UPs in the iOS variant, no installations ares shown. >>>>>>> >>>>>>> I tested this using Cordova 5.2.0. >>>>>>> >>>>>>> El lun., 7 de sept. de 2015 a la(s) 3:51 p. m., Fabio Turizo < >>>>>>> fabio.turizo at gmail.com> escribi?: >>>>>>> >>>>>>>> >>>>>>>> Ok, sorry for answering this late but i had to get a Mac in order >>>>>>>> to do the right debug. Xcode log files don't give any info. What's more >>>>>>>> when I debug the application using Xcode, neither the success or error >>>>>>>> callback handlers are called. The UPS server log also doesn't show >>>>>>>> anything. Any idea what could be happening? >>>>>>>> >>>>>>>> El jue., 3 de sept. de 2015 a la(s) 1:07 a. m., Erik Jan de Wit < >>>>>>>> edewit at redhat.com> escribi?: >>>>>>>> >>>>>>>>> Hi Fabio, >>>>>>>>> >>>>>>>>> Can you have a look in the UPS logs? The device log might also >>>>>>>>> provided some extra information. Running it from xcode you can see this >>>>>>>>> log. Not being able to register can not be the cause of the certificate is >>>>>>>>> not configured correctly, that will only prevent UPS from sending a message >>>>>>>>> to the device. >>>>>>>>> >>>>>>>>> >>>>>>>>> On Wed, Sep 2, 2015 at 10:06 PM, Fabio Turizo < >>>>>>>>> fabio.turizo at gmail.com> wrote: >>>>>>>>> >>>>>>>>>> Greetings. >>>>>>>>>> >>>>>>>>>> Ia have an error when i try to register an user in a Cordova app >>>>>>>>>> to the Unified Push Server. The error callback in this code: >>>>>>>>>> >>>>>>>>>> *function registerPush(alias) {* >>>>>>>>>> * if(typeof push !== 'undefined'){* >>>>>>>>>> * console.log('Registering push notifications for: ' + >>>>>>>>>> alias);* >>>>>>>>>> * $.ajax({* >>>>>>>>>> * url: "push-config.json",* >>>>>>>>>> * dataType: "json"* >>>>>>>>>> * }).then(function (pushConfig) {* >>>>>>>>>> * pushConfig.alias = alias;* >>>>>>>>>> * push.register(onNotification, successHandler, >>>>>>>>>> errorHandler, pushConfig);* >>>>>>>>>> >>>>>>>>>> * function successHandler() {* >>>>>>>>>> * console.log('Succesfully registered to aerogear >>>>>>>>>> push!');* >>>>>>>>>> * }* >>>>>>>>>> >>>>>>>>>> * function errorHandler(message) {* >>>>>>>>>> * console.log('Error registering aerogear push: ' >>>>>>>>>> + message);* >>>>>>>>>> * }* >>>>>>>>>> * });* >>>>>>>>>> * }* >>>>>>>>>> *}* >>>>>>>>>> >>>>>>>>>> Gets called with a 'null' message. Do you have any suggestions to >>>>>>>>>> debug this issue further? I've tried re-issuing a new APN certiticate but >>>>>>>>>> it didn't work. >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> Aerogear-users mailing list >>>>>>>>>> Aerogear-users at lists.jboss.org >>>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Cheers, >>>>>>>>> Erik Jan >>>>>>>>> _______________________________________________ >>>>>>>>> Aerogear-users mailing list >>>>>>>>> Aerogear-users at lists.jboss.org >>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>>>> >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> Aerogear-users mailing list >>>>>>> Aerogear-users at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Cheers, >>>>>> Erik Jan >>>>>> _______________________________________________ >>>>>> Aerogear-users mailing list >>>>>> Aerogear-users at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Aerogear-users mailing list >>>>> Aerogear-users at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>> >>>>> >>>> >>>> >>>> -- >>>> Cheers, >>>> Erik Jan >>>> _______________________________________________ >>>> Aerogear-users mailing list >>>> Aerogear-users at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>> >>> >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> >> >> >> -- >> Cheers, >> Erik Jan >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150910/ba23d89c/attachment-0001.html From David.Walto at baystatehealth.org Thu Sep 10 06:30:01 2015 From: David.Walto at baystatehealth.org (Walto, David) Date: Thu, 10 Sep 2015 06:30:01 -0400 Subject: [Aerogear-users] AeroGear unified push notification In-Reply-To: References: <0BBC8B85145220449B53DE768FDA802A12A4D1B710@bhsexc12.bhs.org> Message-ID: <0BBC8B85145220449B53DE768FDA802A12A4D1B71D@bhsexc12.bhs.org> That is the complete trace in the error logs: [9/10/15 6:20:48:934 EDT] 0000007c ServletWrappe I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [BHAppStoreEAR] [/BHAppStore] [/menu.jsp]: Initialization successful. [9/10/15 6:20:56:281 EDT] 0000007c ServletWrappe I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [BHAppStoreEAR] [/BHAppStore] [/sendMsg.jsp]: Initialization successful. [9/10/15 6:20:57:186 EDT] 0000007c SenderClient E Send did not succeed: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 64 We are using JBoss Unified Push Server 1.0.0.Beta2, MySQL 5.5. I am open to other versions if there is a better one to use. Thanks, David Walto Senior Application Engineer | EMR Engineering and Integration Baystate Health | Information & Technology 1550 Main Street, Springfield, MA 01199 | p: 413-794-0627 | f: 413-794-5570 From: aerogear-users-bounces at lists.jboss.org [mailto:aerogear-users-bounces at lists.jboss.org] On Behalf Of Erik Jan de Wit Sent: Thursday, September 10, 2015 3:48 AM To: aerogear-users at lists.jboss.org Subject: Re: [Aerogear-users] AeroGear unified push notification Hi David, Your code looks good, is that the complete stack trace? Could you also have a look on the server side and post the log from there? What version of UPS are you using? On Wed, Sep 9, 2015 at 11:34 PM, Walto, David > wrote: Hi, I a new AeroGear unified push notification user. I am trying to create a simple push notification from a WebSphere java application. I have created a couple of push notification classes to test (below) and both version I get the error: SenderClient E Send did not succeed: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 64 I have the following jars for this application. [cid:image001.png at 01D0EB91.814BACF0] [cid:image002.png at 01D0EB91.814BACF0] Any direction how to resolve this would be greatly appreciated. Thanks in advance. David Walto Senior Application Engineer | EMR Engineering and Integration Baystate Health | Information & Technology 1550 Main Street, Springfield, MA 01199 | p: 413-794-0627 | f: 413-794-5570 ________________________________ Please view our annual report at http://baystatehealth.org/annualreport CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please reply to the sender immediately or by telephone at 413-794-0000 and destroy all copies of this communication and any attachments. For further information regarding Baystate Health's privacy policy, please visit our Internet site at http://baystatehealth.org. _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Cheers, Erik Jan ---------------------------------------------------------------------- Please view our annual report at http://baystatehealth.org/annualreport CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please reply to the sender immediately or by telephone at 413-794-0000 and destroy all copies of this communication and any attachments. For further information regarding Baystate Health's privacy policy, please visit our Internet site at http://baystatehealth.org. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150910/c324f788/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 4448 bytes Desc: image001.png Url : http://lists.jboss.org/pipermail/aerogear-users/attachments/20150910/c324f788/attachment-0002.png -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 153854 bytes Desc: image002.png Url : http://lists.jboss.org/pipermail/aerogear-users/attachments/20150910/c324f788/attachment-0003.png From fabio.turizo at gmail.com Thu Sep 10 12:59:23 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Thu, 10 Sep 2015 16:59:23 +0000 Subject: [Aerogear-users] Error registering for push notifications in iOS In-Reply-To: References: Message-ID: Well, i debugged it and it's entering the [3] branch. A colleague suggested to reset the factory settings for the phone, since a bit ago he did some testing and the push notifications worked as intended. I reset the phone to factory settings, tried again the sample application and the register method finished, got the success message in the console, and did a small notification test and worked well. Debugging the code i noticed that still entered the [3] branch. Still, quite weird that the phone didn't work until i resetted the configuration. Any idea if some internal configuration data could got stuck? El jue., 10 de sept. de 2015 a la(s) 2:49 a. m., Corinne Krych < corinnekrych at gmail.com> escribi?: > hello Fabio > > So to sum up, you managed iOS8+ device but the iOS7 device does not get > registered. > Between iOS7 and iOS8 registering to remote notification has changed. > Could you try to do a breakpoint here [1] and make sure you're entering > the iOS7 block ([2] or [3] depending which Xcode version you used). > > ++ > Corinne > [1] > https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L46-L57 > [2] > https://github.com/jboss-mobile/unified-push-helloworld/blob/master/ios-objc/HelloWorld/AGAppDelegate.m#L33 > [3] > https://github.com/jboss-mobile/unified-push-helloworld/blob/master/ios-objc/HelloWorld/AGAppDelegate.m#L37 > > On 10 September 2015 at 00:22, Fabio Turizo > wrote: > >> No, the bundle ID and the Application ID are the same. Still no messages >> in the log though. However i borrowed 2 iphones (a 5 and a 6, both in iOS >> 8.4.1) and the test worked fine with it. This iphone i'm testing is an 5 >> with iOS 7.1.2 and it doesn't work. As I told you previously, the register >> method never finishes, be it a success or failure. Could this be an >> specific issue with the phone? Any settings i could tweak or other logs i >> could see? I'm worried this could happen in other phones as well >> >> El mar., 8 de sept. de 2015 a la(s) 12:57 p. m., Erik Jan de Wit < >> edewit at redhat.com> escribi?: >> >>> Do you get this: >>> >>> Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" >>> >>> in the log? To fix that: >>> >>> Your Bundle ID name should match with the Bundle ID as created on >>> Apple?s developer portal. Please refer to Apple App ID and SSL >>> certificate for APNs >>> >>> documentation for more details on configuration. >>> >>> On Tue, Sep 8, 2015 at 6:35 PM, Fabio Turizo >>> wrote: >>> >>>> I followed the instructions at "*Question: My registration to UPS >>>> never happens*" and implememented the failurecallback: >>>> >>>> - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { >>>> // something went wrong, while talking to APNs >>>> // for now we simply log the error >>>> NSLog(@"APNs Error: %@", error); >>>> } >>>> >>>> But it's never called (using breakpoints) nor it prints anything to the >>>> log. So both callbacks (*didRegisterForRemoteNotificationsWithDeviceToken >>>> *and *didFailToRegisterForRemoteNotificationsWithError*) aren't >>>> getting called. >>>> >>>> El mar., 8 de sept. de 2015 a la(s) 10:54 a. m., Erik Jan de Wit < >>>> edewit at redhat.com> escribi?: >>>> >>>>> So then [1] should have been called? Otherwise try to fix it using >>>>> this doc [2] >>>>> >>>>> [1] >>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L98 >>>>> [2] >>>>> https://aerogear.org/docs/unifiedpush/aerogear-push-ios/guides/#_question_apns_error >>>>> >>>>> On Tue, Sep 8, 2015 at 5:19 PM, Fabio Turizo >>>>> wrote: >>>>> >>>>>> Okay, i put a breakpoint there but it's not stepped over by the >>>>>> debugger. I put a breakpoint at [2] and the debugger steps it over. In this >>>>>> point of the process there's a channelId assigned already, but in >>>>>> conclusion the didRegisterForRemoteNotificationsWithDeviceToken breakpoint >>>>>> is not getting called. >>>>>> >>>>>> I debugged the application using GapDebug as well, but no javascript >>>>>> errors appeared. >>>>>> >>>>>> [2] >>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L >>>>>> >>>>>> 36 >>>>>> >>>>>> El mar., 8 de sept. de 2015 a la(s) 4:20 a. m., Erik Jan de Wit < >>>>>> edewit at redhat.com> escribi?: >>>>>> >>>>>>> That is really strange could you debug the plugin? Put a breakpoint >>>>>>> here [1] and see if there is a channelId. Also can you fire up >>>>>>> safari and attach a javascript debugger to the cordova webview to see if >>>>>>> there are some javascript errors? >>>>>>> >>>>>>> >>>>>>> [1] >>>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L86 >>>>>>> >>>>>>> On Mon, Sep 7, 2015 at 11:16 PM, Fabio Turizo < >>>>>>> fabio.turizo at gmail.com> wrote: >>>>>>> >>>>>>>> Hi again, Erik. >>>>>>>> >>>>>>>> I tried a sample proof of concept for iOS Notifications and they >>>>>>>> still didn't work. Created a new cordova app using the cordova create >>>>>>>> command, added *aerogear-cordova-push* and *cordova-console-plugin >>>>>>>> *and took the sample implementation code for the iOS variant in >>>>>>>> the UPS web admin. Launching the application trough Xcode onlye gets me a ' >>>>>>>> *register*' message in the log and nothing more. Even the >>>>>>>> 'success' or 'error' messages in the callbacks aren't printed in the logs >>>>>>>> yet. Checking the UPs in the iOS variant, no installations ares shown. >>>>>>>> >>>>>>>> I tested this using Cordova 5.2.0. >>>>>>>> >>>>>>>> El lun., 7 de sept. de 2015 a la(s) 3:51 p. m., Fabio Turizo < >>>>>>>> fabio.turizo at gmail.com> escribi?: >>>>>>>> >>>>>>>>> >>>>>>>>> Ok, sorry for answering this late but i had to get a Mac in order >>>>>>>>> to do the right debug. Xcode log files don't give any info. What's more >>>>>>>>> when I debug the application using Xcode, neither the success or error >>>>>>>>> callback handlers are called. The UPS server log also doesn't show >>>>>>>>> anything. Any idea what could be happening? >>>>>>>>> >>>>>>>>> El jue., 3 de sept. de 2015 a la(s) 1:07 a. m., Erik Jan de Wit < >>>>>>>>> edewit at redhat.com> escribi?: >>>>>>>>> >>>>>>>>>> Hi Fabio, >>>>>>>>>> >>>>>>>>>> Can you have a look in the UPS logs? The device log might also >>>>>>>>>> provided some extra information. Running it from xcode you can see this >>>>>>>>>> log. Not being able to register can not be the cause of the certificate is >>>>>>>>>> not configured correctly, that will only prevent UPS from sending a message >>>>>>>>>> to the device. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Wed, Sep 2, 2015 at 10:06 PM, Fabio Turizo < >>>>>>>>>> fabio.turizo at gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> Greetings. >>>>>>>>>>> >>>>>>>>>>> Ia have an error when i try to register an user in a Cordova app >>>>>>>>>>> to the Unified Push Server. The error callback in this code: >>>>>>>>>>> >>>>>>>>>>> *function registerPush(alias) {* >>>>>>>>>>> * if(typeof push !== 'undefined'){* >>>>>>>>>>> * console.log('Registering push notifications for: ' + >>>>>>>>>>> alias);* >>>>>>>>>>> * $.ajax({* >>>>>>>>>>> * url: "push-config.json",* >>>>>>>>>>> * dataType: "json"* >>>>>>>>>>> * }).then(function (pushConfig) {* >>>>>>>>>>> * pushConfig.alias = alias;* >>>>>>>>>>> * push.register(onNotification, successHandler, >>>>>>>>>>> errorHandler, pushConfig);* >>>>>>>>>>> >>>>>>>>>>> * function successHandler() {* >>>>>>>>>>> * console.log('Succesfully registered to aerogear >>>>>>>>>>> push!');* >>>>>>>>>>> * }* >>>>>>>>>>> >>>>>>>>>>> * function errorHandler(message) {* >>>>>>>>>>> * console.log('Error registering aerogear push: ' >>>>>>>>>>> + message);* >>>>>>>>>>> * }* >>>>>>>>>>> * });* >>>>>>>>>>> * }* >>>>>>>>>>> *}* >>>>>>>>>>> >>>>>>>>>>> Gets called with a 'null' message. Do you have any suggestions >>>>>>>>>>> to debug this issue further? I've tried re-issuing a new APN certiticate >>>>>>>>>>> but it didn't work. >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> Aerogear-users mailing list >>>>>>>>>>> Aerogear-users at lists.jboss.org >>>>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Cheers, >>>>>>>>>> Erik Jan >>>>>>>>>> _______________________________________________ >>>>>>>>>> Aerogear-users mailing list >>>>>>>>>> Aerogear-users at lists.jboss.org >>>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>>>>> >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Aerogear-users mailing list >>>>>>>> Aerogear-users at lists.jboss.org >>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Cheers, >>>>>>> Erik Jan >>>>>>> _______________________________________________ >>>>>>> Aerogear-users mailing list >>>>>>> Aerogear-users at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Aerogear-users mailing list >>>>>> Aerogear-users at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Cheers, >>>>> Erik Jan >>>>> _______________________________________________ >>>>> Aerogear-users mailing list >>>>> Aerogear-users at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>> >>>> >>>> _______________________________________________ >>>> Aerogear-users mailing list >>>> Aerogear-users at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>> >>>> >>> >>> >>> -- >>> Cheers, >>> Erik Jan >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150910/91c9f067/attachment-0001.html From fabio.turizo at gmail.com Thu Sep 10 13:01:15 2015 From: fabio.turizo at gmail.com (Fabio Turizo) Date: Thu, 10 Sep 2015 17:01:15 +0000 Subject: [Aerogear-users] Error registering for push notifications in iOS In-Reply-To: References: Message-ID: Allow me correct something. The branch the debug followed is the [2] one (L33), not the [3] one. El jue., 10 de sept. de 2015 a la(s) 11:59 a. m., Fabio Turizo < fabio.turizo at gmail.com> escribi?: > Well, i debugged it and it's entering the [3] branch. A colleague > suggested to reset the factory settings for the phone, since a bit ago he > did some testing and the push notifications worked as intended. I reset the > phone to factory settings, tried again the sample application and the > register method finished, got the success message in the console, and did a > small notification test and worked well. Debugging the code i noticed that > still entered the [3] branch. > > Still, quite weird that the phone didn't work until i resetted the > configuration. Any idea if some internal configuration data could got stuck? > > El jue., 10 de sept. de 2015 a la(s) 2:49 a. m., Corinne Krych < > corinnekrych at gmail.com> escribi?: > >> hello Fabio >> >> So to sum up, you managed iOS8+ device but the iOS7 device does not get >> registered. >> Between iOS7 and iOS8 registering to remote notification has changed. >> Could you try to do a breakpoint here [1] and make sure you're entering >> the iOS7 block ([2] or [3] depending which Xcode version you used). >> >> ++ >> Corinne >> [1] >> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L46-L57 >> [2] >> https://github.com/jboss-mobile/unified-push-helloworld/blob/master/ios-objc/HelloWorld/AGAppDelegate.m#L33 >> [3] >> https://github.com/jboss-mobile/unified-push-helloworld/blob/master/ios-objc/HelloWorld/AGAppDelegate.m#L37 >> >> On 10 September 2015 at 00:22, Fabio Turizo >> wrote: >> >>> No, the bundle ID and the Application ID are the same. Still no messages >>> in the log though. However i borrowed 2 iphones (a 5 and a 6, both in iOS >>> 8.4.1) and the test worked fine with it. This iphone i'm testing is an 5 >>> with iOS 7.1.2 and it doesn't work. As I told you previously, the register >>> method never finishes, be it a success or failure. Could this be an >>> specific issue with the phone? Any settings i could tweak or other logs i >>> could see? I'm worried this could happen in other phones as well >>> >>> El mar., 8 de sept. de 2015 a la(s) 12:57 p. m., Erik Jan de Wit < >>> edewit at redhat.com> escribi?: >>> >>>> Do you get this: >>>> >>>> Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" >>>> >>>> in the log? To fix that: >>>> >>>> Your Bundle ID name should match with the Bundle ID as created on >>>> Apple?s developer portal. Please refer to Apple App ID and SSL >>>> certificate for APNs >>>> >>>> documentation for more details on configuration. >>>> >>>> On Tue, Sep 8, 2015 at 6:35 PM, Fabio Turizo >>>> wrote: >>>> >>>>> I followed the instructions at "*Question: My registration to UPS >>>>> never happens*" and implememented the failurecallback: >>>>> >>>>> - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { >>>>> // something went wrong, while talking to APNs >>>>> // for now we simply log the error >>>>> NSLog(@"APNs Error: %@", error); >>>>> } >>>>> >>>>> But it's never called (using breakpoints) nor it prints anything to >>>>> the log. So both callbacks (*didRegisterForRemoteNotificationsWithDeviceToken >>>>> *and *didFailToRegisterForRemoteNotificationsWithError*) aren't >>>>> getting called. >>>>> >>>>> El mar., 8 de sept. de 2015 a la(s) 10:54 a. m., Erik Jan de Wit < >>>>> edewit at redhat.com> escribi?: >>>>> >>>>>> So then [1] should have been called? Otherwise try to fix it using >>>>>> this doc [2] >>>>>> >>>>>> [1] >>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L98 >>>>>> [2] >>>>>> https://aerogear.org/docs/unifiedpush/aerogear-push-ios/guides/#_question_apns_error >>>>>> >>>>>> On Tue, Sep 8, 2015 at 5:19 PM, Fabio Turizo >>>>>> wrote: >>>>>> >>>>>>> Okay, i put a breakpoint there but it's not stepped over by the >>>>>>> debugger. I put a breakpoint at [2] and the debugger steps it over. In this >>>>>>> point of the process there's a channelId assigned already, but in >>>>>>> conclusion the didRegisterForRemoteNotificationsWithDeviceToken breakpoint >>>>>>> is not getting called. >>>>>>> >>>>>>> I debugged the application using GapDebug as well, but no javascript >>>>>>> errors appeared. >>>>>>> >>>>>>> [2] >>>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L >>>>>>> >>>>>>> 36 >>>>>>> >>>>>>> El mar., 8 de sept. de 2015 a la(s) 4:20 a. m., Erik Jan de Wit < >>>>>>> edewit at redhat.com> escribi?: >>>>>>> >>>>>>>> That is really strange could you debug the plugin? Put a breakpoint >>>>>>>> here [1] and see if there is a channelId. Also can you fire up >>>>>>>> safari and attach a javascript debugger to the cordova webview to see if >>>>>>>> there are some javascript errors? >>>>>>>> >>>>>>>> >>>>>>>> [1] >>>>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/src/ios/AGPushPlugin.m#L86 >>>>>>>> >>>>>>>> On Mon, Sep 7, 2015 at 11:16 PM, Fabio Turizo < >>>>>>>> fabio.turizo at gmail.com> wrote: >>>>>>>> >>>>>>>>> Hi again, Erik. >>>>>>>>> >>>>>>>>> I tried a sample proof of concept for iOS Notifications and they >>>>>>>>> still didn't work. Created a new cordova app using the cordova create >>>>>>>>> command, added *aerogear-cordova-push* and *cordova-console-plugin >>>>>>>>> *and took the sample implementation code for the iOS variant in >>>>>>>>> the UPS web admin. Launching the application trough Xcode onlye gets me a ' >>>>>>>>> *register*' message in the log and nothing more. Even the >>>>>>>>> 'success' or 'error' messages in the callbacks aren't printed in the logs >>>>>>>>> yet. Checking the UPs in the iOS variant, no installations ares shown. >>>>>>>>> >>>>>>>>> I tested this using Cordova 5.2.0. >>>>>>>>> >>>>>>>>> El lun., 7 de sept. de 2015 a la(s) 3:51 p. m., Fabio Turizo < >>>>>>>>> fabio.turizo at gmail.com> escribi?: >>>>>>>>> >>>>>>>>>> >>>>>>>>>> Ok, sorry for answering this late but i had to get a Mac in order >>>>>>>>>> to do the right debug. Xcode log files don't give any info. What's more >>>>>>>>>> when I debug the application using Xcode, neither the success or error >>>>>>>>>> callback handlers are called. The UPS server log also doesn't show >>>>>>>>>> anything. Any idea what could be happening? >>>>>>>>>> >>>>>>>>>> El jue., 3 de sept. de 2015 a la(s) 1:07 a. m., Erik Jan de Wit < >>>>>>>>>> edewit at redhat.com> escribi?: >>>>>>>>>> >>>>>>>>>>> Hi Fabio, >>>>>>>>>>> >>>>>>>>>>> Can you have a look in the UPS logs? The device log might also >>>>>>>>>>> provided some extra information. Running it from xcode you can see this >>>>>>>>>>> log. Not being able to register can not be the cause of the certificate is >>>>>>>>>>> not configured correctly, that will only prevent UPS from sending a message >>>>>>>>>>> to the device. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> On Wed, Sep 2, 2015 at 10:06 PM, Fabio Turizo < >>>>>>>>>>> fabio.turizo at gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> Greetings. >>>>>>>>>>>> >>>>>>>>>>>> Ia have an error when i try to register an user in a Cordova >>>>>>>>>>>> app to the Unified Push Server. The error callback in this code: >>>>>>>>>>>> >>>>>>>>>>>> *function registerPush(alias) {* >>>>>>>>>>>> * if(typeof push !== 'undefined'){* >>>>>>>>>>>> * console.log('Registering push notifications for: ' + >>>>>>>>>>>> alias);* >>>>>>>>>>>> * $.ajax({* >>>>>>>>>>>> * url: "push-config.json",* >>>>>>>>>>>> * dataType: "json"* >>>>>>>>>>>> * }).then(function (pushConfig) {* >>>>>>>>>>>> * pushConfig.alias = alias;* >>>>>>>>>>>> * push.register(onNotification, successHandler, >>>>>>>>>>>> errorHandler, pushConfig);* >>>>>>>>>>>> >>>>>>>>>>>> * function successHandler() {* >>>>>>>>>>>> * console.log('Succesfully registered to >>>>>>>>>>>> aerogear push!');* >>>>>>>>>>>> * }* >>>>>>>>>>>> >>>>>>>>>>>> * function errorHandler(message) {* >>>>>>>>>>>> * console.log('Error registering aerogear push: >>>>>>>>>>>> ' + message);* >>>>>>>>>>>> * }* >>>>>>>>>>>> * });* >>>>>>>>>>>> * }* >>>>>>>>>>>> *}* >>>>>>>>>>>> >>>>>>>>>>>> Gets called with a 'null' message. Do you have any suggestions >>>>>>>>>>>> to debug this issue further? I've tried re-issuing a new APN certiticate >>>>>>>>>>>> but it didn't work. >>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> Aerogear-users mailing list >>>>>>>>>>>> Aerogear-users at lists.jboss.org >>>>>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Cheers, >>>>>>>>>>> Erik Jan >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> Aerogear-users mailing list >>>>>>>>>>> Aerogear-users at lists.jboss.org >>>>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Aerogear-users mailing list >>>>>>>>> Aerogear-users at lists.jboss.org >>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Cheers, >>>>>>>> Erik Jan >>>>>>>> _______________________________________________ >>>>>>>> Aerogear-users mailing list >>>>>>>> Aerogear-users at lists.jboss.org >>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Aerogear-users mailing list >>>>>>> Aerogear-users at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Cheers, >>>>>> Erik Jan >>>>>> _______________________________________________ >>>>>> Aerogear-users mailing list >>>>>> Aerogear-users at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Aerogear-users mailing list >>>>> Aerogear-users at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>> >>>>> >>>> >>>> >>>> -- >>>> Cheers, >>>> Erik Jan >>>> _______________________________________________ >>>> Aerogear-users mailing list >>>> Aerogear-users at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>> >>> >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150910/8603b78e/attachment-0001.html From tolisemm at gmail.com Fri Sep 11 14:32:14 2015 From: tolisemm at gmail.com (tolis emmanouilidis) Date: Fri, 11 Sep 2015 21:32:14 +0300 Subject: [Aerogear-users] AeroGear unified push notification In-Reply-To: <0BBC8B85145220449B53DE768FDA802A12A4D1B71D@bhsexc12.bhs.org> References: <0BBC8B85145220449B53DE768FDA802A12A4D1B710@bhsexc12.bhs.org> <0BBC8B85145220449B53DE768FDA802A12A4D1B71D@bhsexc12.bhs.org> Message-ID: Hi David, Could you try to disable the cipher suites using Diffie Hellman or enable TLSv1.2? It is very likely that your error is related to an SSL handshake exception which occurs because the DHKeyGenerator in previous JDKs is rejecting prime number modulus having size > 1024 bits Thanks, Tolis 2015-09-10 13:30 GMT+03:00 Walto, David : > That is the complete trace in the error logs: > > [9/10/15 6:20:48:934 EDT] 0000007c ServletWrappe I > com.ibm.ws.webcontainer.servlet.ServletWrapper init *SRVE0242I*: > [BHAppStoreEAR] [/BHAppStore] [/menu.jsp]: Initialization successful. > > [9/10/15 6:20:56:281 EDT] 0000007c ServletWrappe I > com.ibm.ws.webcontainer.servlet.ServletWrapper init *SRVE0242I*: > [BHAppStoreEAR] [/BHAppStore] [/sendMsg.jsp]: Initialization successful. > > [9/10/15 6:20:57:186 EDT] 0000007c SenderClient E Send did not succeed: > *java.lang.ArrayIndexOutOfBoundsException*: Array index out of range: 64 > > > > We are using JBoss Unified Push Server 1.0.0.Beta2, MySQL 5.5. > > I am open to other versions if there is a better one to use. > > > > Thanks, > > *David Walto* > > *Senior Application Engineer | EMR Engineering and Integration* > > *Baystate Health | Information & Technology* > > 1550 Main Street, Springfield, MA 01199 | p: 413-794-0627 | f: > 413-794-5570 > > > > *From:* aerogear-users-bounces at lists.jboss.org [mailto: > aerogear-users-bounces at lists.jboss.org] *On Behalf Of *Erik Jan de Wit > *Sent:* Thursday, September 10, 2015 3:48 AM > *To:* aerogear-users at lists.jboss.org > *Subject:* Re: [Aerogear-users] AeroGear unified push notification > > > > Hi David, > > > > Your code looks good, is that the complete stack trace? Could you also > have a look on the server side and post the log from there? What version of > UPS are you using? > > > > On Wed, Sep 9, 2015 at 11:34 PM, Walto, David < > David.Walto at baystatehealth.org> wrote: > > Hi, I a new AeroGear unified push notification user. I am trying to > create a simple push notification from a WebSphere java application. > > > > I have created a couple of push notification classes to test (below) and > both version I get the error: > > SenderClient E Send did not succeed: > *java.lang.ArrayIndexOutOfBoundsException*: Array index out of range: 64 > > I have the following jars for this application. > > > > > > Any direction how to resolve this would be greatly appreciated. > > > > Thanks in advance. > > > > *David Walto* > > *Senior Application Engineer | EMR Engineering and Integration* > > *Baystate Health | Information & Technology* > > 1550 Main Street, Springfield, MA 01199 | p: 413-794-0627 | f: > 413-794-5570 > > > ------------------------------ > > Please view our annual report at http://baystatehealth.org/annualreport > > > CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may > contain confidential and privileged information for the use of the > designated recipients named above. If you are not the intended recipient, > you are hereby notified that you have received this communication in error > and that any review, disclosure, dissemination, distribution or copying of > it or its contents is prohibited. If you have received this communication > in error, please reply to the sender immediately or by telephone at > 413-794-0000 and destroy all copies of this communication and any > attachments. For further information regarding Baystate Health's privacy > policy, please visit our Internet site at http://baystatehealth.org. > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > > -- > > Cheers, > > Erik Jan > ------------------------------ > Please view our annual report at http://baystatehealth.org/annualreport > > > CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may > contain confidential and privileged information for the use of the > designated recipients named above. If you are not the intended recipient, > you are hereby notified that you have received this communication in error > and that any review, disclosure, dissemination, distribution or copying of > it or its contents is prohibited. If you have received this communication > in error, please reply to the sender immediately or by telephone at > 413-794-0000 and destroy all copies of this communication and any > attachments. For further information regarding Baystate Health's privacy > policy, please visit our Internet site at http://baystatehealth.org. > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150911/ad084664/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 4448 bytes Desc: not available Url : http://lists.jboss.org/pipermail/aerogear-users/attachments/20150911/ad084664/attachment-0002.png -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 153854 bytes Desc: not available Url : http://lists.jboss.org/pipermail/aerogear-users/attachments/20150911/ad084664/attachment-0003.png From David.Walto at baystatehealth.org Fri Sep 11 15:29:21 2015 From: David.Walto at baystatehealth.org (Walto, David) Date: Fri, 11 Sep 2015 15:29:21 -0400 Subject: [Aerogear-users] AeroGear unified push notification In-Reply-To: References: <0BBC8B85145220449B53DE768FDA802A12A4D1B710@bhsexc12.bhs.org> <0BBC8B85145220449B53DE768FDA802A12A4D1B71D@bhsexc12.bhs.org> Message-ID: <0BBC8B85145220449B53DE768FDA802A12A4D1BCEA@bhsexc12.bhs.org> A million thanks, enabling TLSv1.2 did it. I?ve been banging my head for three days now, and it?s now working! Thanks, David Walto Senior Application Engineer | EMR Engineering and Integration Baystate Health | Information & Technology 1550 Main Street, Springfield, MA 01199 | p: 413-794-0627 | f: 413-794-5570 From: aerogear-users-bounces at lists.jboss.org [mailto:aerogear-users-bounces at lists.jboss.org] On Behalf Of tolis emmanouilidis Sent: Friday, September 11, 2015 2:32 PM To: aerogear-users at lists.jboss.org Subject: Re: [Aerogear-users] AeroGear unified push notification Hi David, Could you try to disable the cipher suites using Diffie Hellman or enable TLSv1.2? It is very likely that your error is related to an SSL handshake exception which occurs because the DHKeyGenerator in previous JDKs is rejecting prime number modulus having size > 1024 bits Thanks, Tolis 2015-09-10 13:30 GMT+03:00 Walto, David >: That is the complete trace in the error logs: [9/10/15 6:20:48:934 EDT] 0000007c ServletWrappe I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [BHAppStoreEAR] [/BHAppStore] [/menu.jsp]: Initialization successful. [9/10/15 6:20:56:281 EDT] 0000007c ServletWrappe I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [BHAppStoreEAR] [/BHAppStore] [/sendMsg.jsp]: Initialization successful. [9/10/15 6:20:57:186 EDT] 0000007c SenderClient E Send did not succeed: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 64 We are using JBoss Unified Push Server 1.0.0.Beta2, MySQL 5.5. I am open to other versions if there is a better one to use. Thanks, David Walto Senior Application Engineer | EMR Engineering and Integration Baystate Health | Information & Technology 1550 Main Street, Springfield, MA 01199 | p: 413-794-0627 | f: 413-794-5570 From: aerogear-users-bounces at lists.jboss.org [mailto:aerogear-users-bounces at lists.jboss.org] On Behalf Of Erik Jan de Wit Sent: Thursday, September 10, 2015 3:48 AM To: aerogear-users at lists.jboss.org Subject: Re: [Aerogear-users] AeroGear unified push notification Hi David, Your code looks good, is that the complete stack trace? Could you also have a look on the server side and post the log from there? What version of UPS are you using? On Wed, Sep 9, 2015 at 11:34 PM, Walto, David > wrote: Hi, I a new AeroGear unified push notification user. I am trying to create a simple push notification from a WebSphere java application. I have created a couple of push notification classes to test (below) and both version I get the error: SenderClient E Send did not succeed: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 64 I have the following jars for this application. [cid:image001.png at 01D0ECA6.9FF193C0] [cid:image002.png at 01D0ECA6.9FF193C0] Any direction how to resolve this would be greatly appreciated. Thanks in advance. David Walto Senior Application Engineer | EMR Engineering and Integration Baystate Health | Information & Technology 1550 Main Street, Springfield, MA 01199 | p: 413-794-0627 | f: 413-794-5570 ________________________________ Please view our annual report at http://baystatehealth.org/annualreport CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please reply to the sender immediately or by telephone at 413-794-0000 and destroy all copies of this communication and any attachments. For further information regarding Baystate Health's privacy policy, please visit our Internet site at http://baystatehealth.org. _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Cheers, Erik Jan ________________________________ Please view our annual report at http://baystatehealth.org/annualreport CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please reply to the sender immediately or by telephone at 413-794-0000 and destroy all copies of this communication and any attachments. For further information regarding Baystate Health's privacy policy, please visit our Internet site at http://baystatehealth.org. _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users ---------------------------------------------------------------------- Please view our annual report at http://baystatehealth.org/annualreport CONFIDENTIALITY NOTICE: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please reply to the sender immediately or by telephone at 413-794-0000 and destroy all copies of this communication and any attachments. For further information regarding Baystate Health's privacy policy, please visit our Internet site at http://baystatehealth.org. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20150911/97a679be/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 4448 bytes Desc: image001.png Url : http://lists.jboss.org/pipermail/aerogear-users/attachments/20150911/97a679be/attachment-0002.png -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 153854 bytes Desc: image002.png Url : http://lists.jboss.org/pipermail/aerogear-users/attachments/20150911/97a679be/attachment-0003.png From nifs.arpegiuz at gmail.com Wed Sep 16 00:50:01 2015 From: nifs.arpegiuz at gmail.com (Naif) Date: Tue, 15 Sep 2015 21:50:01 -0700 (MST) Subject: [Aerogear-users] Android: How can i get user's roles from Keycloak(OAuth2 Endpoint)? In-Reply-To: References: <1441290899103-230.post@n5.nabble.com> Message-ID: <1442379001813-252.post@n5.nabble.com> OAuth2AuthzSession is a parcelable with properties, i don't have a key idea of how, after adding the properties there, how to fetch Keycloak properties in the OAuth2AuthzService class; i would like to have some algorithm with the key objects to implement that functionality. Could you please write some steps to follow? I do not have a clear idea about this. -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Android-How-can-i-get-user-s-roles-from-Keycloak-OAuth2-Endpoint-tp230p252.html Sent from the aerogear-users mailing list archive at Nabble.com.