From ganesh.prasad1 at hp.com Mon Aug 1 07:13:56 2016 From: ganesh.prasad1 at hp.com (Prasad, Ganesh) Date: Mon, 1 Aug 2016 11:13:56 +0000 Subject: [Aerogear-users] Aerogear Plugin issue - Notification opened metric References: Message-ID: Please let us know if any update from cordova experts Thanks ganesh From: Prasad, Ganesh Sent: Friday, July 29, 2016 12:52 PM To: aerogear-users at lists.jboss.org Subject: RE: [Aerogear-users] Aerogear Plugin issue - Notification opened metric Thanks Matthias , looking forward for the fix From: aerogear-users-bounces at lists.jboss.org [mailto:aerogear-users-bounces at lists.jboss.org] On Behalf Of Matthias Wessendorf Sent: Thursday, July 28, 2016 11:52 PM To: aerogear-users at lists.jboss.org Subject: Re: [Aerogear-users] Aerogear Plugin issue - Notification opened metric Hello, Ganesh, thanks for reporting another issue :-) I have hammered it into JIRA for our planning: https://issues.jboss.org/browse/AGCORDOVA-158 Perhaps some of our Cordova experts have already an idea on a fix for this On Thu, Jul 28, 2016 at 6:25 PM, Prasad, Ganesh > wrote: Hello We were testing the usage of notification opened metric and our application is Cordova based pushConfig: { 'pushServerURL': 'url', 'alias': 'app name', 'sendMetricInfo': ?true?, Below are the observation 1. Clicking on the push notification while the app is in the background increments the opened count 2. If the app is completely shut down, on receiving push notification : ? Clicking on the push notification starts the app but does not increment the opened count Is there any fix available for #2 ? Thanks ganesh _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160801/2784adb3/attachment.html From rohit.bhatt at hp.com Mon Aug 1 03:06:10 2016 From: rohit.bhatt at hp.com (Bhatt, Rohit (PPSIT)) Date: Mon, 1 Aug 2016 07:06:10 +0000 Subject: [Aerogear-users] Aerogear issue for project creation - Push plugin In-Reply-To: References: Message-ID: HI, We installed the Android SDK files by executing the command android update sdk --no-ui --filter "extra" Still getting the issue, below: >cordova build android ANDROID_HOME=C:\AndroidSDK JAVA_HOME=C:\Program Files\Java\jdk1.8.0_60 FAILURE: Build failed with an exception. * Where: Script 'C:\Users\bhattro\Desktop\WKSPS\CrdvUpd\platforms\android\aerogear-cordova-push\hellocordova-dependencies.gradle' line: 15 * What went wrong: A problem occurred evaluating root project 'android'. > Failed to apply plugin [id 'com.google.gms.google-services'] > Plugin with id 'com.google.gms.google-services' not found. * Try: BUILD FAILED Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Total time: 10.15 secs Error: Error code 1 for command: cmd with args: /s,/c,"C:\Users\bhattro\Desktop\WKSPS\CrdvUpd\platforms\android\gradlew cdvBuildDebug -b C:\ Users\bhattro\Desktop\WKSPS\CrdvUpd\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true" C:\Users\bhattro\Desktop\WKSPS\CrdvUpd>cordova build androidcordova build android From: Julio Cesar Sanchez Hernandez [mailto:jusanche at redhat.com] Sent: Thursday, July 28, 2016 2:30 AM To: aerogear-users at lists.jboss.org Cc: Bhatt, Rohit (PPSIT) Subject: Re: [Aerogear-users] Aerogear issue for project creation - Push plugin Hi, Try running this command to install all the Android SDK files needed to use push notifications android update sdk --no-ui --filter "extra" On Thu, Jul 28, 2016 at 7:57 AM, Prasad, Ganesh > wrote: Android SDK ? t arget=android-23 Cordova version ? 6.2.0 Please let us know if you need more info Thanks ganesh 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, July 28, 2016 10:29 AM To: aerogear-users at lists.jboss.org Subject: Re: [Aerogear-users] Aerogear issue for project creation - Push plugin Hi, What is the version of you cordova-android platform e.g. what version of cordova do you have? On Wed, Jul 27, 2016 at 9:57 PM, Matthias Wessendorf > wrote: Hello, what's the SDK android version (and build tools) you have installed? -Matthias On Wed, Jul 27, 2016 at 7:48 PM, Prasad, Ganesh > wrote: n Aerogear Push, while project creation: After executing following 5 basic commands, build fails with following error: 1. >cordova create MyApp 2. >cd MyCrdvaApp 3. >cordova platform add android 4. >cordova plugin add https://github.com/aerogear/aerogear-cordova-push.git 5. >cordova build android FAILURE: Build failed with an exception. * Where: Script '~\WKSPS\MyCrdvaApp\platforms\android\aerogear-cordova-push\hellocordova-dependencies.gradle' line: 15 * What went wrong: A problem occurred evaluating root project 'android'. > Failed to apply plugin [id 'com.google.gms.google-services'] > Plugin with id 'com.google.gms.google-services' not found. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 4.376 secs Thanks ganesh _______________________________________________ Aerogear-users mailing list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/aerogear-users -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf _______________________________________________ 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/20160801/b15a450e/attachment-0001.html From jusanche at redhat.com Mon Aug 1 14:57:45 2016 From: jusanche at redhat.com (Julio Cesar Sanchez Hernandez) Date: Mon, 1 Aug 2016 20:57:45 +0200 Subject: [Aerogear-users] Aerogear issue for project creation - Push plugin In-Reply-To: References: Message-ID: Hello. It was an issue when the plugin was installed on some Operating Systems. We have a PR with the changes and will be merged soon. https://github.com/aerogear/aerogear-cordova-push/pull/104 On Mon, Aug 1, 2016 at 9:06 AM, Bhatt, Rohit (PPSIT) wrote: > HI, > > > > We installed the Android SDK files by executing the command android update > sdk --no-ui --filter "extra" > > > > > > Still getting the issue, below: > > > > > > >cordova build android > > > > ANDROID_HOME=C:\AndroidSDK > > JAVA_HOME=C:\Program Files\Java\jdk1.8.0_60 > > > > FAILURE: Build failed with an exception. > > > > * Where: > > Script > 'C:\Users\bhattro\Desktop\WKSPS\CrdvUpd\platforms\android\aerogear-cordova-push\hellocordova-dependencies.gradle' > line: 15 > > > > * What went wrong: > > A problem occurred evaluating root project 'android'. > > > Failed to apply plugin [id 'com.google.gms.google-services'] > > > Plugin with id 'com.google.gms.google-services' not found. > > > > * Try: > > > > BUILD FAILED > > > > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. > > Total time: 10.15 secs > > Error: Error code 1 for command: cmd with args: > /s,/c,"C:\Users\bhattro\Desktop\WKSPS\CrdvUpd\platforms\android\gradlew > cdvBuildDebug -b C:\ > > Users\bhattro\Desktop\WKSPS\CrdvUpd\platforms\android\build.gradle > -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true" > > > > C:\Users\bhattro\Desktop\WKSPS\CrdvUpd>cordova build androidcordova build > android > > > > > > > > > > > > > > > > > > > > > > > > *From:* Julio Cesar Sanchez Hernandez [mailto:jusanche at redhat.com] > *Sent:* Thursday, July 28, 2016 2:30 AM > *To:* aerogear-users at lists.jboss.org > *Cc:* Bhatt, Rohit (PPSIT) > > *Subject:* Re: [Aerogear-users] Aerogear issue for project creation - > Push plugin > > > > Hi, > > > > Try running this command to install all the Android SDK files needed to > use push notifications > > > > android update sdk --no-ui --filter "extra" > > > > On Thu, Jul 28, 2016 at 7:57 AM, Prasad, Ganesh > wrote: > > Android SDK ? t arget=android-23 > > > > > > Cordova version ? 6.2.0 > > > > Please let us know if you need more info > > > > Thanks > > ganesh > > *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, July 28, 2016 10:29 AM > *To:* aerogear-users at lists.jboss.org > *Subject:* Re: [Aerogear-users] Aerogear issue for project creation - > Push plugin > > > > Hi, > > > > What is the version of you cordova-android platform e.g. what version of > cordova do you have? > > > > On Wed, Jul 27, 2016 at 9:57 PM, Matthias Wessendorf > wrote: > > Hello, > > > > what's the SDK android version (and build tools) you have installed? > > > > -Matthias > > > > On Wed, Jul 27, 2016 at 7:48 PM, Prasad, Ganesh > wrote: > > > > > > n Aerogear Push, while project creation: > > > > After executing following 5 basic commands, build fails with following > error: > > > > > > 1. >cordova create MyApp > > 2. >cd MyCrdvaApp > > 3. >cordova platform add android > > 4. >cordova plugin add > https://github.com/aerogear/aerogear-cordova-push.git > > 5. >cordova build android > > > > > > FAILURE: Build failed with an exception. > > > > * Where: > > Script > '~\WKSPS\MyCrdvaApp\platforms\android\aerogear-cordova-push\hellocordova-dependencies.gradle' > line: 15 > > > > * What went wrong: > > A problem occurred evaluating root project 'android'. > > > Failed to apply plugin [id 'com.google.gms.google-services'] > > > Plugin with id 'com.google.gms.google-services' not found. > > > > * Try: > > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. > > > > BUILD FAILED > > > > Total time: 4.376 secs > > > > > > Thanks > > ganesh > > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > > -- > > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > > _______________________________________________ > 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/20160801/353448cd/attachment-0001.html From matzew at apache.org Tue Aug 2 02:39:49 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Tue, 2 Aug 2016 08:39:49 +0200 Subject: [Aerogear-users] Aerogear Plugin issue - Notification opened metric In-Reply-To: References: Message-ID: Hello Ganesh, we have created a JIRA to have the issue tracked in our bug system. Greetings, Matthias On Mon, Aug 1, 2016 at 1:13 PM, Prasad, Ganesh wrote: > Please let us know if any update from cordova experts > > > > Thanks > > ganesh > > > > *From:* Prasad, Ganesh > *Sent:* Friday, July 29, 2016 12:52 PM > *To:* aerogear-users at lists.jboss.org > *Subject:* RE: [Aerogear-users] Aerogear Plugin issue - Notification > opened metric > > > > Thanks Matthias , looking forward for the fix > > > > *From:* aerogear-users-bounces at lists.jboss.org [ > mailto:aerogear-users-bounces at lists.jboss.org > ] *On Behalf Of *Matthias > Wessendorf > *Sent:* Thursday, July 28, 2016 11:52 PM > *To:* aerogear-users at lists.jboss.org > *Subject:* Re: [Aerogear-users] Aerogear Plugin issue - Notification > opened metric > > > > Hello, > > > > Ganesh, > > > > thanks for reporting another issue :-) I have hammered it into JIRA for > our planning: > > https://issues.jboss.org/browse/AGCORDOVA-158 > > > > Perhaps some of our Cordova experts have already an idea on a fix for this > > > > > > On Thu, Jul 28, 2016 at 6:25 PM, Prasad, Ganesh > wrote: > > Hello > > > > We were testing the usage of notification opened metric and our > application is Cordova based > > > > pushConfig: { > > 'pushServerURL': 'url', > > 'alias': 'app name', > > 'sendMetricInfo': ?true?, > > > > > > Below are the observation > > > > 1. Clicking on the push notification while the app is in the > background increments the opened count > > *2.** If the app is completely shut down, on receiving push > notification :* > > ? *Clicking on the push notification starts the app but does not > increment the opened count* > > > > Is there any fix available for #2 ? > > > > Thanks > > ganesh > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > > -- > > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160802/f5ebabee/attachment.html From matzew at apache.org Tue Aug 2 02:41:00 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Tue, 2 Aug 2016 08:41:00 +0200 Subject: [Aerogear-users] Aerogear issue for project creation - Push plugin In-Reply-To: References: Message-ID: Hllo, this ticket has been fixed on the master branch -Matthias On Mon, Aug 1, 2016 at 8:57 PM, Julio Cesar Sanchez Hernandez < jusanche at redhat.com> wrote: > Hello. > > It was an issue when the plugin was installed on some Operating Systems. > We have a PR with the changes and will be merged soon. > https://github.com/aerogear/aerogear-cordova-push/pull/104 > > > > On Mon, Aug 1, 2016 at 9:06 AM, Bhatt, Rohit (PPSIT) > wrote: > >> HI, >> >> >> >> We installed the Android SDK files by executing the command android >> update sdk --no-ui --filter "extra" >> >> >> >> >> >> Still getting the issue, below: >> >> >> >> >> >> >cordova build android >> >> >> >> ANDROID_HOME=C:\AndroidSDK >> >> JAVA_HOME=C:\Program Files\Java\jdk1.8.0_60 >> >> >> >> FAILURE: Build failed with an exception. >> >> >> >> * Where: >> >> Script >> 'C:\Users\bhattro\Desktop\WKSPS\CrdvUpd\platforms\android\aerogear-cordova-push\hellocordova-dependencies.gradle' >> line: 15 >> >> >> >> * What went wrong: >> >> A problem occurred evaluating root project 'android'. >> >> > Failed to apply plugin [id 'com.google.gms.google-services'] >> >> > Plugin with id 'com.google.gms.google-services' not found. >> >> >> >> * Try: >> >> >> >> BUILD FAILED >> >> >> >> Run with --stacktrace option to get the stack trace. Run with --info or >> --debug option to get more log output. >> >> Total time: 10.15 secs >> >> Error: Error code 1 for command: cmd with args: >> /s,/c,"C:\Users\bhattro\Desktop\WKSPS\CrdvUpd\platforms\android\gradlew >> cdvBuildDebug -b C:\ >> >> Users\bhattro\Desktop\WKSPS\CrdvUpd\platforms\android\build.gradle >> -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true" >> >> >> >> C:\Users\bhattro\Desktop\WKSPS\CrdvUpd>cordova build androidcordova build >> android >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> *From:* Julio Cesar Sanchez Hernandez [mailto:jusanche at redhat.com] >> *Sent:* Thursday, July 28, 2016 2:30 AM >> *To:* aerogear-users at lists.jboss.org >> *Cc:* Bhatt, Rohit (PPSIT) >> >> *Subject:* Re: [Aerogear-users] Aerogear issue for project creation - >> Push plugin >> >> >> >> Hi, >> >> >> >> Try running this command to install all the Android SDK files needed to >> use push notifications >> >> >> >> android update sdk --no-ui --filter "extra" >> >> >> >> On Thu, Jul 28, 2016 at 7:57 AM, Prasad, Ganesh >> wrote: >> >> Android SDK ? t arget=android-23 >> >> >> >> >> >> Cordova version ? 6.2.0 >> >> >> >> Please let us know if you need more info >> >> >> >> Thanks >> >> ganesh >> >> *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, July 28, 2016 10:29 AM >> *To:* aerogear-users at lists.jboss.org >> *Subject:* Re: [Aerogear-users] Aerogear issue for project creation - >> Push plugin >> >> >> >> Hi, >> >> >> >> What is the version of you cordova-android platform e.g. what version of >> cordova do you have? >> >> >> >> On Wed, Jul 27, 2016 at 9:57 PM, Matthias Wessendorf >> wrote: >> >> Hello, >> >> >> >> what's the SDK android version (and build tools) you have installed? >> >> >> >> -Matthias >> >> >> >> On Wed, Jul 27, 2016 at 7:48 PM, Prasad, Ganesh >> wrote: >> >> >> >> >> >> n Aerogear Push, while project creation: >> >> >> >> After executing following 5 basic commands, build fails with following >> error: >> >> >> >> >> >> 1. >cordova create MyApp >> >> 2. >cd MyCrdvaApp >> >> 3. >cordova platform add android >> >> 4. >cordova plugin add >> https://github.com/aerogear/aerogear-cordova-push.git >> >> 5. >cordova build android >> >> >> >> >> >> FAILURE: Build failed with an exception. >> >> >> >> * Where: >> >> Script >> '~\WKSPS\MyCrdvaApp\platforms\android\aerogear-cordova-push\hellocordova-dependencies.gradle' >> line: 15 >> >> >> >> * What went wrong: >> >> A problem occurred evaluating root project 'android'. >> >> > Failed to apply plugin [id 'com.google.gms.google-services'] >> >> > Plugin with id 'com.google.gms.google-services' not found. >> >> >> >> * Try: >> >> Run with --stacktrace option to get the stack trace. Run with --info or >> --debug option to get more log output. >> >> >> >> BUILD FAILED >> >> >> >> Total time: 4.376 secs >> >> >> >> >> >> Thanks >> >> ganesh >> >> >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> >> >> >> >> -- >> >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> >> >> _______________________________________________ >> 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 > > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160802/c43abc71/attachment-0001.html From edewit at redhat.com Wed Aug 3 02:31:14 2016 From: edewit at redhat.com (Erik Jan de Wit) Date: Wed, 3 Aug 2016 08:31:14 +0200 Subject: [Aerogear-users] Aerogear Plugin issue - Notification opened metric In-Reply-To: References: Message-ID: on what platform did you experience this? how did you shutdown the app? On android killing the app can have from the task bar can have strange side effects. Can you test it by restarting the phone instead. On Tue, Aug 2, 2016 at 8:39 AM, Matthias Wessendorf wrote: > Hello Ganesh, > > we have created a JIRA to have the issue tracked in our bug system. > > Greetings, > Matthias > > On Mon, Aug 1, 2016 at 1:13 PM, Prasad, Ganesh > wrote: > >> Please let us know if any update from cordova experts >> >> >> >> Thanks >> >> ganesh >> >> >> >> *From:* Prasad, Ganesh >> *Sent:* Friday, July 29, 2016 12:52 PM >> *To:* aerogear-users at lists.jboss.org >> *Subject:* RE: [Aerogear-users] Aerogear Plugin issue - Notification >> opened metric >> >> >> >> Thanks Matthias , looking forward for the fix >> >> >> >> *From:* aerogear-users-bounces at lists.jboss.org [ >> mailto:aerogear-users-bounces at lists.jboss.org >> ] *On Behalf Of *Matthias >> Wessendorf >> *Sent:* Thursday, July 28, 2016 11:52 PM >> *To:* aerogear-users at lists.jboss.org >> *Subject:* Re: [Aerogear-users] Aerogear Plugin issue - Notification >> opened metric >> >> >> >> Hello, >> >> >> >> Ganesh, >> >> >> >> thanks for reporting another issue :-) I have hammered it into JIRA for >> our planning: >> >> https://issues.jboss.org/browse/AGCORDOVA-158 >> >> >> >> Perhaps some of our Cordova experts have already an idea on a fix for this >> >> >> >> >> >> On Thu, Jul 28, 2016 at 6:25 PM, Prasad, Ganesh >> wrote: >> >> Hello >> >> >> >> We were testing the usage of notification opened metric and our >> application is Cordova based >> >> >> >> pushConfig: { >> >> 'pushServerURL': 'url', >> >> 'alias': 'app name', >> >> 'sendMetricInfo': ?true?, >> >> >> >> >> >> Below are the observation >> >> >> >> 1. Clicking on the push notification while the app is in the >> background increments the opened count >> >> *2.** If the app is completely shut down, on receiving push >> notification :* >> >> ? *Clicking on the push notification starts the app but does not >> increment the opened count* >> >> >> >> Is there any fix available for #2 ? >> >> >> >> Thanks >> >> ganesh >> >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> >> >> >> >> -- >> >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > 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/20160803/03fcb245/attachment.html From giovanni.mondo at yahoo.it Wed Aug 3 03:02:35 2016 From: giovanni.mondo at yahoo.it (Giovanni Mondo) Date: Wed, 3 Aug 2016 07:02:35 +0000 (UTC) Subject: [Aerogear-users] AGPUSH docker References: <1917390498.14919207.1470207755513.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <1917390498.14919207.1470207755513.JavaMail.yahoo@mail.yahoo.com> Hi, I am trying current docker unifiedpush-wildfly-dev image with a CentOS 7 following instructions in github README.md, but I get the errors in PS. I see two main reasons: 1. Could not parse file /opt/jboss/wildfly/standalone/tmp/vfs/temp/temp73986d221e62b797/content-263926592f4ae9c8/WEB-INF/hornetq-jms.xml (may be related to https://issues.jboss.org/browse/AGPUSH-1587 ) 2. Unknown column 'userfedera0_.RealmEntity_ID' in 'field list' (may be related to https://issues.jboss.org/browse/KEYCLOAK-1777 ) The issues related to these problems seem resolved or closed. What do you suggest me to do ? Regards, Giovanni PS 17:34:40,690 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."ag-push.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."ag-push.war".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment "ag-push.war" ... Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYMSGAMQ0055: Could not parse file /opt/jboss/wildfly/standalone/tmp/vfs/temp/temp73986d221e62b797/content-263926592f4ae9c8/WEB-INF/hornetq-jms.xml at org.wildfly.extension.messaging.activemq.deployment.MessagingXmlParsingDeploymentUnitProcessor.deploy(MessagingXmlParsingDeploymentUnitProcessor.java:95) ... 6 more Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[20,1] Message: Unexpected element '{urn:jboss:messaging-deployment:1.0}messaging-deployment' ... 17:34:54,039 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (ServerService Thread Pool -- 72) Unknown column 'userfedera0_.RealmEntity_ID' in 'field list' 17:34:54,047 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 72) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./auth: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.jboss.aerogear.unifiedpush.keycloak.UpsKeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher) 17:34:54,153 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "auth-server.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./auth" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./auth: java.lang.RuntimeException: RESTEASY003325: Failed to construct public org.jboss.aerogear.unifiedpush.keycloak.UpsKeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher) 17:34:54,159 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "ag-push.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"ag-push.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"ag-push.war\".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment \"ag-push.war\" ... Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYMSGAMQ0055: Could not parse file /opt/jboss/wildfly/standalone/tmp/vfs/temp/temp73986d221e62b797/content-263926592f4ae9c8/WEB-INF/hornetq-jms.xml ... 17:34:54,822 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) started (with errors) in 40176ms - Started 450 of 745 services (3 services failed or missing dependencies, 440 services are lazy, passive or on-demand) From chris at dealerrewards.net Wed Aug 3 15:13:32 2016 From: chris at dealerrewards.net (Christopher Fahey) Date: Wed, 3 Aug 2016 14:13:32 -0500 Subject: [Aerogear-users] Completely frustrated In-Reply-To: References: <44af4072-0092-6ca7-e7dc-dd6f0587337c@dealerrewards.net> <53e49c74-3d15-bbe9-ecfa-9a72f96b67c1@dealerrewards.net> <250d2966-bc7f-b680-01bc-26014c487e53@dealerrewards.net> Message-ID: <5af0e358-19ad-85fc-1b0d-5995984dfa40@dealerrewards.net> I am still trying to get this whole thing to work properly. It started out working just on the local network but then I tried to both change the port number for the incoming connections and also have it work from the internet. I was able to get the server to come up on the internet and using both a different port as well as SSL for the connections. For the last 3 weeks I have been trying to get the Android app of mine to work against this configuration. The problem is that I am using a self-signed certificate within Wildfly but Android is rejecting it. I have had no luck pinning a certificate to use. I built my app using Cordova and none of the plugins will allow me to accept the certificate. I keep receiving the certificate chain trust issue error. In frustration I am giving up trying to use SSL but I have run into the issue I faced at the beginning which caused me to start using SSL. I cannot connect to the application from the internet without SSL. I am receiving the error "Internal Server Error" on the web page with the error being reported at the server: 15:05:18,581 ERROR [org.keycloak.adapters.AdapterDeploymentContext] (default task-32) request scheme: http ssl required 15:05:18,581 ERROR [io.undertow.request] (default task-32) UT005023: Exception handling request to /ag-push/index.html: java.lang.RuntimeException: Can't resolve relative url from adapter config. I am pretty sure that it is being rejected because SSL is required but the settings for Require SSL in the app are set to None. HELP! I am going no where fast. Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) 924-3185 ------------------------------------------------------------------------ This electronic message transmission contains information from DealerRewards Inc. This message is confidential. It may also be privileged or otherwise protected by work-product immunity or other legal rules. If you have received it by mistake, please let us know by email reply and delete it from your system; you may not copy this message or disclose its contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been monitoring all internet communications. If you have information that you do not wish to have monitored, please send it using regular postal services to the address listed on our website. ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160803/12eb0303/attachment-0001.html From chris at dealerrewards.net Tue Aug 16 11:23:50 2016 From: chris at dealerrewards.net (Christopher Fahey) Date: Tue, 16 Aug 2016 11:23:50 -0400 Subject: [Aerogear-users] SSL Issues In-Reply-To: References: <1469086044672-756.post@n5.nabble.com> <9f9ed22f-2cd3-9502-1f9b-dadf38fa2d83@dealerrewards.net> Message-ID: <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> I am still not getting past this issue. I am using Cordova. Can someone explain to me the relationship between how the SSL connection in the AeroGear plugin and the Cordova application connection are related? I am starting to get the impression that they are not the same. I have a plugin that replaces the SystemWebViewClient with an object that overrides the "onReceivedSslError" function so that when a self signed SSL certificate is encountered it can be told to allow it however this function is never being called. Can someone please shed some light on this? It sounds like others have done it but isn't anyone willing to share the secret on how it is accomplished? Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) 924-3185 ------------------------------------------------------------------------ This electronic message transmission contains information from DealerRewards Inc. This message is confidential. It may also be privileged or otherwise protected by work-product immunity or other legal rules. If you have received it by mistake, please let us know by email reply and delete it from your system; you may not copy this message or disclose its contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been monitoring all internet communications. If you have information that you do not wish to have monitored, please send it using regular postal services to the address listed on our website. ------------------------------------------------------------------------ On 7/21/2016 1:45 PM, Summers Pittman wrote: > Sorry, hit reply a bit faster than I meant to. > > You can also use https://www.openshift.com/ to host an instance of the > push server, run the push server on port 8080, set up your own DNS > configuration and add the signing certificate to Android's certificate > store. > > > > On Thu, Jul 21, 2016 at 1:42 PM, Summers Pittman > wrote: > > I used Android N and pin a certificate. > > https://blog.sagaoftherealms.net/?p=578 > > > > On Thu, Jul 21, 2016 at 12:52 PM, Christopher Fahey > > wrote: > > Finally have it running! Not even sure what I did. Now I am > running into an SSL certificate error. It seems that android > has a self-signed certificate acceptance issue in the device > when using SSL to accept notices. What is everyone else using > when connecting with SSL? Is anyone using a Trust Manager? > > > Christopher Fahey > DealerRewards, Inc. > Maryland Branch Office > (410) 924-3185 > ------------------------------------------------------------------------ > This electronic message transmission contains information from > DealerRewards Inc. This message is confidential. It may also > be privileged or otherwise protected by work-product immunity > or other legal rules. If you have received it by mistake, > please let us know by email reply and delete it from your > system; you may not copy this message or disclose its contents > to anyone. > DISCLAIMER: Since 2006, the U.S. Government has been > monitoring all internet communications. If you have > information that you do not wish to have monitored, please > send it using regular postal services to the address listed on > our website. > ------------------------------------------------------------------------ > > > > _______________________________________________ > 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/20160816/4e130255/attachment.html From supittma at redhat.com Tue Aug 16 11:36:49 2016 From: supittma at redhat.com (Summers Pittman) Date: Tue, 16 Aug 2016 11:36:49 -0400 Subject: [Aerogear-users] SSL Issues In-Reply-To: <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> References: <1469086044672-756.post@n5.nabble.com> <9f9ed22f-2cd3-9502-1f9b-dadf38fa2d83@dealerrewards.net> <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> Message-ID: On Tue, Aug 16, 2016 at 11:23 AM, Christopher Fahey wrote: > I am still not getting past this issue. I am using Cordova. Can someone > explain to me the relationship between how the SSL connection in the > AeroGear plugin and the Cordova application connection are related? I am > starting to get the impression that they are not the same. I have a > plugin that replaces the SystemWebViewClient with an object that overrides > the "onReceivedSslError" function so that when a self signed SSL > certificate is encountered it can be told to allow it however this function > is never being called. > > Can someone please shed some light on this? It sounds like others have > done it but isn't anyone willing to share the secret on how it is > accomplished? > > > Sure, I'll give it a shot. Cordova provides an API for exposing native platform APIs to the javascript runtime in a web view. These APIs are called plugins. So on Android You call the cordova code which calls a Cordova plugin which calls native Android code. Android native code does NOT like self signed SSL certificates. To use a self signed certificate you need to import that certificate into your emulator or use certificate pinning found in Android N. Alternatively, don't use a self signed certificate. There are several free services you can use to to walk you through setting up a service with a properly signed certificate. > > Christopher Fahey > DealerRewards, Inc. > Maryland Branch Office > (410) 924-3185 > ------------------------------ > This electronic message transmission contains information from > DealerRewards Inc. This message is confidential. It may also be privileged > or otherwise protected by work-product immunity or other legal rules. If > you have received it by mistake, please let us know by email reply and > delete it from your system; you may not copy this message or disclose its > contents to anyone. > DISCLAIMER: Since 2006, the U.S. Government has been monitoring all > internet communications. If you have information that you do not wish to > have monitored, please send it using regular postal services to the address > listed on our website. > ------------------------------ > On 7/21/2016 1:45 PM, Summers Pittman wrote: > > Sorry, hit reply a bit faster than I meant to. > > You can also use https://www.openshift.com/ to host an instance of the > push server, run the push server on port 8080, set up your own DNS > configuration and add the signing certificate to Android's certificate > store. > > > > On Thu, Jul 21, 2016 at 1:42 PM, Summers Pittman > wrote: > >> I used Android N and pin a certificate. >> >> https://blog.sagaoftherealms.net/?p=578 >> >> >> >> On Thu, Jul 21, 2016 at 12:52 PM, Christopher Fahey < >> chris at dealerrewards.net> wrote: >> >>> Finally have it running! Not even sure what I did. Now I am running >>> into an SSL certificate error. It seems that android has a self-signed >>> certificate acceptance issue in the device when using SSL to accept >>> notices. What is everyone else using when connecting with SSL? Is anyone >>> using a Trust Manager? >>> >>> Christopher Fahey >>> DealerRewards, Inc. >>> Maryland Branch Office >>> (410) 924-3185 >>> ------------------------------ >>> This electronic message transmission contains information from >>> DealerRewards Inc. This message is confidential. It may also be privileged >>> or otherwise protected by work-product immunity or other legal rules. If >>> you have received it by mistake, please let us know by email reply and >>> delete it from your system; you may not copy this message or disclose its >>> contents to anyone. >>> DISCLAIMER: Since 2006, the U.S. Government has been monitoring all >>> internet communications. If you have information that you do not wish to >>> have monitored, please send it using regular postal services to the address >>> listed on our website. >>> ------------------------------ >>> >>> >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> >> > > > _______________________________________________ > Aerogear-users mailing listAerogear-users at lists.jboss.orghttps://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/20160816/94fd82cf/attachment-0001.html From chris at dealerrewards.net Tue Aug 16 16:56:22 2016 From: chris at dealerrewards.net (Christopher Fahey) Date: Tue, 16 Aug 2016 16:56:22 -0400 Subject: [Aerogear-users] SSL Issues In-Reply-To: References: <1469086044672-756.post@n5.nabble.com> <9f9ed22f-2cd3-9502-1f9b-dadf38fa2d83@dealerrewards.net> <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> Message-ID: <05b67f7f-3d8c-ca60-f22d-36f2b3d6fc8d@dealerrewards.net> Thanks. I got a test SSL cert from a trusted authority and gave up trying to use a self signed one. I am on to other things now. Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) 924-3185 ------------------------------------------------------------------------ This electronic message transmission contains information from DealerRewards Inc. This message is confidential. It may also be privileged or otherwise protected by work-product immunity or other legal rules. If you have received it by mistake, please let us know by email reply and delete it from your system; you may not copy this message or disclose its contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been monitoring all internet communications. If you have information that you do not wish to have monitored, please send it using regular postal services to the address listed on our website. ------------------------------------------------------------------------ On 8/16/2016 11:36 AM, Summers Pittman wrote: > > > On Tue, Aug 16, 2016 at 11:23 AM, Christopher Fahey > > wrote: > > I am still not getting past this issue. I am using Cordova. Can > someone explain to me the relationship between how the SSL > connection in the AeroGear plugin and the Cordova application > connection are related? I am starting to get the impression that > they are not the same. I have a plugin that replaces the > SystemWebViewClient with an object that overrides the > "onReceivedSslError" function so that when a self signed SSL > certificate is encountered it can be told to allow it however this > function is never being called. > > Can someone please shed some light on this? It sounds like others > have done it but isn't anyone willing to share the secret on how > it is accomplished? > > > > Sure, I'll give it a shot. > > Cordova provides an API for exposing native platform APIs to the > javascript runtime in a web view. These APIs are called plugins. > > So on Android You call the cordova code which calls a Cordova plugin > which calls native Android code. Android native code does NOT like > self signed SSL certificates. To use a self signed certificate you > need to import that certificate into your emulator or use certificate > pinning found in Android N. Alternatively, don't use a self signed > certificate. There are several free services you can use to to walk > you through setting up a service with a properly signed certificate. > > > Christopher Fahey > DealerRewards, Inc. > Maryland Branch Office > (410) 924-3185 > ------------------------------------------------------------------------ > This electronic message transmission contains information from > DealerRewards Inc. This message is confidential. It may also be > privileged or otherwise protected by work-product immunity or > other legal rules. If you have received it by mistake, please let > us know by email reply and delete it from your system; you may not > copy this message or disclose its contents to anyone. > DISCLAIMER: Since 2006, the U.S. Government has been monitoring > all internet communications. If you have information that you do > not wish to have monitored, please send it using regular postal > services to the address listed on our website. > ------------------------------------------------------------------------ > > On 7/21/2016 1:45 PM, Summers Pittman wrote: >> Sorry, hit reply a bit faster than I meant to. >> >> You can also use https://www.openshift.com/ to host an instance >> of the push server, run the push server on port 8080, set up your >> own DNS configuration and add the signing certificate to >> Android's certificate store. >> >> >> >> On Thu, Jul 21, 2016 at 1:42 PM, Summers Pittman >> > wrote: >> >> I used Android N and pin a certificate. >> >> https://blog.sagaoftherealms.net/?p=578 >> >> >> >> >> On Thu, Jul 21, 2016 at 12:52 PM, Christopher Fahey >> > wrote: >> >> Finally have it running! Not even sure what I did. Now >> I am running into an SSL certificate error. It seems >> that android has a self-signed certificate acceptance >> issue in the device when using SSL to accept notices. >> What is everyone else using when connecting with SSL? >> Is anyone using a Trust Manager? >> >> >> Christopher Fahey >> DealerRewards, Inc. >> Maryland Branch Office >> (410) 924-3185 >> ------------------------------------------------------------------------ >> This electronic message transmission contains information >> from DealerRewards Inc. This message is confidential. It >> may also be privileged or otherwise protected by >> work-product immunity or other legal rules. If you have >> received it by mistake, please let us know by email reply >> and delete it from your system; you may not copy this >> message or disclose its contents to anyone. >> DISCLAIMER: Since 2006, the U.S. Government has been >> monitoring all internet communications. If you have >> information that you do not wish to have monitored, >> please send it using regular postal services to the >> address listed on our website. >> ------------------------------------------------------------------------ >> >> >> >> _______________________________________________ >> 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 > > > _______________________________________________ > 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/20160816/53a3efce/attachment.html From chris at dealerrewards.net Tue Aug 16 16:58:24 2016 From: chris at dealerrewards.net (Christopher Fahey) Date: Tue, 16 Aug 2016 16:58:24 -0400 Subject: [Aerogear-users] missing project files: aerogear-unifiedpush-java-client In-Reply-To: References: <1469086044672-756.post@n5.nabble.com> <9f9ed22f-2cd3-9502-1f9b-dadf38fa2d83@dealerrewards.net> <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> Message-ID: <51310b8c-4e60-3987-b2c8-62b067490827@dealerrewards.net> Speaking of other things, can anyone tell me where I can find the following branch files: org.jboss.aerogear.unifiedpush.message.apns.* org.jboss.aerogear.unifiedpush.message.windows.* The files are not in the git repository. https://github.com/aerogear/aerogear-unifiedpush-java-client/tree/master/src/main/java/org/jboss/aerogear/unifiedpush Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) 924-3185 ------------------------------------------------------------------------ This electronic message transmission contains information from DealerRewards Inc. This message is confidential. It may also be privileged or otherwise protected by work-product immunity or other legal rules. If you have received it by mistake, please let us know by email reply and delete it from your system; you may not copy this message or disclose its contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been monitoring all internet communications. If you have information that you do not wish to have monitored, please send it using regular postal services to the address listed on our website. ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160816/3799a579/attachment-0001.html From dpassos at redhat.com Tue Aug 16 18:16:56 2016 From: dpassos at redhat.com (Daniel Passos) Date: Tue, 16 Aug 2016 19:16:56 -0300 Subject: [Aerogear-users] missing project files: aerogear-unifiedpush-java-client In-Reply-To: <51310b8c-4e60-3987-b2c8-62b067490827@dealerrewards.net> References: <1469086044672-756.post@n5.nabble.com> <9f9ed22f-2cd3-9502-1f9b-dadf38fa2d83@dealerrewards.net> <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> <51310b8c-4e60-3987-b2c8-62b067490827@dealerrewards.net> Message-ID: Hi Christopher, Those files are in aerogear-unifiedpush-server repo On Tue, Aug 16, 2016 at 5:58 PM, Christopher Fahey wrote: > Speaking of other things, can anyone tell me where I can find the > following branch files: > > org.jboss.aerogear.unifiedpush.message.apns.* > https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/apns > org.jboss.aerogear.unifiedpush.message.windows.* > https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/windows > The files are not in the git repository. > > https://github.com/aerogear/aerogear-unifiedpush-java- > client/tree/master/src/main/java/org/jboss/aerogear/unifiedpush > > Christopher Fahey > DealerRewards, Inc. > Maryland Branch Office > (410) 924-3185 > ------------------------------ > This electronic message transmission contains information from > DealerRewards Inc. This message is confidential. It may also be privileged > or otherwise protected by work-product immunity or other legal rules. If > you have received it by mistake, please let us know by email reply and > delete it from your system; you may not copy this message or disclose its > contents to anyone. > DISCLAIMER: Since 2006, the U.S. Government has been monitoring all > internet communications. If you have information that you do not wish to > have monitored, please send it using regular postal services to the address > listed on our website. > ------------------------------ > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- -- Passos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160816/6c6bd66d/attachment.html From matzew at apache.org Tue Aug 16 20:09:43 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Wed, 17 Aug 2016 02:09:43 +0200 Subject: [Aerogear-users] missing project files: aerogear-unifiedpush-java-client In-Reply-To: References: <1469086044672-756.post@n5.nabble.com> <9f9ed22f-2cd3-9502-1f9b-dadf38fa2d83@dealerrewards.net> <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> <51310b8c-4e60-3987-b2c8-62b067490827@dealerrewards.net> Message-ID: Their dependency is declared here: https://github.com/aerogear/aerogear-unifiedpush-java-client/blob/master/pom.xml#L85-L89 Note, that master branch onf the java-client is requiring 1.2.0- version of the UPS, while the 1.1.0 version of the java-client is supposed to work w/ UPS 1.1.x On Wed, Aug 17, 2016 at 12:16 AM, Daniel Passos wrote: > Hi Christopher, > > Those files are in aerogear-unifiedpush-server > repo > > > > On Tue, Aug 16, 2016 at 5:58 PM, Christopher Fahey < > chris at dealerrewards.net> wrote: > >> Speaking of other things, can anyone tell me where I can find the >> following branch files: >> >> org.jboss.aerogear.unifiedpush.message.apns.* >> > > https://github.com/aerogear/aerogear-unifiedpush-server/ > tree/master/push/model/src/main/java/org/jboss/aerogear/ > unifiedpush/message/apns > > >> org.jboss.aerogear.unifiedpush.message.windows.* >> > https://github.com/aerogear/aerogear-unifiedpush-server/ > tree/master/push/model/src/main/java/org/jboss/aerogear/ > unifiedpush/message/windows > > >> The files are not in the git repository. >> >> https://github.com/aerogear/aerogear-unifiedpush-java-client >> /tree/master/src/main/java/org/jboss/aerogear/unifiedpush >> >> Christopher Fahey >> DealerRewards, Inc. >> Maryland Branch Office >> (410) 924-3185 >> ------------------------------ >> This electronic message transmission contains information from >> DealerRewards Inc. This message is confidential. It may also be privileged >> or otherwise protected by work-product immunity or other legal rules. If >> you have received it by mistake, please let us know by email reply and >> delete it from your system; you may not copy this message or disclose its >> contents to anyone. >> DISCLAIMER: Since 2006, the U.S. Government has been monitoring all >> internet communications. If you have information that you do not wish to >> have monitored, please send it using regular postal services to the address >> listed on our website. >> ------------------------------ >> >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> > > > -- > -- Passos > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160817/e16a0f01/attachment.html From chris at dealerrewards.net Wed Aug 17 08:33:17 2016 From: chris at dealerrewards.net (Christopher Fahey) Date: Wed, 17 Aug 2016 08:33:17 -0400 Subject: [Aerogear-users] aerogear-unifiedpush-java-client In-Reply-To: References: <1469086044672-756.post@n5.nabble.com> <9f9ed22f-2cd3-9502-1f9b-dadf38fa2d83@dealerrewards.net> <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> <51310b8c-4e60-3987-b2c8-62b067490827@dealerrewards.net> Message-ID: <8b1fd0cb-3e1d-65fb-a14a-81fde57c238b@dealerrewards.net> I am using java client 1.1.0-final with UPS 1.1.1-final. I don't mean to be a constant thorn but I just keep running into these issues and never can find any solution to them. I have everything compiled and running. I have created an application within UPS with an android variant. I have my mobile app installed on my android phone. I can successfully send a notification using the UPS admin console to my app. The last part of the puzzle is to get the UPS java client working so I can integrate my server with UPS. I have written a small test program to test it but I receive the following error: Aug 17, 2016 8:17:10 AM org.jboss.aerogear.unifiedpush.DefaultPushSender submitPayload SEVERE: The Unified Push Server returned status code: 400 Why am I receiving this error? There is no indication in the Wildfly logs that it even handled the connection or why it rejected it. Here is the code: String notifyURL = "https://www.dealerrewards.com:8080/ag-push"; String appId = "3c726feb-52ce-52ce-52ce-f08e9993c715"; String appSecret = "11ba55f6-52ce-52ce-52ce-06a9672db6ae"; PushSender defaultPushSender = DefaultPushSender.withRootServerURL( notifyURL ) .pushApplicationId( appId ) .masterSecret( appSecret ) .build(); UnifiedMessage unifiedMessage = UnifiedMessage.withMessage() .alert("test") .criteria().aliases("mike") .build(); defaultPushSender.send( unifiedMessage, new MessageResponseCallback( ) { @Override public void onComplete( ) { // TODO Auto-generated method stub } } ); Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) 924-3185 ------------------------------------------------------------------------ This electronic message transmission contains information from DealerRewards Inc. This message is confidential. It may also be privileged or otherwise protected by work-product immunity or other legal rules. If you have received it by mistake, please let us know by email reply and delete it from your system; you may not copy this message or disclose its contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been monitoring all internet communications. If you have information that you do not wish to have monitored, please send it using regular postal services to the address listed on our website. ------------------------------------------------------------------------ On 8/16/2016 8:09 PM, Matthias Wessendorf wrote: > Their dependency is declared here: > https://github.com/aerogear/aerogear-unifiedpush-java-client/blob/master/pom.xml#L85-L89 > > Note, that master branch onf the java-client is requiring 1.2.0- > version of the UPS, > > while the 1.1.0 version of the java-client is supposed to work w/ UPS > 1.1.x > > > > On Wed, Aug 17, 2016 at 12:16 AM, Daniel Passos > wrote: > > Hi Christopher, > > Those files are in aerogear-unifiedpush-server > repo > > > On Tue, Aug 16, 2016 at 5:58 PM, Christopher Fahey > > wrote: > > Speaking of other things, can anyone tell me where I can find > the following branch files: > > org.jboss.aerogear.unifiedpush.message.apns.* > > > https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/apns > > > org.jboss.aerogear.unifiedpush.message.windows.* > > https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/windows > > > The files are not in the git repository. > > https://github.com/aerogear/aerogear-unifiedpush-java-client/tree/master/src/main/java/org/jboss/aerogear/unifiedpush > > > > Christopher Fahey > DealerRewards, Inc. > Maryland Branch Office > (410) 924-3185 > ------------------------------------------------------------------------ > This electronic message transmission contains information from > DealerRewards Inc. This message is confidential. It may also > be privileged or otherwise protected by work-product immunity > or other legal rules. If you have received it by mistake, > please let us know by email reply and delete it from your > system; you may not copy this message or disclose its contents > to anyone. > DISCLAIMER: Since 2006, the U.S. Government has been > monitoring all internet communications. If you have > information that you do not wish to have monitored, please > send it using regular postal services to the address listed on > our website. > ------------------------------------------------------------------------ > > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > > -- > -- Passos > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > > _______________________________________________ > 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/20160817/bac00ad0/attachment-0001.html From ya at sherpa-solutions.com Wed Aug 17 13:10:46 2016 From: ya at sherpa-solutions.com (Yoann Archambault) Date: Wed, 17 Aug 2016 13:10:46 -0400 Subject: [Aerogear-users] mobile SDKs keeping connections open? Message-ID: Hi, We migrated to Aerogear recently and now that our app is live, we are seeing 1000s of established TCP connections coming from our devices (Average of 1.5 connection per remote IP). I would expect the SDK to create a connection to register and the close it. Same for the "opened" metrics request. I've had to increase the maximum number of opened file descriptors for the wildfly user but i don't see this as a proper long term solution. Or am i missing something and somehow this is the expected behavior? - Aerogear server version is 1.1.3.Final - Although i am unable to confirm 100%, i think this issue happens on both ios and android SDKs. -- Yoann -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160817/327a222d/attachment.html From supittma at redhat.com Wed Aug 17 15:00:11 2016 From: supittma at redhat.com (Summers Pittman) Date: Wed, 17 Aug 2016 15:00:11 -0400 Subject: [Aerogear-users] mobile SDKs keeping connections open? In-Reply-To: References: Message-ID: On Wed, Aug 17, 2016 at 1:10 PM, Yoann Archambault wrote: > Hi, > > We migrated to Aerogear recently and now that our app is live, we are > seeing 1000s of established TCP connections coming from our devices > (Average of 1.5 connection per remote IP). > > I would expect the SDK to create a connection to register and the close > it. Same for the "opened" metrics request. > > I've had to increase the maximum number of opened file descriptors for the > wildfly user but i don't see this as a proper long term solution. > > Or am i missing something and somehow this is the expected behavior? > This isn't expected behavior. Do you have a public repository we can take a look at? We've never seen this behavior before. > > - Aerogear server version is 1.1.3.Final > - Although i am unable to confirm 100%, i think this issue happens on both > ios and android SDKs. > > What version of the client SDKs are you using? > -- > Yoann > > _______________________________________________ > 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/20160817/8f316a34/attachment.html From chris at dealerrewards.net Wed Aug 17 16:07:20 2016 From: chris at dealerrewards.net (Christopher Fahey) Date: Wed, 17 Aug 2016 16:07:20 -0400 Subject: [Aerogear-users] aerogear-unifiedpush-java-client In-Reply-To: <8b1fd0cb-3e1d-65fb-a14a-81fde57c238b@dealerrewards.net> References: <1469086044672-756.post@n5.nabble.com> <9f9ed22f-2cd3-9502-1f9b-dadf38fa2d83@dealerrewards.net> <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> <51310b8c-4e60-3987-b2c8-62b067490827@dealerrewards.net> <8b1fd0cb-3e1d-65fb-a14a-81fde57c238b@dealerrewards.net> Message-ID: <3499ba57-8565-5dfd-5ef9-6b03df5fed33@dealerrewards.net> Anyone? I went to the sender API tab on the variants screen and copied the CURL UPS Rest command and ran it. It failed. So clearly not a problem with the java client software I wrote. Clearly a problem with the push server. Does this function even work? Does anyone have it working? Why would it fail? Could it be that the settings are wrong in the server? curl -u "48f23d56-75a5-4a7f-a097-a62404e5a6e0:221a9e9f-a040-4111-96b1-1d1983576f56"\ -v -H "Accept: application/json"-H "Content-type: application/json"\ -X POST -d \ '{ "message": { "alert": "Hello from the curl HTTP Sender!", "sound": "default" } }'\ https://www.dealerrewards.com:8986/ag-push/rest/sender Note: Unnecessary use of -X or --request, POST is already inferred. * Trying 173.166.153.1... * Connected to www.dealerrewards.com (173.166.153.1) port 8986 (#0) * ALPN, offering http/1.1 * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * successfully set certificate verify locations: * CAfile: C:\Users\Chris\AppData\Local\Apps\cURL\bin\curl-ca-bundle.crt CApath: none * TLSv1.2 (OUT), TLS header, Certificate Status (22): * TLSv1.2 (OUT), TLS handshake, Client hello (1): * TLSv1.2 (IN), TLS handshake, Server hello (2): * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (IN), TLS handshake, Server key exchange (12): * TLSv1.2 (IN), TLS handshake, Server finished (14): * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): * TLSv1.2 (OUT), TLS change cipher, Client hello (1): * TLSv1.2 (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS change cipher, Client hello (1): * TLSv1.2 (IN), TLS handshake, Finished (20): * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-SHA256 * ALPN, server did not agree to a protocol * Server certificate: * subject: OU=Domain Control Validated; OU=Free SSL; CN=www.dealerrewards.com * start date: Aug 16 00:00:00 2016 GMT * expire date: Nov 14 23:59:59 2016 GMT * subjectAltName: www.dealerrewards.com matched * issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO RSA Domain Validation Secure Server CA * SSL certificate verify ok. * Server auth using Basic with user '48f23d56-75a5-4a7f-a097-a62404e5a6e0' > POST /ag-push/rest/sender HTTP/1.1 > Host: www.dealerrewards.com:8986 > Authorization: Basic NDhmMjNkNTYtNzVhNS00YTdmLWEwOTctYTYyNDA0ZTVhNmUwOjIyMWE5ZTlmLWEwNDAtNDExMS05NmIxLTFkMTk4MzU3NmY1Ng== > User-Agent: curl/7.46.0 > Accept: */* > Accept : application/json > Content-type : application/json > Content-Length: 25 > Content-Type: application/x-www-form-urlencoded > * upload completely sent off: 25 out of 25 bytes < HTTP/1.1 400 Bad Request < Connection: keep-alive < X-Powered-By: Undertow/1 < Server: WildFly/8 < Content-Type: text/html;charset=UTF-8 < Content-Length: 70 < Date: Wed, 17 Aug 2016 19:17:21 GMT < ErrorBad Request* Connection #0 to host www.dealerrewards.com left intact Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) 924-3185 ------------------------------------------------------------------------ This electronic message transmission contains information from DealerRewards Inc. This message is confidential. It may also be privileged or otherwise protected by work-product immunity or other legal rules. If you have received it by mistake, please let us know by email reply and delete it from your system; you may not copy this message or disclose its contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been monitoring all internet communications. If you have information that you do not wish to have monitored, please send it using regular postal services to the address listed on our website. ------------------------------------------------------------------------ On 8/17/2016 8:33 AM, Christopher Fahey wrote: > > I am using java client 1.1.0-final with UPS 1.1.1-final. > > I don't mean to be a constant thorn but I just keep running into these > issues and never can find any solution to them. > > I have everything compiled and running. I have created an application > within UPS with an android variant. I have my mobile app installed on > my android phone. I can successfully send a notification using the > UPS admin console to my app. The last part of the puzzle is to get > the UPS java client working so I can integrate my server with UPS. I > have written a small test program to test it but I receive the > following error: > > Aug 17, 2016 8:17:10 AM > org.jboss.aerogear.unifiedpush.DefaultPushSender submitPayload > SEVERE: The Unified Push Server returned status code: 400 > > Why am I receiving this error? > > There is no indication in the Wildfly logs that it even handled the > connection or why it rejected it. Here is the code: > > String notifyURL = "https://www.dealerrewards.com:8080/ag-push"; > String appId = "3c726feb-52ce-52ce-52ce-f08e9993c715"; > String appSecret = "11ba55f6-52ce-52ce-52ce-06a9672db6ae"; > > PushSender defaultPushSender = > DefaultPushSender.withRootServerURL( notifyURL ) > .pushApplicationId( appId ) > .masterSecret( appSecret ) > .build(); > > UnifiedMessage unifiedMessage = UnifiedMessage.withMessage() > .alert("test") > .criteria().aliases("mike") > .build(); > > defaultPushSender.send( unifiedMessage, new > MessageResponseCallback( ) > { > @Override > public void onComplete( ) > { > // TODO Auto-generated method stub > > } > } ); > > Christopher Fahey > DealerRewards, Inc. > Maryland Branch Office > (410) 924-3185 > ------------------------------------------------------------------------ > This electronic message transmission contains information from > DealerRewards Inc. This message is confidential. It may also be > privileged or otherwise protected by work-product immunity or other > legal rules. If you have received it by mistake, please let us know by > email reply and delete it from your system; you may not copy this > message or disclose its contents to anyone. > DISCLAIMER: Since 2006, the U.S. Government has been monitoring all > internet communications. If you have information that you do not wish > to have monitored, please send it using regular postal services to the > address listed on our website. > ------------------------------------------------------------------------ > > On 8/16/2016 8:09 PM, Matthias Wessendorf wrote: >> Their dependency is declared here: >> https://github.com/aerogear/aerogear-unifiedpush-java-client/blob/master/pom.xml#L85-L89 >> >> Note, that master branch onf the java-client is requiring 1.2.0- >> version of the UPS, >> >> while the 1.1.0 version of the java-client is supposed to work w/ UPS >> 1.1.x >> >> >> >> On Wed, Aug 17, 2016 at 12:16 AM, Daniel Passos > > wrote: >> >> Hi Christopher, >> >> Those files are in aerogear-unifiedpush-server >> repo >> >> >> On Tue, Aug 16, 2016 at 5:58 PM, Christopher Fahey >> > wrote: >> >> Speaking of other things, can anyone tell me where I can find >> the following branch files: >> >> org.jboss.aerogear.unifiedpush.message.apns.* >> >> >> https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/apns >> >> >> org.jboss.aerogear.unifiedpush.message.windows.* >> >> https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/windows >> >> >> The files are not in the git repository. >> >> https://github.com/aerogear/aerogear-unifiedpush-java-client/tree/master/src/main/java/org/jboss/aerogear/unifiedpush >> >> >> >> Christopher Fahey >> DealerRewards, Inc. >> Maryland Branch Office >> (410) 924-3185 >> ------------------------------------------------------------------------ >> This electronic message transmission contains information >> from DealerRewards Inc. This message is confidential. It may >> also be privileged or otherwise protected by work-product >> immunity or other legal rules. If you have received it by >> mistake, please let us know by email reply and delete it from >> your system; you may not copy this message or disclose its >> contents to anyone. >> DISCLAIMER: Since 2006, the U.S. Government has been >> monitoring all internet communications. If you have >> information that you do not wish to have monitored, please >> send it using regular postal services to the address listed >> on our website. >> ------------------------------------------------------------------------ >> >> >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> >> >> >> >> -- >> -- Passos >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> >> >> _______________________________________________ >> 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/20160817/dcb5dfa6/attachment-0001.html From faisakhtar at gmail.com Fri Aug 5 13:06:06 2016 From: faisakhtar at gmail.com (faisakhtar) Date: Fri, 5 Aug 2016 10:06:06 -0700 (MST) Subject: [Aerogear-users] Aerogear android crash on push notification receive Message-ID: <1470416766530-787.post@n5.nabble.com> Hi, I am trying to send push notifications to an android device using the Cordova Aerogear Push Plugin (3.0.0) and Unified Push Server. The push notification appears to be sent ok from the server however upon receipt on the device an error is thrown stating that the app has stopped working. When I try to send a push notification using a HTTP POST direct to GCM for our application the push notification appears fine on the device. But when we send a push notification through the Aerogear Unified Push Server using the "Send notification to this app" wizard or the REST API they both throw an error on the device. The same setup actually worked fine about 4 weeks ago, have the changes with GCM/FCM resulted in issues related to app crashes? Below is a log output showing the error on the device. 08-05 12:32:23.202: D/NotificationMessage(14698): onMessage - context: android.app.Application at fe58355 08-05 12:32:23.203: W/Bundle(14698): Key google.sent_time expected String but value was a java.lang.Long. The default value was returned. 08-05 12:32:23.203: W/Bundle(14698): Attempt to cast generated internal exception: 08-05 12:32:23.203: W/Bundle(14698): java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String 08-05 12:32:23.203: W/Bundle(14698): at android.os.BaseBundle.getString(BaseBundle.java:923) 08-05 12:32:23.203: W/Bundle(14698): at org.jboss.aerogear.cordova.push.Message.(Message.java:46) 08-05 12:32:23.203: W/Bundle(14698): at org.jboss.aerogear.cordova.push.NotificationMessageHandler.createNotification(NotificationMessageHandler.java:66) 08-05 12:32:23.203: W/Bundle(14698): at org.jboss.aerogear.cordova.push.NotificationMessageHandler.onMessage(NotificationMessageHandler.java:55) 08-05 12:32:23.203: W/Bundle(14698): at org.jboss.aerogear.android.unifiedpush.RegistrarManager$2.run(RegistrarManager.java:177) 08-05 12:32:23.203: W/Bundle(14698): at java.lang.Thread.run(Thread.java:818) 08-05 12:32:23.267: E/AndroidRuntime(14698): FATAL EXCEPTION: Thread-22055 08-05 12:32:23.267: E/AndroidRuntime(14698): Process: com.companyname.appname, PID: 14698 08-05 12:32:23.267: E/AndroidRuntime(14698): Theme: themes:{default=overlay:system, iconPack:system, fontPkg:system, com.android.systemui=overlay:system, com.android.systemui.navbar=overlay:system} 08-05 12:32:23.267: E/AndroidRuntime(14698): com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected STRING but was BEGIN_OBJECT 08-05 12:32:23.267: E/AndroidRuntime(14698): at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176) 08-05 12:32:23.267: E/AndroidRuntime(14698): at com.google.gson.Gson.fromJson(Gson.java:795) 08-05 12:32:23.267: E/AndroidRuntime(14698): at com.google.gson.Gson.fromJson(Gson.java:859) 08-05 12:32:23.267: E/AndroidRuntime(14698): at com.google.gson.Gson.fromJson(Gson.java:832) 08-05 12:32:23.267: E/AndroidRuntime(14698): at org.jboss.aerogear.android.store.sql.SQLStore.readAll(SQLStore.java:110) 08-05 12:32:23.267: E/AndroidRuntime(14698): at org.jboss.aerogear.cordova.push.NotificationMessageHandler.createNotification(NotificationMessageHandler.java:84) 08-05 12:32:23.267: E/AndroidRuntime(14698): at org.jboss.aerogear.cordova.push.NotificationMessageHandler.onMessage(NotificationMessageHandler.java:55) 08-05 12:32:23.267: E/AndroidRuntime(14698): at org.jboss.aerogear.android.unifiedpush.RegistrarManager$2.run(RegistrarManager.java:177) 08-05 12:32:23.267: E/AndroidRuntime(14698): at java.lang.Thread.run(Thread.java:818) 08-05 12:32:23.267: E/AndroidRuntime(14698): Caused by: java.lang.IllegalStateException: Expected STRING but was BEGIN_OBJECT 08-05 12:32:23.267: E/AndroidRuntime(14698): at com.google.gson.internal.bind.JsonTreeReader.nextString(JsonTreeReader.java:154) 08-05 12:32:23.267: E/AndroidRuntime(14698): at com.google.gson.internal.bind.TypeAdapters$13.read(TypeAdapters.java:349) 08-05 12:32:23.267: E/AndroidRuntime(14698): at com.google.gson.internal.bind.TypeAdapters$13.read(TypeAdapters.java:337) 08-05 12:32:23.267: E/AndroidRuntime(14698): at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) 08-05 12:32:23.267: E/AndroidRuntime(14698): at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:188) 08-05 12:32:23.267: E/AndroidRuntime(14698): at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:146) 08-05 12:32:23.267: E/AndroidRuntime(14698): at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93) 08-05 12:32:23.267: E/AndroidRuntime(14698): at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172) -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Aerogear-android-crash-on-push-notification-receive-tp787.html Sent from the aerogear-users mailing list archive at Nabble.com. From faisakhtar at gmail.com Mon Aug 8 09:07:27 2016 From: faisakhtar at gmail.com (faisakhtar) Date: Mon, 8 Aug 2016 06:07:27 -0700 (MST) Subject: [Aerogear-users] Aerogear android crash on push notification receive In-Reply-To: <1470416766530-787.post@n5.nabble.com> References: <1470416766530-787.post@n5.nabble.com> Message-ID: <1470661647180-788.post@n5.nabble.com> I have also found others who experienced a very similar issue (although not with Aerogear): https://github.com/morinel/gcmpush/issues/45 Does Aerogear have to release a patch to remedy this? -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/Aerogear-android-crash-on-push-notification-receive-tp787p788.html Sent from the aerogear-users mailing list archive at Nabble.com. From scm.blanc at gmail.com Thu Aug 18 05:04:16 2016 From: scm.blanc at gmail.com (Sebastien Blanc) Date: Thu, 18 Aug 2016 11:04:16 +0200 Subject: [Aerogear-users] aerogear-unifiedpush-java-client In-Reply-To: <3499ba57-8565-5dfd-5ef9-6b03df5fed33@dealerrewards.net> References: <1469086044672-756.post@n5.nabble.com> <9f9ed22f-2cd3-9502-1f9b-dadf38fa2d83@dealerrewards.net> <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> <51310b8c-4e60-3987-b2c8-62b067490827@dealerrewards.net> <8b1fd0cb-3e1d-65fb-a14a-81fde57c238b@dealerrewards.net> <3499ba57-8565-5dfd-5ef9-6b03df5fed33@dealerrewards.net> Message-ID: Did you solved it ? Because I just tried your CURL and it worked. You should also renew you secret. On Wed, Aug 17, 2016 at 10:07 PM, Christopher Fahey wrote: > Anyone? I went to the sender API tab on the variants screen and copied > the CURL UPS Rest command and ran it. > It failed. So clearly not a problem with the java client software I > wrote. Clearly a problem with the push server. Does this function even > work? Does anyone have it working? Why would it fail? Could it be that > the settings are wrong in the server? > > curl -u "48f23d56-75a5-4a7f-a097-a62404e5a6e0:221a9e9f-a040-4111-96b1-1d1983576f56" \ > -v -H "Accept: application/json" -H "Content-type: application/json" \ > -X POST -d \ > '{ > "message": { > "alert": "Hello from the curl HTTP Sender!", > "sound": "default" > } > }' \ > https://www.dealerrewards.com:8986/ag-push/rest/sender > > Note: Unnecessary use of -X or --request, POST is already inferred. > * Trying 173.166.153.1... > * Connected to www.dealerrewards.com (173.166.153.1) port 8986 (#0) > * ALPN, offering http/1.1 > * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@ > STRENGTH > * successfully set certificate verify locations: > * CAfile: C:\Users\Chris\AppData\Local\Apps\cURL\bin\curl-ca-bundle.crt > CApath: none > * TLSv1.2 (OUT), TLS header, Certificate Status (22): > * TLSv1.2 (OUT), TLS handshake, Client hello (1): > * TLSv1.2 (IN), TLS handshake, Server hello (2): > * TLSv1.2 (IN), TLS handshake, Certificate (11): > * TLSv1.2 (IN), TLS handshake, Server key exchange (12): > * TLSv1.2 (IN), TLS handshake, Server finished (14): > * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): > * TLSv1.2 (OUT), TLS change cipher, Client hello (1): > * TLSv1.2 (OUT), TLS handshake, Finished (20): > * TLSv1.2 (IN), TLS change cipher, Client hello (1): > * TLSv1.2 (IN), TLS handshake, Finished (20): > * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-SHA256 > * ALPN, server did not agree to a protocol > * Server certificate: > * subject: OU=Domain Control Validated; OU=Free SSL; CN= > www.dealerrewards.com > * start date: Aug 16 00:00:00 2016 GMT > * expire date: Nov 14 23:59:59 2016 GMT > * subjectAltName: www.dealerrewards.com matched > * issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA > Limited; CN=COMODO RSA Domain Validation Secure Server CA > * SSL certificate verify ok. > * Server auth using Basic with user '48f23d56-75a5-4a7f-a097-a62404e5a6e0' > > POST /ag-push/rest/sender HTTP/1.1 > > Host: www.dealerrewards.com:8986 > > Authorization: Basic NDhmMjNkNTYtNzVhNS00YTdmLWEwOT > ctYTYyNDA0ZTVhNmUwOjIyMWE5ZTlmLWEwNDAtNDExMS05NmIxLTFkMTk4MzU3NmY1Ng== > > User-Agent: curl/7.46.0 > > Accept: */* > > Accept : application/json > > Content-type : application/json > > Content-Length: 25 > > Content-Type: application/x-www-form-urlencoded > > > * upload completely sent off: 25 out of 25 bytes > < HTTP/1.1 400 Bad Request > < Connection: keep-alive > < X-Powered-By: Undertow/1 > < Server: WildFly/8 > < Content-Type: text/html;charset=UTF-8 > < Content-Length: 70 > < Date: Wed, 17 Aug 2016 19:17:21 GMT > < > ErrorBad Request* > Connection #0 to host www.dealerrewards.com left intact > > Christopher Fahey > DealerRewards, Inc. > Maryland Branch Office > (410) 924-3185 > ------------------------------ > This electronic message transmission contains information from > DealerRewards Inc. This message is confidential. It may also be privileged > or otherwise protected by work-product immunity or other legal rules. If > you have received it by mistake, please let us know by email reply and > delete it from your system; you may not copy this message or disclose its > contents to anyone. > DISCLAIMER: Since 2006, the U.S. Government has been monitoring all > internet communications. If you have information that you do not wish to > have monitored, please send it using regular postal services to the address > listed on our website. > ------------------------------ > On 8/17/2016 8:33 AM, Christopher Fahey wrote: > > I am using java client 1.1.0-final with UPS 1.1.1-final. > I don't mean to be a constant thorn but I just keep running into these > issues and never can find any solution to them. > > I have everything compiled and running. I have created an application > within UPS with an android variant. I have my mobile app installed on my > android phone. I can successfully send a notification using the UPS admin > console to my app. The last part of the puzzle is to get the UPS java > client working so I can integrate my server with UPS. I have written a > small test program to test it but I receive the following error: > > Aug 17, 2016 8:17:10 AM org.jboss.aerogear.unifiedpush.DefaultPushSender > submitPayload > SEVERE: The Unified Push Server returned status code: 400 > > Why am I receiving this error? > > There is no indication in the Wildfly logs that it even handled the > connection or why it rejected it. Here is the code: > > String notifyURL = "https://www.dealerrewards.com:8080/ag-push" > ; > String appId = "3c726feb-52ce-52ce-52ce-f08e9993c715"; > String appSecret = "11ba55f6-52ce-52ce-52ce-06a9672db6ae"; > > PushSender defaultPushSender = DefaultPushSender.withRootServerURL( > notifyURL ) > .pushApplicationId( appId ) > .masterSecret( appSecret ) > .build(); > > UnifiedMessage unifiedMessage = UnifiedMessage.withMessage() > .alert("test") > .criteria().aliases("mike") > .build(); > > defaultPushSender.send( unifiedMessage, new > MessageResponseCallback( ) > { > @Override > public void onComplete( ) > { > // TODO Auto-generated method stub > > } > } ); > > Christopher Fahey > DealerRewards, Inc. > Maryland Branch Office > (410) 924-3185 > ------------------------------ > This electronic message transmission contains information from > DealerRewards Inc. This message is confidential. It may also be privileged > or otherwise protected by work-product immunity or other legal rules. If > you have received it by mistake, please let us know by email reply and > delete it from your system; you may not copy this message or disclose its > contents to anyone. > DISCLAIMER: Since 2006, the U.S. Government has been monitoring all > internet communications. If you have information that you do not wish to > have monitored, please send it using regular postal services to the address > listed on our website. > ------------------------------ > On 8/16/2016 8:09 PM, Matthias Wessendorf wrote: > > Their dependency is declared here: > https://github.com/aerogear/aerogear-unifiedpush-java- > client/blob/master/pom.xml#L85-L89 > > Note, that master branch onf the java-client is requiring 1.2.0- version > of the UPS, > > while the 1.1.0 version of the java-client is supposed to work w/ UPS 1.1.x > > > > On Wed, Aug 17, 2016 at 12:16 AM, Daniel Passos > wrote: > >> Hi Christopher, >> >> Those files are in aerogear-unifiedpush-server >> repo >> >> >> On Tue, Aug 16, 2016 at 5:58 PM, Christopher Fahey < >> chris at dealerrewards.net> wrote: >> >>> Speaking of other things, can anyone tell me where I can find the >>> following branch files: >>> >>> org.jboss.aerogear.unifiedpush.message.apns.* >>> >> >> https://github.com/aerogear/aerogear-unifiedpush-server/tree >> /master/push/model/src/main/java/org/jboss/aerogear/unifie >> dpush/message/apns >> >> >>> org.jboss.aerogear.unifiedpush.message.windows.* >>> >> https://github.com/aerogear/aerogear-unifiedpush-server/tree >> /master/push/model/src/main/java/org/jboss/aerogear/unifie >> dpush/message/windows >> >> >>> The files are not in the git repository. >>> >>> https://github.com/aerogear/aerogear-unifiedpush-java-client >>> /tree/master/src/main/java/org/jboss/aerogear/unifiedpush >>> >>> Christopher Fahey >>> DealerRewards, Inc. >>> Maryland Branch Office >>> (410) 924-3185 <%28410%29%20924-3185> >>> ------------------------------ >>> This electronic message transmission contains information from >>> DealerRewards Inc. This message is confidential. It may also be privileged >>> or otherwise protected by work-product immunity or other legal rules. If >>> you have received it by mistake, please let us know by email reply and >>> delete it from your system; you may not copy this message or disclose its >>> contents to anyone. >>> DISCLAIMER: Since 2006, the U.S. Government has been monitoring all >>> internet communications. If you have information that you do not wish to >>> have monitored, please send it using regular postal services to the address >>> listed on our website. >>> ------------------------------ >>> >>> >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> >> >> >> -- >> -- Passos >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > > _______________________________________________ > Aerogear-users mailing listAerogear-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > _______________________________________________ > Aerogear-users mailing listAerogear-users at lists.jboss.orghttps://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/20160818/713fcb37/attachment-0001.html From chris at dealerrewards.net Thu Aug 18 07:29:08 2016 From: chris at dealerrewards.net (Christopher Fahey) Date: Thu, 18 Aug 2016 07:29:08 -0400 Subject: [Aerogear-users] aerogear-unifiedpush-java-client In-Reply-To: References: <1469086044672-756.post@n5.nabble.com> <9f9ed22f-2cd3-9502-1f9b-dadf38fa2d83@dealerrewards.net> <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> <51310b8c-4e60-3987-b2c8-62b067490827@dealerrewards.net> <8b1fd0cb-3e1d-65fb-a14a-81fde57c238b@dealerrewards.net> <3499ba57-8565-5dfd-5ef9-6b03df5fed33@dealerrewards.net> Message-ID: I solved the Curl part. Still no luck with the java client. This is the code straight from the UI that doesn't work. finalPushSendersender =DefaultPushSender.withRootServerURL("https://www.dealerrewards.com:8986/ag-push/").pushApplicationId("48f23d56-75a5-4a7f-a097-a62404e5a6e0").masterSecret("221a9e9f-a040-4111-96b1-1d1983576f56").build();finalUnifiedMessageunifiedMessage =UnifiedMessage.withMessage().alert("Hello from Java Sender API!").build();sender.send(unifiedMessage,newMessageResponseCallback(){@OverridepublicvoidonComplete(){//do cool stuff}}); This is the error: Aug 18, 2016 7:27:09 AM org.jboss.aerogear.unifiedpush.DefaultPushSender submitPayload INFO: HTTP Response code from UnifiedPush Server: 400 Aug 18, 2016 7:27:09 AM org.jboss.aerogear.unifiedpush.DefaultPushSender submitPayload SEVERE: The Unified Push Server returned status code: 400 Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) 924-3185 ------------------------------------------------------------------------ This electronic message transmission contains information from DealerRewards Inc. This message is confidential. It may also be privileged or otherwise protected by work-product immunity or other legal rules. If you have received it by mistake, please let us know by email reply and delete it from your system; you may not copy this message or disclose its contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been monitoring all internet communications. If you have information that you do not wish to have monitored, please send it using regular postal services to the address listed on our website. ------------------------------------------------------------------------ On 8/18/2016 5:04 AM, Sebastien Blanc wrote: > Did you solved it ? > Because I just tried your CURL and it worked. > > You should also renew you secret. > > On Wed, Aug 17, 2016 at 10:07 PM, Christopher Fahey > > wrote: > > Anyone? I went to the sender API tab on the variants screen and > copied the CURL UPS Rest command and ran it. > > It failed. So clearly not a problem with the java client > software I wrote. Clearly a problem with the push server. Does > this function even work? Does anyone have it working? Why would > it fail? Could it be that the settings are wrong in the server? > > curl -u > "48f23d56-75a5-4a7f-a097-a62404e5a6e0:221a9e9f-a040-4111-96b1-1d1983576f56"\ > -v -H "Accept: application/json"-H "Content-type: > application/json"\ -X POST -d \ '{ "message": { "alert": "Hello > from the curl HTTP Sender!", "sound": "default" } }'\ > https://www.dealerrewards.com:8986/ag-push/rest/sender > > > Note: Unnecessary use of -X or --request, POST is already > inferred. * Trying 173.166.153.1... * Connected to > www.dealerrewards.com > (173.166.153.1) port 8986 (#0) * ALPN, offering http/1.1 * Cipher > selection: > ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * > successfully set certificate verify locations: * CAfile: > C:\Users\Chris\AppData\Local\Apps\cURL\bin\curl-ca-bundle.crt > CApath: none * TLSv1.2 (OUT), TLS header, Certificate Status (22): > * TLSv1.2 (OUT), TLS handshake, Client hello (1): * TLSv1.2 (IN), > TLS handshake, Server hello (2): * TLSv1.2 (IN), TLS handshake, > Certificate (11): * TLSv1.2 (IN), TLS handshake, Server key > exchange (12): * TLSv1.2 (IN), TLS handshake, Server finished > (14): * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): * > TLSv1.2 (OUT), TLS change cipher, Client hello (1): * TLSv1.2 > (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS change > cipher, Client hello (1): * TLSv1.2 (IN), TLS handshake, Finished > (20): * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-SHA256 * > ALPN, server did not agree to a protocol * Server certificate: > * subject: OU=Domain Control Validated; OU=Free SSL; > CN=www.dealerrewards.com * > start date: Aug 16 00:00:00 2016 GMT * expire date: Nov 14 > 23:59:59 2016 GMT * subjectAltName: www.dealerrewards.com > matched * issuer: C=GB; > ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO > RSA Domain Validation Secure Server CA * SSL certificate > verify ok. * Server auth using Basic with user > '48f23d56-75a5-4a7f-a097-a62404e5a6e0' > POST /ag-push/rest/sender > HTTP/1.1 > Host: www.dealerrewards.com:8986 > > Authorization: Basic > NDhmMjNkNTYtNzVhNS00YTdmLWEwOTctYTYyNDA0ZTVhNmUwOjIyMWE5ZTlmLWEwNDAtNDExMS05NmIxLTFkMTk4MzU3NmY1Ng== > > User-Agent: curl/7.46.0 > Accept: */* > Accept : > application/json > Content-type : application/json > > Content-Length: 25 > Content-Type: > application/x-www-form-urlencoded > * upload completely sent off: > 25 out of 25 bytes < HTTP/1.1 400 Bad Request < Connection: > keep-alive < X-Powered-By: Undertow/1 < Server: WildFly/8 < > Content-Type: text/html;charset=UTF-8 < Content-Length: 70 < Date: > Wed, 17 Aug 2016 19:17:21 GMT < > ErrorBad > Request* Connection #0 to host www.dealerrewards.com > left intact > Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) > 924-3185 > ------------------------------------------------------------------------ > This electronic message transmission contains information from > DealerRewards Inc. This message is confidential. It may also be > privileged or otherwise protected by work-product immunity or > other legal rules. If you have received it by mistake, please let > us know by email reply and delete it from your system; you may not > copy this message or disclose its contents to anyone. DISCLAIMER: > Since 2006, the U.S. Government has been monitoring all internet > communications. If you have information that you do not wish to > have monitored, please send it using regular postal services to > the address listed on our website. > ------------------------------------------------------------------------ > > On 8/17/2016 8:33 AM, Christopher Fahey wrote: >> >> I am using java client 1.1.0-final with UPS 1.1.1-final. >> >> I don't mean to be a constant thorn but I just keep running into >> these issues and never can find any solution to them. I have >> everything compiled and running. I have created an application >> within UPS with an android variant. I have my mobile app >> installed on my android phone. I can successfully send a >> notification using the UPS admin console to my app. The last >> part of the puzzle is to get the UPS java client working so I can >> integrate my server with UPS. I have written a small test >> program to test it but I receive the following error: Aug 17, >> 2016 8:17:10 AM org.jboss.aerogear.unifiedpush.DefaultPushSender >> submitPayload SEVERE: The Unified Push Server returned status >> code: 400 Why am I receiving this error? There is no indication >> in the Wildfly logs that it even handled the connection or why it >> rejected it. Here is the code: String notifyURL = >> "https://www.dealerrewards.com:8080/ag-push" >> ; String >> appId = "3c726feb-52ce-52ce-52ce-f08e9993c715"; String >> appSecret = "11ba55f6-52ce-52ce-52ce-06a9672db6ae"; >> PushSender defaultPushSender = >> DefaultPushSender.withRootServerURL( notifyURL ) >> .pushApplicationId( appId ) >> .masterSecret( appSecret ) >> .build(); UnifiedMessage unifiedMessage = >> UnifiedMessage.withMessage() >> .alert("test") >> .criteria().aliases("mike") .build(); >> defaultPushSender.send( unifiedMessage, new >> MessageResponseCallback( ) { @Override >> public void onComplete( ) { >> // TODO Auto-generated method stub } } ); >> Christopher Fahey DealerRewards, Inc. Maryland Branch Office >> (410) 924-3185 >> ------------------------------------------------------------------------ >> This electronic message transmission contains information from >> DealerRewards Inc. This message is confidential. It may also be >> privileged or otherwise protected by work-product immunity or >> other legal rules. If you have received it by mistake, please let >> us know by email reply and delete it from your system; you may >> not copy this message or disclose its contents to anyone. >> DISCLAIMER: Since 2006, the U.S. Government has been monitoring >> all internet communications. If you have information that you do >> not wish to have monitored, please send it using regular postal >> services to the address listed on our website. >> ------------------------------------------------------------------------ >> >> On 8/16/2016 8:09 PM, Matthias Wessendorf wrote: >>> Their dependency is declared here: >>> https://github.com/aerogear/aerogear-unifiedpush-java-client/blob/master/pom.xml#L85-L89 >>> >>> >>> Note, that master branch onf the java-client is requiring 1.2.0- >>> version of the UPS, >>> while the 1.1.0 version of the java-client is supposed to work >>> w/ UPS 1.1.x >>> On Wed, Aug 17, 2016 at 12:16 AM, Daniel Passos >>> > wrote: >>> >>> Hi Christopher, >>> Those files are in aerogear-unifiedpush-server >>> repo >>> On Tue, Aug 16, 2016 at 5:58 PM, Christopher Fahey >>> > >>> wrote: >>> >>> Speaking of other things, can anyone tell me where I can >>> find the following branch files: >>> >>> org.jboss.aerogear.unifiedpush.message.apns.* >>> >>> https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/apns >>> >>> >>> >>> org.jboss.aerogear.unifiedpush.message.windows.* >>> >>> https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/windows >>> >>> >>> >>> The files are not in the git repository. >>> >>> https://github.com/aerogear/aerogear-unifiedpush-java-client/tree/master/src/main/java/org/jboss/aerogear/unifiedpush >>> >>> >>> Christopher Fahey DealerRewards, Inc. Maryland Branch >>> Office (410) 924-3185 >>> ------------------------------------------------------------------------ >>> This electronic message transmission contains >>> information from DealerRewards Inc. This message is >>> confidential. It may also be privileged or otherwise >>> protected by work-product immunity or other legal rules. >>> If you have received it by mistake, please let us know >>> by email reply and delete it from your system; you may >>> not copy this message or disclose its contents to >>> anyone. DISCLAIMER: Since 2006, the U.S. Government has >>> been monitoring all internet communications. If you have >>> information that you do not wish to have monitored, >>> please send it using regular postal services to the >>> address listed on our website. >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> >>> -- >>> -- Passos >>> _______________________________________________ >>> Aerogear-users mailing list Aerogear-users at lists.jboss.org >>> >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> >>> -- >>> Matthias Wessendorf blog: >>> http://matthiaswessendorf.wordpress.com/ >>> twitter: >>> http://twitter.com/mwessendorf >>> >>> _______________________________________________ >>> 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 > > > _______________________________________________ > 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/20160818/7df8f932/attachment-0001.html From edewit at redhat.com Thu Aug 18 08:05:48 2016 From: edewit at redhat.com (Erik Jan de Wit) Date: Thu, 18 Aug 2016 14:05:48 +0200 Subject: [Aerogear-users] Aerogear android crash on push notification receive In-Reply-To: <1470661647180-788.post@n5.nabble.com> References: <1470416766530-787.post@n5.nabble.com> <1470661647180-788.post@n5.nabble.com> Message-ID: it seems there is a 'google.sent_time' property in your user data that is a long instead of the expected string. There is currently no fix for this available would you mind creating an issue for it with your log attached? On Mon, Aug 8, 2016 at 3:07 PM, faisakhtar wrote: > I have also found others who experienced a very similar issue (although not > with Aerogear): > https://github.com/morinel/gcmpush/issues/45 > > Does Aerogear have to release a patch to remedy this? > > > > -- > View this message in context: http://aerogear-users.1116366. > n5.nabble.com/Aerogear-android-crash-on-push-notification-receive- > tp787p788.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 > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160818/ef5090ba/attachment.html From chris at dealerrewards.net Thu Aug 18 12:48:27 2016 From: chris at dealerrewards.net (Christopher Fahey) Date: Thu, 18 Aug 2016 12:48:27 -0400 Subject: [Aerogear-users] aerogear-unifiedpush-java-client In-Reply-To: References: <1469086044672-756.post@n5.nabble.com> <9f9ed22f-2cd3-9502-1f9b-dadf38fa2d83@dealerrewards.net> <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> <51310b8c-4e60-3987-b2c8-62b067490827@dealerrewards.net> <8b1fd0cb-3e1d-65fb-a14a-81fde57c238b@dealerrewards.net> <3499ba57-8565-5dfd-5ef9-6b03df5fed33@dealerrewards.net> Message-ID: <33452d98-61e9-cf36-7e45-26b0998f7672@dealerrewards.net> I am diving deeper into the problem. The client sent this: {"message":{"alert":"Hello from Java Sender API!","sound":null,"badge":-1,"priority":"normal","consolidationKey":null,"windows":{"type":null,"duration":null,"badge":null,"tileType":null,"toastType":null,"images":[],"textFields":[],"page":null},"apns":{"title":null,"action":null,"action-category":null,"localized-key":null,"localized-arguments":null,"localized-title-key":null,"localized-title-arguments":null,"url-args":null,"content-available":false},"user-data":{},"simple-push":null},"criteria":{"categories":null,"variants":null,"alias":null,"deviceType":null},"config":{"ttl":-1}} Perhaps someone can tell me why the error is this: Unrecognized field "priority" (Class org.jboss.aerogear.unifiedpush.message.Message), not marked as ignorable at [Source: io.undertow.servlet.spec.ServletInputStreamImpl at 1579f57; line: 1, column: 87] (through reference chain: org.jboss.aerogear.unifiedpush.message.InternalUnifiedPushMessage["message"]->org.jboss.aerogear.unifiedpush.message.Message["priority"]) Is it a version issue? I used the pom.xml from version 1.1.0 with maven to build the client. Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) 924-3185 ------------------------------------------------------------------------ This electronic message transmission contains information from DealerRewards Inc. This message is confidential. It may also be privileged or otherwise protected by work-product immunity or other legal rules. If you have received it by mistake, please let us know by email reply and delete it from your system; you may not copy this message or disclose its contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been monitoring all internet communications. If you have information that you do not wish to have monitored, please send it using regular postal services to the address listed on our website. ------------------------------------------------------------------------ On 8/18/2016 5:04 AM, Sebastien Blanc wrote: > Did you solved it ? > Because I just tried your CURL and it worked. > > You should also renew you secret. > > On Wed, Aug 17, 2016 at 10:07 PM, Christopher Fahey > > wrote: > > Anyone? I went to the sender API tab on the variants screen and > copied the CURL UPS Rest command and ran it. > > It failed. So clearly not a problem with the java client > software I wrote. Clearly a problem with the push server. Does > this function even work? Does anyone have it working? Why would > it fail? Could it be that the settings are wrong in the server? > > curl -u > "48f23d56-75a5-4a7f-a097-a62404e5a6e0:221a9e9f-a040-4111-96b1-1d1983576f56"\ > -v -H "Accept: application/json"-H "Content-type: > application/json"\ -X POST -d \ '{ "message": { "alert": "Hello > from the curl HTTP Sender!", "sound": "default" } }'\ > https://www.dealerrewards.com:8986/ag-push/rest/sender > > > Note: Unnecessary use of -X or --request, POST is already > inferred. * Trying 173.166.153.1... * Connected to > www.dealerrewards.com > (173.166.153.1) port 8986 (#0) * ALPN, offering http/1.1 * Cipher > selection: > ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * > successfully set certificate verify locations: * CAfile: > C:\Users\Chris\AppData\Local\Apps\cURL\bin\curl-ca-bundle.crt > CApath: none * TLSv1.2 (OUT), TLS header, Certificate Status (22): > * TLSv1.2 (OUT), TLS handshake, Client hello (1): * TLSv1.2 (IN), > TLS handshake, Server hello (2): * TLSv1.2 (IN), TLS handshake, > Certificate (11): * TLSv1.2 (IN), TLS handshake, Server key > exchange (12): * TLSv1.2 (IN), TLS handshake, Server finished > (14): * TLSv1.2 (OUT), TLS handshake, Client key exchange (16): * > TLSv1.2 (OUT), TLS change cipher, Client hello (1): * TLSv1.2 > (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS change > cipher, Client hello (1): * TLSv1.2 (IN), TLS handshake, Finished > (20): * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-SHA256 * > ALPN, server did not agree to a protocol * Server certificate: > * subject: OU=Domain Control Validated; OU=Free SSL; > CN=www.dealerrewards.com * > start date: Aug 16 00:00:00 2016 GMT * expire date: Nov 14 > 23:59:59 2016 GMT * subjectAltName: www.dealerrewards.com > matched * issuer: C=GB; > ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO > RSA Domain Validation Secure Server CA * SSL certificate > verify ok. * Server auth using Basic with user > '48f23d56-75a5-4a7f-a097-a62404e5a6e0' > POST /ag-push/rest/sender > HTTP/1.1 > Host: www.dealerrewards.com:8986 > > Authorization: Basic > NDhmMjNkNTYtNzVhNS00YTdmLWEwOTctYTYyNDA0ZTVhNmUwOjIyMWE5ZTlmLWEwNDAtNDExMS05NmIxLTFkMTk4MzU3NmY1Ng== > > User-Agent: curl/7.46.0 > Accept: */* > Accept : > application/json > Content-type : application/json > > Content-Length: 25 > Content-Type: > application/x-www-form-urlencoded > * upload completely sent off: > 25 out of 25 bytes < HTTP/1.1 400 Bad Request < Connection: > keep-alive < X-Powered-By: Undertow/1 < Server: WildFly/8 < > Content-Type: text/html;charset=UTF-8 < Content-Length: 70 < Date: > Wed, 17 Aug 2016 19:17:21 GMT < > ErrorBad > Request* Connection #0 to host www.dealerrewards.com > left intact > Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) > 924-3185 > ------------------------------------------------------------------------ > This electronic message transmission contains information from > DealerRewards Inc. This message is confidential. It may also be > privileged or otherwise protected by work-product immunity or > other legal rules. If you have received it by mistake, please let > us know by email reply and delete it from your system; you may not > copy this message or disclose its contents to anyone. DISCLAIMER: > Since 2006, the U.S. Government has been monitoring all internet > communications. If you have information that you do not wish to > have monitored, please send it using regular postal services to > the address listed on our website. > ------------------------------------------------------------------------ > > On 8/17/2016 8:33 AM, Christopher Fahey wrote: >> >> I am using java client 1.1.0-final with UPS 1.1.1-final. >> >> I don't mean to be a constant thorn but I just keep running into >> these issues and never can find any solution to them. I have >> everything compiled and running. I have created an application >> within UPS with an android variant. I have my mobile app >> installed on my android phone. I can successfully send a >> notification using the UPS admin console to my app. The last >> part of the puzzle is to get the UPS java client working so I can >> integrate my server with UPS. I have written a small test >> program to test it but I receive the following error: Aug 17, >> 2016 8:17:10 AM org.jboss.aerogear.unifiedpush.DefaultPushSender >> submitPayload SEVERE: The Unified Push Server returned status >> code: 400 Why am I receiving this error? There is no indication >> in the Wildfly logs that it even handled the connection or why it >> rejected it. Here is the code: String notifyURL = >> "https://www.dealerrewards.com:8080/ag-push" >> ; String >> appId = "3c726feb-52ce-52ce-52ce-f08e9993c715"; String >> appSecret = "11ba55f6-52ce-52ce-52ce-06a9672db6ae"; >> PushSender defaultPushSender = >> DefaultPushSender.withRootServerURL( notifyURL ) >> .pushApplicationId( appId ) >> .masterSecret( appSecret ) >> .build(); UnifiedMessage unifiedMessage = >> UnifiedMessage.withMessage() >> .alert("test") >> .criteria().aliases("mike") .build(); >> defaultPushSender.send( unifiedMessage, new >> MessageResponseCallback( ) { @Override >> public void onComplete( ) { >> // TODO Auto-generated method stub } } ); >> Christopher Fahey DealerRewards, Inc. Maryland Branch Office >> (410) 924-3185 >> ------------------------------------------------------------------------ >> This electronic message transmission contains information from >> DealerRewards Inc. This message is confidential. It may also be >> privileged or otherwise protected by work-product immunity or >> other legal rules. If you have received it by mistake, please let >> us know by email reply and delete it from your system; you may >> not copy this message or disclose its contents to anyone. >> DISCLAIMER: Since 2006, the U.S. Government has been monitoring >> all internet communications. If you have information that you do >> not wish to have monitored, please send it using regular postal >> services to the address listed on our website. >> ------------------------------------------------------------------------ >> >> On 8/16/2016 8:09 PM, Matthias Wessendorf wrote: >>> Their dependency is declared here: >>> https://github.com/aerogear/aerogear-unifiedpush-java-client/blob/master/pom.xml#L85-L89 >>> >>> >>> Note, that master branch onf the java-client is requiring 1.2.0- >>> version of the UPS, >>> while the 1.1.0 version of the java-client is supposed to work >>> w/ UPS 1.1.x >>> On Wed, Aug 17, 2016 at 12:16 AM, Daniel Passos >>> > wrote: >>> >>> Hi Christopher, >>> Those files are in aerogear-unifiedpush-server >>> repo >>> On Tue, Aug 16, 2016 at 5:58 PM, Christopher Fahey >>> > >>> wrote: >>> >>> Speaking of other things, can anyone tell me where I can >>> find the following branch files: >>> >>> org.jboss.aerogear.unifiedpush.message.apns.* >>> >>> https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/apns >>> >>> >>> >>> org.jboss.aerogear.unifiedpush.message.windows.* >>> >>> https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/windows >>> >>> >>> >>> The files are not in the git repository. >>> >>> https://github.com/aerogear/aerogear-unifiedpush-java-client/tree/master/src/main/java/org/jboss/aerogear/unifiedpush >>> >>> >>> Christopher Fahey DealerRewards, Inc. Maryland Branch >>> Office (410) 924-3185 >>> ------------------------------------------------------------------------ >>> This electronic message transmission contains >>> information from DealerRewards Inc. This message is >>> confidential. It may also be privileged or otherwise >>> protected by work-product immunity or other legal rules. >>> If you have received it by mistake, please let us know >>> by email reply and delete it from your system; you may >>> not copy this message or disclose its contents to >>> anyone. DISCLAIMER: Since 2006, the U.S. Government has >>> been monitoring all internet communications. If you have >>> information that you do not wish to have monitored, >>> please send it using regular postal services to the >>> address listed on our website. >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Aerogear-users mailing list >>> Aerogear-users at lists.jboss.org >>> >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> >>> -- >>> -- Passos >>> _______________________________________________ >>> Aerogear-users mailing list Aerogear-users at lists.jboss.org >>> >>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> >>> -- >>> Matthias Wessendorf blog: >>> http://matthiaswessendorf.wordpress.com/ >>> twitter: >>> http://twitter.com/mwessendorf >>> >>> _______________________________________________ >>> 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 > > > _______________________________________________ > 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/20160818/d1a18e2f/attachment-0001.html From scm.blanc at gmail.com Thu Aug 18 13:06:01 2016 From: scm.blanc at gmail.com (Sebastien Blanc) Date: Thu, 18 Aug 2016 19:06:01 +0200 Subject: [Aerogear-users] aerogear-unifiedpush-java-client In-Reply-To: <33452d98-61e9-cf36-7e45-26b0998f7672@dealerrewards.net> References: <1469086044672-756.post@n5.nabble.com> <9f9ed22f-2cd3-9502-1f9b-dadf38fa2d83@dealerrewards.net> <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> <51310b8c-4e60-3987-b2c8-62b067490827@dealerrewards.net> <8b1fd0cb-3e1d-65fb-a14a-81fde57c238b@dealerrewards.net> <3499ba57-8565-5dfd-5ef9-6b03df5fed33@dealerrewards.net> <33452d98-61e9-cf36-7e45-26b0998f7672@dealerrewards.net> Message-ID: Hi, Looks like indeed an version issue, "priority" has been added after 1.1 . Are you sure that in your java client POM you have this : org.jboss.aerogear.unifiedpush unifiedpush-push-model 1.1.0.Final ? On Thu, Aug 18, 2016 at 6:48 PM, Christopher Fahey wrote: > I am diving deeper into the problem. The client sent this: > > {"message":{"alert":"Hello from Java Sender API!","sound":null,"badge":-1, > "priority":"normal","consolidationKey":null,"windows":{"type":null," > duration":null,"badge":null,"tileType":null,"toastType": > null,"images":[],"textFields":[],"page":null},"apns":{" > title":null,"action":null,"action-category":null,"localized-key":null," > localized-arguments":null,"localized-title-key":null," > localized-title-arguments":null,"url-args":null,"content- > available":false},"user-data":{},"simple-push":null}," > criteria":{"categories":null,"variants":null,"alias":null," > deviceType":null},"config":{"ttl":-1}} > > Perhaps someone can tell me why the error is this: > > Unrecognized field "priority" (Class org.jboss.aerogear.unifiedpush.message.Message), > not marked as ignorable > at [Source: io.undertow.servlet.spec.ServletInputStreamImpl at 1579f57; > line: 1, column: 87] (through reference chain: org.jboss.aerogear. > unifiedpush.message.InternalUnifiedPushMessage[" > message"]->org.jboss.aerogear.unifiedpush.message.Message["priority"]) > > > Is it a version issue? I used the pom.xml from version 1.1.0 with maven > to build the client. > > Christopher Fahey > DealerRewards, Inc. > Maryland Branch Office > (410) 924-3185 > ------------------------------ > This electronic message transmission contains information from > DealerRewards Inc. This message is confidential. It may also be privileged > or otherwise protected by work-product immunity or other legal rules. If > you have received it by mistake, please let us know by email reply and > delete it from your system; you may not copy this message or disclose its > contents to anyone. > DISCLAIMER: Since 2006, the U.S. Government has been monitoring all > internet communications. If you have information that you do not wish to > have monitored, please send it using regular postal services to the address > listed on our website. > ------------------------------ > On 8/18/2016 5:04 AM, Sebastien Blanc wrote: > > Did you solved it ? > Because I just tried your CURL and it worked. > > You should also renew you secret. > > On Wed, Aug 17, 2016 at 10:07 PM, Christopher Fahey < > chris at dealerrewards.net> wrote: > >> Anyone? I went to the sender API tab on the variants screen and copied >> the CURL UPS Rest command and ran it. >> It failed. So clearly not a problem with the java client software I >> wrote. Clearly a problem with the push server. Does this function even >> work? Does anyone have it working? Why would it fail? Could it be that >> the settings are wrong in the server? >> >> curl -u "48f23d56-75a5-4a7f-a097-a62404e5a6e0:221a9e9f-a040-4111-96b1-1d1983576f56" \ >> -v -H "Accept: application/json" -H "Content-type: application/json" \ >> -X POST -d \ >> '{ >> "message": { >> "alert": "Hello from the curl HTTP Sender!", >> "sound": "default" >> } >> }' \ >> https://www.dealerrewards.com:8986/ag-push/rest/sender >> >> Note: Unnecessary use of -X or --request, POST is already inferred. * >> Trying 173.166.153.1... * Connected to www.dealerrewards.com >> (173.166.153.1) port 8986 (#0) * ALPN, offering http/1.1 * Cipher >> selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * >> successfully set certificate verify locations: * CAfile: >> C:\Users\Chris\AppData\Local\Apps\cURL\bin\curl-ca-bundle.crt CApath: >> none * TLSv1.2 (OUT), TLS header, Certificate Status (22): * TLSv1.2 (OUT), >> TLS handshake, Client hello (1): * TLSv1.2 (IN), TLS handshake, Server >> hello (2): * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (IN), >> TLS handshake, Server key exchange (12): * TLSv1.2 (IN), TLS handshake, >> Server finished (14): * TLSv1.2 (OUT), TLS handshake, Client key exchange >> (16): * TLSv1.2 (OUT), TLS change cipher, Client hello (1): * TLSv1.2 >> (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS change cipher, >> Client hello (1): * TLSv1.2 (IN), TLS handshake, Finished (20): * SSL >> connection using TLSv1.2 / ECDHE-RSA-AES128-SHA256 * ALPN, server did not >> agree to a protocol * Server certificate: * subject: OU=Domain >> Control Validated; OU=Free SSL; CN=www.dealerrewards.com * start >> date: Aug 16 00:00:00 2016 GMT * expire date: Nov 14 23:59:59 2016 >> GMT * subjectAltName: www.dealerrewards.com matched * >> issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; >> CN=COMODO RSA Domain Validation Secure Server CA * SSL certificate >> verify ok. * Server auth using Basic with user >> '48f23d56-75a5-4a7f-a097-a62404e5a6e0' > POST /ag-push/rest/sender >> HTTP/1.1 > Host: www.dealerrewards.com:8986 > Authorization: Basic >> NDhmMjNkNTYtNzVhNS00YTdmLWEwOTctYTYyNDA0ZTVhNmUwOjIyMWE5ZTlm >> LWEwNDAtNDExMS05NmIxLTFkMTk4MzU3NmY1Ng== > User-Agent: curl/7.46.0 > >> Accept: */* > Accept : application/json > Content-type : application/json > >> Content-Length: 25 > Content-Type: application/x-www-form-urlencoded > * >> upload completely sent off: 25 out of 25 bytes < HTTP/1.1 400 Bad Request < >> Connection: keep-alive < X-Powered-By: Undertow/1 < Server: WildFly/8 < >> Content-Type: text/html;charset=UTF-8 < Content-Length: 70 < Date: Wed, 17 >> Aug 2016 19:17:21 GMT < ErrorBad >> Request* Connection #0 to host www.dealerrewards.com left >> intact >> Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) >> 924-3185 >> ------------------------------ >> This electronic message transmission contains information from >> DealerRewards Inc. This message is confidential. It may also be privileged >> or otherwise protected by work-product immunity or other legal rules. If >> you have received it by mistake, please let us know by email reply and >> delete it from your system; you may not copy this message or disclose its >> contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been >> monitoring all internet communications. If you have information that you do >> not wish to have monitored, please send it using regular postal services to >> the address listed on our website. >> ------------------------------ >> On 8/17/2016 8:33 AM, Christopher Fahey wrote: >> >> I am using java client 1.1.0-final with UPS 1.1.1-final. >> I don't mean to be a constant thorn but I just keep running into these >> issues and never can find any solution to them. I have everything compiled >> and running. I have created an application within UPS with an android >> variant. I have my mobile app installed on my android phone. I can >> successfully send a notification using the UPS admin console to my app. >> The last part of the puzzle is to get the UPS java client working so I can >> integrate my server with UPS. I have written a small test program to test >> it but I receive the following error: Aug 17, 2016 8:17:10 AM >> org.jboss.aerogear.unifiedpush.DefaultPushSender submitPayload SEVERE: >> The Unified Push Server returned status code: 400 Why am I receiving this >> error? There is no indication in the Wildfly logs that it even handled the >> connection or why it rejected it. Here is the code: String >> notifyURL = "https://www.dealerrewards.com:8080/ag-push" >> ; String appId = >> "3c726feb-52ce-52ce-52ce-f08e9993c715"; String appSecret = >> "11ba55f6-52ce-52ce-52ce-06a9672db6ae"; PushSender >> defaultPushSender = DefaultPushSender.withRootServerURL( notifyURL ) >> .pushApplicationId( appId ) >> .masterSecret( appSecret ) .build(); >> UnifiedMessage unifiedMessage = UnifiedMessage.withMessage() >> .alert("test") >> .criteria().aliases("mike") .build(); >> defaultPushSender.send( unifiedMessage, new MessageResponseCallback( ) >> { @Override public void onComplete( ) >> { // TODO Auto-generated method stub >> } } ); >> Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) >> 924-3185 >> ------------------------------ >> This electronic message transmission contains information from >> DealerRewards Inc. This message is confidential. It may also be privileged >> or otherwise protected by work-product immunity or other legal rules. If >> you have received it by mistake, please let us know by email reply and >> delete it from your system; you may not copy this message or disclose its >> contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been >> monitoring all internet communications. If you have information that you do >> not wish to have monitored, please send it using regular postal services to >> the address listed on our website. >> ------------------------------ >> On 8/16/2016 8:09 PM, Matthias Wessendorf wrote: >> >> Their dependency is declared here: >> https://github.com/aerogear/aerogear-unifiedpush-java-client >> /blob/master/pom.xml#L85-L89 >> Note, that master branch onf the java-client is requiring 1.2.0- version >> of the UPS, >> while the 1.1.0 version of the java-client is supposed to work w/ UPS >> 1.1.x >> On Wed, Aug 17, 2016 at 12:16 AM, Daniel Passos >> wrote: >>> >>> Hi Christopher, >>> Those files are in aerogear-unifiedpush-server >>> repo >>> On Tue, Aug 16, 2016 at 5:58 PM, Christopher Fahey < >>> chris at dealerrewards.net> wrote: >>>> >>>> Speaking of other things, can anyone tell me where I can find the >>>> following branch files: >>>> >>>> org.jboss.aerogear.unifiedpush.message.apns.* >>>> >>> https://github.com/aerogear/aerogear-unifiedpush-server/tree >>> /master/push/model/src/main/java/org/jboss/aerogear/unifiedp >>> ush/message/apns >>> >>>> org.jboss.aerogear.unifiedpush.message.windows.* >>>> >>> https://github.com/aerogear/aerogear-unifiedpush-server/tree >>> /master/push/model/src/main/java/org/jboss/aerogear/unifiedp >>> ush/message/windows >>> >>>> The files are not in the git repository. >>>> >>>> https://github.com/aerogear/aerogear-unifiedpush-java-client >>>> /tree/master/src/main/java/org/jboss/aerogear/unifiedpush >>>> Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) >>>> 924-3185 <%28410%29%20924-3185> >>>> ------------------------------ >>>> This electronic message transmission contains information from >>>> DealerRewards Inc. This message is confidential. It may also be privileged >>>> or otherwise protected by work-product immunity or other legal rules. If >>>> you have received it by mistake, please let us know by email reply and >>>> delete it from your system; you may not copy this message or disclose its >>>> contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been >>>> monitoring all internet communications. If you have information that you do >>>> not wish to have monitored, please send it using regular postal services to >>>> the address listed on our website. >>>> ------------------------------ >>>> _______________________________________________ Aerogear-users mailing >>>> list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailma >>>> n/listinfo/aerogear-users >>> >>> -- >>> -- Passos >>> _______________________________________________ Aerogear-users mailing >>> list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailma >>> n/listinfo/aerogear-users >> >> -- >> Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> >> _______________________________________________ >> Aerogear-users mailing listAerogear-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/aerogear-users >> >> _______________________________________________ >> Aerogear-users mailing listAerogear-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/aerogear-users >> >> _______________________________________________ Aerogear-users mailing >> list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailma >> n/listinfo/aerogear-users > > _______________________________________________ > Aerogear-users mailing listAerogear-users at lists.jboss.orghttps://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/20160818/0a01375d/attachment-0001.html From chris at dealerrewards.net Thu Aug 18 13:26:56 2016 From: chris at dealerrewards.net (Christopher Fahey) Date: Thu, 18 Aug 2016 13:26:56 -0400 Subject: [Aerogear-users] aerogear-unifiedpush-java-client In-Reply-To: References: <1469086044672-756.post@n5.nabble.com> <9f9ed22f-2cd3-9502-1f9b-dadf38fa2d83@dealerrewards.net> <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> <51310b8c-4e60-3987-b2c8-62b067490827@dealerrewards.net> <8b1fd0cb-3e1d-65fb-a14a-81fde57c238b@dealerrewards.net> <3499ba57-8565-5dfd-5ef9-6b03df5fed33@dealerrewards.net> <33452d98-61e9-cf36-7e45-26b0998f7672@dealerrewards.net> Message-ID: <86bdcf68-b3a2-1b5e-deab-263e9c31c84e@dealerrewards.net> Affirmative. Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) 924-3185 ------------------------------------------------------------------------ This electronic message transmission contains information from DealerRewards Inc. This message is confidential. It may also be privileged or otherwise protected by work-product immunity or other legal rules. If you have received it by mistake, please let us know by email reply and delete it from your system; you may not copy this message or disclose its contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been monitoring all internet communications. If you have information that you do not wish to have monitored, please send it using regular postal services to the address listed on our website. ------------------------------------------------------------------------ On 8/18/2016 1:06 PM, Sebastien Blanc wrote: > Hi, > > Looks like indeed an version issue, "priority" has been added after > 1.1 . Are you sure that in your java client POM you have this : > > > org.jboss.aerogear.unifiedpush > unifiedpush-push-model > 1.1.0.Final > > > ? > > On Thu, Aug 18, 2016 at 6:48 PM, Christopher Fahey > > wrote: > > I am diving deeper into the problem. The client sent this: > > {"message":{"alert":"Hello from Java Sender > API!","sound":null,"badge":-1,"priority":"normal","consolidationKey":null,"windows":{"type":null,"duration":null,"badge":null,"tileType":null,"toastType":null,"images":[],"textFields":[],"page":null},"apns":{"title":null,"action":null,"action-category":null,"localized-key":null,"localized-arguments":null,"localized-title-key":null,"localized-title-arguments":null,"url-args":null,"content-available":false},"user-data":{},"simple-push":null},"criteria":{"categories":null,"variants":null,"alias":null,"deviceType":null},"config":{"ttl":-1}} > > Perhaps someone can tell me why the error is this: > > Unrecognized field "priority" (Class > org.jboss.aerogear.unifiedpush.message.Message), not marked as > ignorable > at [Source: > io.undertow.servlet.spec.ServletInputStreamImpl at 1579f57; line: 1, > column: 87] (through reference chain: > org.jboss.aerogear.unifiedpush.message.InternalUnifiedPushMessage["message"]->org.jboss.aerogear.unifiedpush.message.Message["priority"]) > > > Is it a version issue? I used the pom.xml from version 1.1.0 with > maven to build the client. > > > Christopher Fahey > DealerRewards, Inc. > Maryland Branch Office > (410) 924-3185 > ------------------------------------------------------------------------ > This electronic message transmission contains information from > DealerRewards Inc. This message is confidential. It may also be > privileged or otherwise protected by work-product immunity or > other legal rules. If you have received it by mistake, please let > us know by email reply and delete it from your system; you may not > copy this message or disclose its contents to anyone. > DISCLAIMER: Since 2006, the U.S. Government has been monitoring > all internet communications. If you have information that you do > not wish to have monitored, please send it using regular postal > services to the address listed on our website. > ------------------------------------------------------------------------ > > On 8/18/2016 5:04 AM, Sebastien Blanc wrote: >> Did you solved it ? >> Because I just tried your CURL and it worked. >> >> You should also renew you secret. >> >> On Wed, Aug 17, 2016 at 10:07 PM, Christopher Fahey >> > wrote: >> >> Anyone? I went to the sender API tab on the variants screen >> and copied the CURL UPS Rest command and ran it. >> >> It failed. So clearly not a problem with the java client >> software I wrote. Clearly a problem with the push server. >> Does this function even work? Does anyone have it working? >> Why would it fail? Could it be that the settings are wrong in >> the server? >> >> curl -u >> "48f23d56-75a5-4a7f-a097-a62404e5a6e0:221a9e9f-a040-4111-96b1-1d1983576f56"\ >> -v -H "Accept: application/json"-H "Content-type: >> application/json"\ -X POST -d \ '{ "message": { "alert": >> "Hello from the curl HTTP Sender!", "sound": "default" } }'\ >> https://www.dealerrewards.com:8986/ag-push/rest/sender >> >> >> Note: Unnecessary use of -X or --request, POST is already >> inferred. * Trying 173.166.153.1... * Connected to >> www.dealerrewards.com >> (173.166.153.1) port 8986 (#0) * ALPN, offering http/1.1 * >> Cipher selection: >> ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * >> successfully set certificate verify locations: * CAfile: >> C:\Users\Chris\AppData\Local\Apps\cURL\bin\curl-ca-bundle.cr >> t CApath: none * TLSv1.2 (OUT), >> TLS header, Certificate Status (22): * TLSv1.2 (OUT), TLS >> handshake, Client hello (1): * TLSv1.2 (IN), TLS handshake, >> Server hello (2): * TLSv1.2 (IN), TLS handshake, Certificate >> (11): * TLSv1.2 (IN), TLS handshake, Server key exchange >> (12): * TLSv1.2 (IN), TLS handshake, Server finished (14): * >> TLSv1.2 (OUT), TLS handshake, Client key exchange (16): * >> TLSv1.2 (OUT), TLS change cipher, Client hello (1): * TLSv1.2 >> (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS >> change cipher, Client hello (1): * TLSv1.2 (IN), TLS >> handshake, Finished (20): * SSL connection using TLSv1.2 / >> ECDHE-RSA-AES128-SHA256 * ALPN, server did not agree to a >> protocol * Server certificate: * subject: OU=Domain >> Control Validated; OU=Free SSL; CN=www.dealerrewards.com >> * start date: Aug 16 >> 00:00:00 2016 GMT * expire date: Nov 14 23:59:59 2016 >> GMT * subjectAltName: www.dealerrewards.com >> matched * issuer: C=GB; >> ST=Greater Manchester; L=Salford; O=COMODO CA Limited; >> CN=COMODO RSA Domain Validation Secure Server CA * SSL >> certificate verify ok. * Server auth using Basic with user >> '48f23d56-75a5-4a7f-a097-a62404e5a6e0' > POST >> /ag-push/rest/sender HTTP/1.1 > Host: >> www.dealerrewards.com:8986 >> > Authorization: Basic >> NDhmMjNkNTYtNzVhNS00YTdmLWEwOTctYTYyNDA0ZTVhNmUwOjIyMWE5ZTlmLWEwNDAtNDExMS05NmIxLTFkMTk4MzU3NmY1Ng== >> > User-Agent: curl/7.46.0 > Accept: */* > Accept : >> application/json > Content-type : application/json > >> Content-Length: 25 > Content-Type: >> application/x-www-form-urlencoded > * upload completely sent >> off: 25 out of 25 bytes < HTTP/1.1 400 Bad Request < >> Connection: keep-alive < X-Powered-By: Undertow/1 < Server: >> WildFly/8 < Content-Type: text/html;charset=UTF-8 < >> Content-Length: 70 < Date: Wed, 17 Aug 2016 19:17:21 GMT < >> ErrorBad >> Request* Connection #0 to host >> www.dealerrewards.com left intact >> Christopher Fahey DealerRewards, Inc. Maryland Branch Office >> (410) 924-3185 >> ------------------------------------------------------------------------ >> This electronic message transmission contains information >> from DealerRewards Inc. This message is confidential. It may >> also be privileged or otherwise protected by work-product >> immunity or other legal rules. If you have received it by >> mistake, please let us know by email reply and delete it from >> your system; you may not copy this message or disclose its >> contents to anyone. DISCLAIMER: Since 2006, the U.S. >> Government has been monitoring all internet communications. >> If you have information that you do not wish to have >> monitored, please send it using regular postal services to >> the address listed on our website. >> ------------------------------------------------------------------------ >> >> On 8/17/2016 8:33 AM, Christopher Fahey wrote: >>> >>> I am using java client 1.1.0-final with UPS 1.1.1-final. >>> >>> I don't mean to be a constant thorn but I just keep running >>> into these issues and never can find any solution to them. I >>> have everything compiled and running. I have created an >>> application within UPS with an android variant. I have my >>> mobile app installed on my android phone. I can >>> successfully send a notification using the UPS admin console >>> to my app. The last part of the puzzle is to get the UPS >>> java client working so I can integrate my server with UPS. >>> I have written a small test program to test it but I receive >>> the following error: Aug 17, 2016 8:17:10 AM >>> org.jboss.aerogear.unifiedpush.DefaultPushSender >>> submitPayload SEVERE: The Unified Push Server returned >>> status code: 400 Why am I receiving this error? There is no >>> indication in the Wildfly logs that it even handled the >>> connection or why it rejected it. Here is the code: >>> String notifyURL = >>> "https://www.dealerrewards.com:8080/ag-push" >>> ; String >>> appId = "3c726feb-52ce-52ce-52ce-f08e9993c715"; >>> String appSecret = "11ba55f6-52ce-52ce-52ce-06a9672db6ae"; >>> PushSender defaultPushSender = >>> DefaultPushSender.withRootServerURL( notifyURL ) >>> .pushApplicationId( appId ) >>> .masterSecret( appSecret ) >>> .build(); UnifiedMessage >>> unifiedMessage = UnifiedMessage.withMessage() >>> .alert("test") >>> .criteria().aliases("mike") >>> .build(); defaultPushSender.send( unifiedMessage, >>> new MessageResponseCallback( ) { >>> @Override public void onComplete( ) >>> { // TODO Auto-generated method stub >>> } } ); >>> Christopher Fahey DealerRewards, Inc. Maryland Branch Office >>> (410) 924-3185 >>> ------------------------------------------------------------------------ >>> This electronic message transmission contains information >>> from DealerRewards Inc. This message is confidential. It may >>> also be privileged or otherwise protected by work-product >>> immunity or other legal rules. If you have received it by >>> mistake, please let us know by email reply and delete it >>> from your system; you may not copy this message or disclose >>> its contents to anyone. DISCLAIMER: Since 2006, the U.S. >>> Government has been monitoring all internet communications. >>> If you have information that you do not wish to have >>> monitored, please send it using regular postal services to >>> the address listed on our website. >>> ------------------------------------------------------------------------ >>> >>> On 8/16/2016 8:09 PM, Matthias Wessendorf wrote: >>>> Their dependency is declared here: >>>> https://github.com/aerogear/aerogear-unifiedpush-java-client/blob/master/pom.xml#L85-L89 >>>> >>>> >>>> Note, that master branch onf the java-client is requiring >>>> 1.2.0- version of the UPS, >>>> while the 1.1.0 version of the java-client is supposed to >>>> work w/ UPS 1.1.x >>>> On Wed, Aug 17, 2016 at 12:16 AM, Daniel Passos >>>> > wrote: >>>> >>>> Hi Christopher, >>>> Those files are in aerogear-unifiedpush-server >>>> >>>> repo >>>> On Tue, Aug 16, 2016 at 5:58 PM, Christopher Fahey >>>> >>> > wrote: >>>> >>>> Speaking of other things, can anyone tell me where >>>> I can find the following branch files: >>>> >>>> org.jboss.aerogear.unifiedpush.message.apns.* >>>> >>>> https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/apns >>>> >>>> >>>> >>>> org.jboss.aerogear.unifiedpush.message.windows.* >>>> >>>> https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/windows >>>> >>>> >>>> >>>> The files are not in the git repository. >>>> >>>> https://github.com/aerogear/aerogear-unifiedpush-java-client/tree/master/src/main/java/org/jboss/aerogear/unifiedpush >>>> >>>> >>>> Christopher Fahey DealerRewards, Inc. Maryland >>>> Branch Office (410) 924-3185 >>>> >>>> ------------------------------------------------------------------------ >>>> This electronic message transmission contains >>>> information from DealerRewards Inc. This message is >>>> confidential. It may also be privileged or >>>> otherwise protected by work-product immunity or >>>> other legal rules. If you have received it by >>>> mistake, please let us know by email reply and >>>> delete it from your system; you may not copy this >>>> message or disclose its contents to anyone. >>>> DISCLAIMER: Since 2006, the U.S. Government has >>>> been monitoring all internet communications. If you >>>> have information that you do not wish to have >>>> monitored, please send it using regular postal >>>> services to the address listed on our website. >>>> ------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> Aerogear-users mailing list >>>> Aerogear-users at lists.jboss.org >>>> >>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>> >>>> >>>> >>>> -- >>>> -- Passos >>>> _______________________________________________ >>>> Aerogear-users mailing list >>>> Aerogear-users at lists.jboss.org >>>> >>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>> >>>> >>>> -- >>>> Matthias Wessendorf blog: >>>> http://matthiaswessendorf.wordpress.com/ >>>> twitter: >>>> http://twitter.com/mwessendorf >>>> >>>> _______________________________________________ >>>> 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 >> >> >> _______________________________________________ >> 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/20160818/8049ab5d/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: pom.xml Type: text/xml Size: 4155 bytes Desc: not available Url : http://lists.jboss.org/pipermail/aerogear-users/attachments/20160818/8049ab5d/attachment-0001.xml From chris at dealerrewards.net Thu Aug 18 13:50:08 2016 From: chris at dealerrewards.net (Christopher Fahey) Date: Thu, 18 Aug 2016 13:50:08 -0400 Subject: [Aerogear-users] aerogear-unifiedpush-java-client In-Reply-To: References: <1469086044672-756.post@n5.nabble.com> <9f9ed22f-2cd3-9502-1f9b-dadf38fa2d83@dealerrewards.net> <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> <51310b8c-4e60-3987-b2c8-62b067490827@dealerrewards.net> <8b1fd0cb-3e1d-65fb-a14a-81fde57c238b@dealerrewards.net> <3499ba57-8565-5dfd-5ef9-6b03df5fed33@dealerrewards.net> <33452d98-61e9-cf36-7e45-26b0998f7672@dealerrewards.net> Message-ID: <249cf88c-6c9e-ec9f-6030-b581da6dd045@dealerrewards.net> I tracked down the version issue. Thanks everyone. Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) 924-3185 ------------------------------------------------------------------------ This electronic message transmission contains information from DealerRewards Inc. This message is confidential. It may also be privileged or otherwise protected by work-product immunity or other legal rules. If you have received it by mistake, please let us know by email reply and delete it from your system; you may not copy this message or disclose its contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been monitoring all internet communications. If you have information that you do not wish to have monitored, please send it using regular postal services to the address listed on our website. ------------------------------------------------------------------------ On 8/18/2016 1:06 PM, Sebastien Blanc wrote: > Hi, > > Looks like indeed an version issue, "priority" has been added after > 1.1 . Are you sure that in your java client POM you have this : > > > org.jboss.aerogear.unifiedpush > unifiedpush-push-model > 1.1.0.Final > > > ? > > On Thu, Aug 18, 2016 at 6:48 PM, Christopher Fahey > > wrote: > > I am diving deeper into the problem. The client sent this: > > {"message":{"alert":"Hello from Java Sender > API!","sound":null,"badge":-1,"priority":"normal","consolidationKey":null,"windows":{"type":null,"duration":null,"badge":null,"tileType":null,"toastType":null,"images":[],"textFields":[],"page":null},"apns":{"title":null,"action":null,"action-category":null,"localized-key":null,"localized-arguments":null,"localized-title-key":null,"localized-title-arguments":null,"url-args":null,"content-available":false},"user-data":{},"simple-push":null},"criteria":{"categories":null,"variants":null,"alias":null,"deviceType":null},"config":{"ttl":-1}} > > Perhaps someone can tell me why the error is this: > > Unrecognized field "priority" (Class > org.jboss.aerogear.unifiedpush.message.Message), not marked as > ignorable > at [Source: > io.undertow.servlet.spec.ServletInputStreamImpl at 1579f57; line: 1, > column: 87] (through reference chain: > org.jboss.aerogear.unifiedpush.message.InternalUnifiedPushMessage["message"]->org.jboss.aerogear.unifiedpush.message.Message["priority"]) > > > Is it a version issue? I used the pom.xml from version 1.1.0 with > maven to build the client. > > > Christopher Fahey > DealerRewards, Inc. > Maryland Branch Office > (410) 924-3185 > ------------------------------------------------------------------------ > This electronic message transmission contains information from > DealerRewards Inc. This message is confidential. It may also be > privileged or otherwise protected by work-product immunity or > other legal rules. If you have received it by mistake, please let > us know by email reply and delete it from your system; you may not > copy this message or disclose its contents to anyone. > DISCLAIMER: Since 2006, the U.S. Government has been monitoring > all internet communications. If you have information that you do > not wish to have monitored, please send it using regular postal > services to the address listed on our website. > ------------------------------------------------------------------------ > > On 8/18/2016 5:04 AM, Sebastien Blanc wrote: >> Did you solved it ? >> Because I just tried your CURL and it worked. >> >> You should also renew you secret. >> >> On Wed, Aug 17, 2016 at 10:07 PM, Christopher Fahey >> > wrote: >> >> Anyone? I went to the sender API tab on the variants screen >> and copied the CURL UPS Rest command and ran it. >> >> It failed. So clearly not a problem with the java client >> software I wrote. Clearly a problem with the push server. >> Does this function even work? Does anyone have it working? >> Why would it fail? Could it be that the settings are wrong in >> the server? >> >> curl -u >> "48f23d56-75a5-4a7f-a097-a62404e5a6e0:221a9e9f-a040-4111-96b1-1d1983576f56"\ >> -v -H "Accept: application/json"-H "Content-type: >> application/json"\ -X POST -d \ '{ "message": { "alert": >> "Hello from the curl HTTP Sender!", "sound": "default" } }'\ >> https://www.dealerrewards.com:8986/ag-push/rest/sender >> >> >> Note: Unnecessary use of -X or --request, POST is already >> inferred. * Trying 173.166.153.1... * Connected to >> www.dealerrewards.com >> (173.166.153.1) port 8986 (#0) * ALPN, offering http/1.1 * >> Cipher selection: >> ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * >> successfully set certificate verify locations: * CAfile: >> C:\Users\Chris\AppData\Local\Apps\cURL\bin\curl-ca-bundle.cr >> t CApath: none * TLSv1.2 (OUT), >> TLS header, Certificate Status (22): * TLSv1.2 (OUT), TLS >> handshake, Client hello (1): * TLSv1.2 (IN), TLS handshake, >> Server hello (2): * TLSv1.2 (IN), TLS handshake, Certificate >> (11): * TLSv1.2 (IN), TLS handshake, Server key exchange >> (12): * TLSv1.2 (IN), TLS handshake, Server finished (14): * >> TLSv1.2 (OUT), TLS handshake, Client key exchange (16): * >> TLSv1.2 (OUT), TLS change cipher, Client hello (1): * TLSv1.2 >> (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS >> change cipher, Client hello (1): * TLSv1.2 (IN), TLS >> handshake, Finished (20): * SSL connection using TLSv1.2 / >> ECDHE-RSA-AES128-SHA256 * ALPN, server did not agree to a >> protocol * Server certificate: * subject: OU=Domain >> Control Validated; OU=Free SSL; CN=www.dealerrewards.com >> * start date: Aug 16 >> 00:00:00 2016 GMT * expire date: Nov 14 23:59:59 2016 >> GMT * subjectAltName: www.dealerrewards.com >> matched * issuer: C=GB; >> ST=Greater Manchester; L=Salford; O=COMODO CA Limited; >> CN=COMODO RSA Domain Validation Secure Server CA * SSL >> certificate verify ok. * Server auth using Basic with user >> '48f23d56-75a5-4a7f-a097-a62404e5a6e0' > POST >> /ag-push/rest/sender HTTP/1.1 > Host: >> www.dealerrewards.com:8986 >> > Authorization: Basic >> NDhmMjNkNTYtNzVhNS00YTdmLWEwOTctYTYyNDA0ZTVhNmUwOjIyMWE5ZTlmLWEwNDAtNDExMS05NmIxLTFkMTk4MzU3NmY1Ng== >> > User-Agent: curl/7.46.0 > Accept: */* > Accept : >> application/json > Content-type : application/json > >> Content-Length: 25 > Content-Type: >> application/x-www-form-urlencoded > * upload completely sent >> off: 25 out of 25 bytes < HTTP/1.1 400 Bad Request < >> Connection: keep-alive < X-Powered-By: Undertow/1 < Server: >> WildFly/8 < Content-Type: text/html;charset=UTF-8 < >> Content-Length: 70 < Date: Wed, 17 Aug 2016 19:17:21 GMT < >> ErrorBad >> Request* Connection #0 to host >> www.dealerrewards.com left intact >> Christopher Fahey DealerRewards, Inc. Maryland Branch Office >> (410) 924-3185 >> ------------------------------------------------------------------------ >> This electronic message transmission contains information >> from DealerRewards Inc. This message is confidential. It may >> also be privileged or otherwise protected by work-product >> immunity or other legal rules. If you have received it by >> mistake, please let us know by email reply and delete it from >> your system; you may not copy this message or disclose its >> contents to anyone. DISCLAIMER: Since 2006, the U.S. >> Government has been monitoring all internet communications. >> If you have information that you do not wish to have >> monitored, please send it using regular postal services to >> the address listed on our website. >> ------------------------------------------------------------------------ >> >> On 8/17/2016 8:33 AM, Christopher Fahey wrote: >>> >>> I am using java client 1.1.0-final with UPS 1.1.1-final. >>> >>> I don't mean to be a constant thorn but I just keep running >>> into these issues and never can find any solution to them. I >>> have everything compiled and running. I have created an >>> application within UPS with an android variant. I have my >>> mobile app installed on my android phone. I can >>> successfully send a notification using the UPS admin console >>> to my app. The last part of the puzzle is to get the UPS >>> java client working so I can integrate my server with UPS. >>> I have written a small test program to test it but I receive >>> the following error: Aug 17, 2016 8:17:10 AM >>> org.jboss.aerogear.unifiedpush.DefaultPushSender >>> submitPayload SEVERE: The Unified Push Server returned >>> status code: 400 Why am I receiving this error? There is no >>> indication in the Wildfly logs that it even handled the >>> connection or why it rejected it. Here is the code: >>> String notifyURL = >>> "https://www.dealerrewards.com:8080/ag-push" >>> ; String >>> appId = "3c726feb-52ce-52ce-52ce-f08e9993c715"; >>> String appSecret = "11ba55f6-52ce-52ce-52ce-06a9672db6ae"; >>> PushSender defaultPushSender = >>> DefaultPushSender.withRootServerURL( notifyURL ) >>> .pushApplicationId( appId ) >>> .masterSecret( appSecret ) >>> .build(); UnifiedMessage >>> unifiedMessage = UnifiedMessage.withMessage() >>> .alert("test") >>> .criteria().aliases("mike") >>> .build(); defaultPushSender.send( unifiedMessage, >>> new MessageResponseCallback( ) { >>> @Override public void onComplete( ) >>> { // TODO Auto-generated method stub >>> } } ); >>> Christopher Fahey DealerRewards, Inc. Maryland Branch Office >>> (410) 924-3185 >>> ------------------------------------------------------------------------ >>> This electronic message transmission contains information >>> from DealerRewards Inc. This message is confidential. It may >>> also be privileged or otherwise protected by work-product >>> immunity or other legal rules. If you have received it by >>> mistake, please let us know by email reply and delete it >>> from your system; you may not copy this message or disclose >>> its contents to anyone. DISCLAIMER: Since 2006, the U.S. >>> Government has been monitoring all internet communications. >>> If you have information that you do not wish to have >>> monitored, please send it using regular postal services to >>> the address listed on our website. >>> ------------------------------------------------------------------------ >>> >>> On 8/16/2016 8:09 PM, Matthias Wessendorf wrote: >>>> Their dependency is declared here: >>>> https://github.com/aerogear/aerogear-unifiedpush-java-client/blob/master/pom.xml#L85-L89 >>>> >>>> >>>> Note, that master branch onf the java-client is requiring >>>> 1.2.0- version of the UPS, >>>> while the 1.1.0 version of the java-client is supposed to >>>> work w/ UPS 1.1.x >>>> On Wed, Aug 17, 2016 at 12:16 AM, Daniel Passos >>>> > wrote: >>>> >>>> Hi Christopher, >>>> Those files are in aerogear-unifiedpush-server >>>> >>>> repo >>>> On Tue, Aug 16, 2016 at 5:58 PM, Christopher Fahey >>>> >>> > wrote: >>>> >>>> Speaking of other things, can anyone tell me where >>>> I can find the following branch files: >>>> >>>> org.jboss.aerogear.unifiedpush.message.apns.* >>>> >>>> https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/apns >>>> >>>> >>>> >>>> org.jboss.aerogear.unifiedpush.message.windows.* >>>> >>>> https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/windows >>>> >>>> >>>> >>>> The files are not in the git repository. >>>> >>>> https://github.com/aerogear/aerogear-unifiedpush-java-client/tree/master/src/main/java/org/jboss/aerogear/unifiedpush >>>> >>>> >>>> Christopher Fahey DealerRewards, Inc. Maryland >>>> Branch Office (410) 924-3185 >>>> >>>> ------------------------------------------------------------------------ >>>> This electronic message transmission contains >>>> information from DealerRewards Inc. This message is >>>> confidential. It may also be privileged or >>>> otherwise protected by work-product immunity or >>>> other legal rules. If you have received it by >>>> mistake, please let us know by email reply and >>>> delete it from your system; you may not copy this >>>> message or disclose its contents to anyone. >>>> DISCLAIMER: Since 2006, the U.S. Government has >>>> been monitoring all internet communications. If you >>>> have information that you do not wish to have >>>> monitored, please send it using regular postal >>>> services to the address listed on our website. >>>> ------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> Aerogear-users mailing list >>>> Aerogear-users at lists.jboss.org >>>> >>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>> >>>> >>>> >>>> -- >>>> -- Passos >>>> _______________________________________________ >>>> Aerogear-users mailing list >>>> Aerogear-users at lists.jboss.org >>>> >>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>> >>>> >>>> -- >>>> Matthias Wessendorf blog: >>>> http://matthiaswessendorf.wordpress.com/ >>>> twitter: >>>> http://twitter.com/mwessendorf >>>> >>>> _______________________________________________ >>>> 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 >> >> >> _______________________________________________ >> 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/20160818/ea4c890e/attachment-0001.html From scm.blanc at gmail.com Thu Aug 18 13:52:02 2016 From: scm.blanc at gmail.com (Sebastien Blanc) Date: Thu, 18 Aug 2016 19:52:02 +0200 Subject: [Aerogear-users] aerogear-unifiedpush-java-client In-Reply-To: <249cf88c-6c9e-ec9f-6030-b581da6dd045@dealerrewards.net> References: <1469086044672-756.post@n5.nabble.com> <9f9ed22f-2cd3-9502-1f9b-dadf38fa2d83@dealerrewards.net> <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> <51310b8c-4e60-3987-b2c8-62b067490827@dealerrewards.net> <8b1fd0cb-3e1d-65fb-a14a-81fde57c238b@dealerrewards.net> <3499ba57-8565-5dfd-5ef9-6b03df5fed33@dealerrewards.net> <33452d98-61e9-cf36-7e45-26b0998f7672@dealerrewards.net> <249cf88c-6c9e-ec9f-6030-b581da6dd045@dealerrewards.net> Message-ID: Can you share the solution? I'm curious :) (could it be that you used 1.1.1 and not 1.1.0 for the push-model ? ) Thx On Thu, Aug 18, 2016 at 7:50 PM, Christopher Fahey wrote: > I tracked down the version issue. Thanks everyone. > > Christopher Fahey > DealerRewards, Inc. > Maryland Branch Office > (410) 924-3185 > ------------------------------ > This electronic message transmission contains information from > DealerRewards Inc. This message is confidential. It may also be privileged > or otherwise protected by work-product immunity or other legal rules. If > you have received it by mistake, please let us know by email reply and > delete it from your system; you may not copy this message or disclose its > contents to anyone. > DISCLAIMER: Since 2006, the U.S. Government has been monitoring all > internet communications. If you have information that you do not wish to > have monitored, please send it using regular postal services to the address > listed on our website. > ------------------------------ > On 8/18/2016 1:06 PM, Sebastien Blanc wrote: > > Hi, > > Looks like indeed an version issue, "priority" has been added after 1.1 . > Are you sure that in your java client POM you have this : > > > org.jboss.aerogear.unifiedpush > unifiedpush-push-model > 1.1.0.Final > > > ? > > On Thu, Aug 18, 2016 at 6:48 PM, Christopher Fahey < > chris at dealerrewards.net> wrote: > >> I am diving deeper into the problem. The client sent this: >> >> {"message":{"alert":"Hello from Java Sender API!","sound":null,"badge":-1, >> "priority":"normal","consolidationKey":null,"windows":{" >> type":null,"duration":null,"badge":null,"tileType":null," >> toastType":null,"images":[],"textFields":[],"page":null}," >> apns":{"title":null,"action":null,"action-category":null,"l >> ocalized-key":null,"localized-arguments":null,"localized- >> title-key":null,"localized-title-arguments":null,"url- >> args":null,"content-available":false},"user-data":{}," >> simple-push":null},"criteria":{"categories":null,"variants": >> null,"alias":null,"deviceType":null},"config":{"ttl":-1}} >> >> Perhaps someone can tell me why the error is this: >> >> Unrecognized field "priority" (Class org.jboss.aerogear.unifiedpush.message.Message), >> not marked as ignorable >> at [Source: io.undertow.servlet.spec.ServletInputStreamImpl at 1579f57; >> line: 1, column: 87] (through reference chain: >> org.jboss.aerogear.unifiedpush.message.InternalUnifiedPushMe >> ssage["message"]->org.jboss.aerogear.unifiedpush.message. >> Message["priority"]) >> >> >> Is it a version issue? I used the pom.xml from version 1.1.0 with maven >> to build the client. >> >> Christopher Fahey >> DealerRewards, Inc. >> Maryland Branch Office >> (410) 924-3185 <%28410%29%20924-3185> >> ------------------------------ >> This electronic message transmission contains information from >> DealerRewards Inc. This message is confidential. It may also be privileged >> or otherwise protected by work-product immunity or other legal rules. If >> you have received it by mistake, please let us know by email reply and >> delete it from your system; you may not copy this message or disclose its >> contents to anyone. >> DISCLAIMER: Since 2006, the U.S. Government has been monitoring all >> internet communications. If you have information that you do not wish to >> have monitored, please send it using regular postal services to the address >> listed on our website. >> ------------------------------ >> On 8/18/2016 5:04 AM, Sebastien Blanc wrote: >> >> Did you solved it ? >> Because I just tried your CURL and it worked. >> >> You should also renew you secret. >> >> On Wed, Aug 17, 2016 at 10:07 PM, Christopher Fahey < >> chris at dealerrewards.net> wrote: >> >>> Anyone? I went to the sender API tab on the variants screen and copied >>> the CURL UPS Rest command and ran it. >>> It failed. So clearly not a problem with the java client software I >>> wrote. Clearly a problem with the push server. Does this function even >>> work? Does anyone have it working? Why would it fail? Could it be that >>> the settings are wrong in the server? >>> >>> curl -u "48f23d56-75a5-4a7f-a097-a62404e5a6e0:221a9e9f-a040-4111-96b1-1d1983576f56" \ >>> -v -H "Accept: application/json" -H "Content-type: application/json" \ >>> -X POST -d \ >>> '{ >>> "message": { >>> "alert": "Hello from the curl HTTP Sender!", >>> "sound": "default" >>> } >>> }' \ >>> https://www.dealerrewards.com:8986/ag-push/rest/sender >>> >>> Note: Unnecessary use of -X or --request, POST is already inferred. * >>> Trying 173.166.153.1... * Connected to www.dealerrewards.com >>> (173.166.153.1) port 8986 (#0) * ALPN, offering http/1.1 * Cipher >>> selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * >>> successfully set certificate verify locations: * CAfile: >>> C:\Users\Chris\AppData\Local\Apps\cURL\bin\curl-ca-bundle.crt CApath: >>> none * TLSv1.2 (OUT), TLS header, Certificate Status (22): * TLSv1.2 (OUT), >>> TLS handshake, Client hello (1): * TLSv1.2 (IN), TLS handshake, Server >>> hello (2): * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (IN), >>> TLS handshake, Server key exchange (12): * TLSv1.2 (IN), TLS handshake, >>> Server finished (14): * TLSv1.2 (OUT), TLS handshake, Client key exchange >>> (16): * TLSv1.2 (OUT), TLS change cipher, Client hello (1): * TLSv1.2 >>> (OUT), TLS handshake, Finished (20): * TLSv1.2 (IN), TLS change cipher, >>> Client hello (1): * TLSv1.2 (IN), TLS handshake, Finished (20): * SSL >>> connection using TLSv1.2 / ECDHE-RSA-AES128-SHA256 * ALPN, server did not >>> agree to a protocol * Server certificate: * subject: OU=Domain >>> Control Validated; OU=Free SSL; CN=www.dealerrewards.com * start >>> date: Aug 16 00:00:00 2016 GMT * expire date: Nov 14 23:59:59 2016 >>> GMT * subjectAltName: www.dealerrewards.com matched * >>> issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; >>> CN=COMODO RSA Domain Validation Secure Server CA * SSL certificate >>> verify ok. * Server auth using Basic with user >>> '48f23d56-75a5-4a7f-a097-a62404e5a6e0' > POST /ag-push/rest/sender >>> HTTP/1.1 > Host: www.dealerrewards.com:8986 > Authorization: Basic >>> NDhmMjNkNTYtNzVhNS00YTdmLWEwOTctYTYyNDA0ZTVhNmUwOjIyMWE5ZTlm >>> LWEwNDAtNDExMS05NmIxLTFkMTk4MzU3NmY1Ng== > User-Agent: curl/7.46.0 > >>> Accept: */* > Accept : application/json > Content-type : application/json > >>> Content-Length: 25 > Content-Type: application/x-www-form-urlencoded > >>> * upload completely sent off: 25 out of 25 bytes < HTTP/1.1 400 Bad Request >>> < Connection: keep-alive < X-Powered-By: Undertow/1 < Server: WildFly/8 < >>> Content-Type: text/html;charset=UTF-8 < Content-Length: 70 < Date: Wed, 17 >>> Aug 2016 19:17:21 GMT < ErrorBad >>> Request* Connection #0 to host www.dealerrewards.com left >>> intact >>> Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) >>> 924-3185 >>> ------------------------------ >>> This electronic message transmission contains information from >>> DealerRewards Inc. This message is confidential. It may also be privileged >>> or otherwise protected by work-product immunity or other legal rules. If >>> you have received it by mistake, please let us know by email reply and >>> delete it from your system; you may not copy this message or disclose its >>> contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been >>> monitoring all internet communications. If you have information that you do >>> not wish to have monitored, please send it using regular postal services to >>> the address listed on our website. >>> ------------------------------ >>> On 8/17/2016 8:33 AM, Christopher Fahey wrote: >>> >>> I am using java client 1.1.0-final with UPS 1.1.1-final. >>> I don't mean to be a constant thorn but I just keep running into these >>> issues and never can find any solution to them. I have everything compiled >>> and running. I have created an application within UPS with an android >>> variant. I have my mobile app installed on my android phone. I can >>> successfully send a notification using the UPS admin console to my app. >>> The last part of the puzzle is to get the UPS java client working so I can >>> integrate my server with UPS. I have written a small test program to test >>> it but I receive the following error: Aug 17, 2016 8:17:10 AM >>> org.jboss.aerogear.unifiedpush.DefaultPushSender submitPayload SEVERE: >>> The Unified Push Server returned status code: 400 Why am I receiving this >>> error? There is no indication in the Wildfly logs that it even handled the >>> connection or why it rejected it. Here is the code: String >>> notifyURL = "https://www.dealerrewards.com:8080/ag-push" >>> ; String appId = >>> "3c726feb-52ce-52ce-52ce-f08e9993c715"; String appSecret = >>> "11ba55f6-52ce-52ce-52ce-06a9672db6ae"; PushSender >>> defaultPushSender = DefaultPushSender.withRootServerURL( notifyURL ) >>> .pushApplicationId( appId ) >>> .masterSecret( appSecret ) .build(); >>> UnifiedMessage unifiedMessage = UnifiedMessage.withMessage() >>> .alert("test") >>> .criteria().aliases("mike") .build(); >>> defaultPushSender.send( unifiedMessage, new MessageResponseCallback( ) >>> { @Override public void onComplete( ) >>> { // TODO Auto-generated method stub >>> } } ); >>> Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) >>> 924-3185 >>> ------------------------------ >>> This electronic message transmission contains information from >>> DealerRewards Inc. This message is confidential. It may also be privileged >>> or otherwise protected by work-product immunity or other legal rules. If >>> you have received it by mistake, please let us know by email reply and >>> delete it from your system; you may not copy this message or disclose its >>> contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been >>> monitoring all internet communications. If you have information that you do >>> not wish to have monitored, please send it using regular postal services to >>> the address listed on our website. >>> ------------------------------ >>> On 8/16/2016 8:09 PM, Matthias Wessendorf wrote: >>> >>> Their dependency is declared here: >>> https://github.com/aerogear/aerogear-unifiedpush-java-client >>> /blob/master/pom.xml#L85-L89 >>> Note, that master branch onf the java-client is requiring 1.2.0- version >>> of the UPS, >>> while the 1.1.0 version of the java-client is supposed to work w/ UPS >>> 1.1.x >>> On Wed, Aug 17, 2016 at 12:16 AM, Daniel Passos >>> wrote: >>>> >>>> Hi Christopher, >>>> Those files are in aerogear-unifiedpush-server >>>> repo >>>> On Tue, Aug 16, 2016 at 5:58 PM, Christopher Fahey < >>>> chris at dealerrewards.net> wrote: >>>>> >>>>> Speaking of other things, can anyone tell me where I can find the >>>>> following branch files: >>>>> >>>>> org.jboss.aerogear.unifiedpush.message.apns.* >>>>> >>>> https://github.com/aerogear/aerogear-unifiedpush-server/tree >>>> /master/push/model/src/main/java/org/jboss/aerogear/unifiedp >>>> ush/message/apns >>>> >>>>> org.jboss.aerogear.unifiedpush.message.windows.* >>>>> >>>> https://github.com/aerogear/aerogear-unifiedpush-server/tree >>>> /master/push/model/src/main/java/org/jboss/aerogear/unifiedp >>>> ush/message/windows >>>> >>>>> The files are not in the git repository. >>>>> >>>>> https://github.com/aerogear/aerogear-unifiedpush-java-client >>>>> /tree/master/src/main/java/org/jboss/aerogear/unifiedpush >>>>> Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) >>>>> 924-3185 <%28410%29%20924-3185> >>>>> ------------------------------ >>>>> This electronic message transmission contains information from >>>>> DealerRewards Inc. This message is confidential. It may also be privileged >>>>> or otherwise protected by work-product immunity or other legal rules. If >>>>> you have received it by mistake, please let us know by email reply and >>>>> delete it from your system; you may not copy this message or disclose its >>>>> contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been >>>>> monitoring all internet communications. If you have information that you do >>>>> not wish to have monitored, please send it using regular postal services to >>>>> the address listed on our website. >>>>> ------------------------------ >>>>> _______________________________________________ Aerogear-users >>>>> mailing list Aerogear-users at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>> >>>> -- >>>> -- Passos >>>> _______________________________________________ Aerogear-users mailing >>>> list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailma >>>> n/listinfo/aerogear-users >>> >>> -- >>> Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ >>> twitter: http://twitter.com/mwessendorf >>> >>> _______________________________________________ >>> Aerogear-users mailing listAerogear-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> _______________________________________________ >>> Aerogear-users mailing listAerogear-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/aerogear-users >>> >>> _______________________________________________ Aerogear-users mailing >>> list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailma >>> n/listinfo/aerogear-users >> >> _______________________________________________ >> Aerogear-users mailing listAerogear-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/aerogear-users >> >> _______________________________________________ Aerogear-users mailing >> list Aerogear-users at lists.jboss.org https://lists.jboss.org/mailma >> n/listinfo/aerogear-users > > _______________________________________________ > Aerogear-users mailing listAerogear-users at lists.jboss.orghttps://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/20160818/65550e07/attachment-0001.html From chris at dealerrewards.net Thu Aug 18 13:57:19 2016 From: chris at dealerrewards.net (Christopher Fahey) Date: Thu, 18 Aug 2016 13:57:19 -0400 Subject: [Aerogear-users] aerogear-unifiedpush-java-client In-Reply-To: References: <1469086044672-756.post@n5.nabble.com> <619b521f-595b-a9b5-0284-fc9b52949f39@dealerrewards.net> <51310b8c-4e60-3987-b2c8-62b067490827@dealerrewards.net> <8b1fd0cb-3e1d-65fb-a14a-81fde57c238b@dealerrewards.net> <3499ba57-8565-5dfd-5ef9-6b03df5fed33@dealerrewards.net> <33452d98-61e9-cf36-7e45-26b0998f7672@dealerrewards.net> <249cf88c-6c9e-ec9f-6030-b581da6dd045@dealerrewards.net> Message-ID: I deleted all of the source on my computer and started from scratch. That solved this problem. Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) 924-3185 ------------------------------------------------------------------------ This electronic message transmission contains information from DealerRewards Inc. This message is confidential. It may also be privileged or otherwise protected by work-product immunity or other legal rules. If you have received it by mistake, please let us know by email reply and delete it from your system; you may not copy this message or disclose its contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been monitoring all internet communications. If you have information that you do not wish to have monitored, please send it using regular postal services to the address listed on our website. ------------------------------------------------------------------------ On 8/18/2016 1:52 PM, Sebastien Blanc wrote: > Can you share the solution? I'm curious :) (could it be that you > used 1.1.1 and not 1.1.0 for the push-model ? ) > > Thx > > > On Thu, Aug 18, 2016 at 7:50 PM, Christopher Fahey > > wrote: > > I tracked down the version issue. Thanks everyone. > > > Christopher Fahey > DealerRewards, Inc. > Maryland Branch Office > (410) 924-3185 > ------------------------------------------------------------------------ > This electronic message transmission contains information from > DealerRewards Inc. This message is confidential. It may also be > privileged or otherwise protected by work-product immunity or > other legal rules. If you have received it by mistake, please let > us know by email reply and delete it from your system; you may not > copy this message or disclose its contents to anyone. > DISCLAIMER: Since 2006, the U.S. Government has been monitoring > all internet communications. If you have information that you do > not wish to have monitored, please send it using regular postal > services to the address listed on our website. > ------------------------------------------------------------------------ > > On 8/18/2016 1:06 PM, Sebastien Blanc wrote: >> Hi, >> >> Looks like indeed an version issue, "priority" has been added >> after 1.1 . Are you sure that in your java client POM you have >> this : >> >> >> org.jboss.aerogear.unifiedpush >> unifiedpush-push-model >> 1.1.0.Final >> >> >> ? >> >> On Thu, Aug 18, 2016 at 6:48 PM, Christopher Fahey >> > wrote: >> >> I am diving deeper into the problem. The client sent this: >> >> {"message":{"alert":"Hello from Java Sender >> API!","sound":null,"badge":-1,"priority":"normal","consolidationKey":null,"windows":{"type":null,"duration":null,"badge":null,"tileType":null,"toastType":null,"images":[],"textFields":[],"page":null},"apns":{"title":null,"action":null,"action-category":null,"localized-key":null,"localized-arguments":null,"localized-title-key":null,"localized-title-arguments":null,"url-args":null,"content-available":false},"user-data":{},"simple-push":null},"criteria":{"categories":null,"variants":null,"alias":null,"deviceType":null},"config":{"ttl":-1}} >> >> Perhaps someone can tell me why the error is this: >> >> Unrecognized field "priority" (Class >> org.jboss.aerogear.unifiedpush.message.Message), not marked >> as ignorable >> at [Source: >> io.undertow.servlet.spec.ServletInputStreamImpl at 1579f57; >> line: 1, column: 87] (through reference chain: >> org.jboss.aerogear.unifiedpush.message.InternalUnifiedPushMessage["message"]->org.jboss.aerogear.unifiedpush.message.Message["priority"]) >> >> >> Is it a version issue? I used the pom.xml from version 1.1.0 >> with maven to build the client. >> >> >> Christopher Fahey >> DealerRewards, Inc. >> Maryland Branch Office >> (410) 924-3185 >> ------------------------------------------------------------------------ >> This electronic message transmission contains information >> from DealerRewards Inc. This message is confidential. It may >> also be privileged or otherwise protected by work-product >> immunity or other legal rules. If you have received it by >> mistake, please let us know by email reply and delete it from >> your system; you may not copy this message or disclose its >> contents to anyone. >> DISCLAIMER: Since 2006, the U.S. Government has been >> monitoring all internet communications. If you have >> information that you do not wish to have monitored, please >> send it using regular postal services to the address listed >> on our website. >> ------------------------------------------------------------------------ >> >> On 8/18/2016 5:04 AM, Sebastien Blanc wrote: >>> Did you solved it ? >>> Because I just tried your CURL and it worked. >>> >>> You should also renew you secret. >>> >>> On Wed, Aug 17, 2016 at 10:07 PM, Christopher Fahey >>> > >>> wrote: >>> >>> Anyone? I went to the sender API tab on the variants >>> screen and copied the CURL UPS Rest command and ran it. >>> >>> It failed. So clearly not a problem with the java >>> client software I wrote. Clearly a problem with the push >>> server. Does this function even work? Does anyone >>> have it working? Why would it fail? Could it be that >>> the settings are wrong in the server? >>> >>> curl -u >>> "48f23d56-75a5-4a7f-a097-a62404e5a6e0:221a9e9f-a040-4111-96b1-1d1983576f56"\ >>> -v -H "Accept: application/json"-H "Content-type: >>> application/json"\ -X POST -d \ '{ "message": { "alert": >>> "Hello from the curl HTTP Sender!", "sound": "default" } >>> }'\ >>> https://www.dealerrewards.com:8986/ag-push/rest/sender >>> >>> >>> Note: Unnecessary use of -X or --request, POST is >>> already inferred. * Trying 173.166.153.1... * >>> Connected to www.dealerrewards.com >>> (173.166.153.1) port 8986 >>> (#0) * ALPN, offering http/1.1 * Cipher selection: >>> ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH >>> * successfully set certificate verify locations: * >>> CAfile: >>> C:\Users\Chris\AppData\Local\Apps\cURL\bin\curl-ca-bundle.cr >>> t CApath: none * TLSv1.2 >>> (OUT), TLS header, Certificate Status (22): * TLSv1.2 >>> (OUT), TLS handshake, Client hello (1): * TLSv1.2 (IN), >>> TLS handshake, Server hello (2): * TLSv1.2 (IN), TLS >>> handshake, Certificate (11): * TLSv1.2 (IN), TLS >>> handshake, Server key exchange (12): * TLSv1.2 (IN), TLS >>> handshake, Server finished (14): * TLSv1.2 (OUT), TLS >>> handshake, Client key exchange (16): * TLSv1.2 (OUT), >>> TLS change cipher, Client hello (1): * TLSv1.2 (OUT), >>> TLS handshake, Finished (20): * TLSv1.2 (IN), TLS change >>> cipher, Client hello (1): * TLSv1.2 (IN), TLS handshake, >>> Finished (20): * SSL connection using TLSv1.2 / >>> ECDHE-RSA-AES128-SHA256 * ALPN, server did not agree to >>> a protocol * Server certificate: * subject: >>> OU=Domain Control Validated; OU=Free SSL; >>> CN=www.dealerrewards.com >>> * start date: Aug 16 00:00:00 2016 GMT * >>> expire date: Nov 14 23:59:59 2016 GMT * >>> subjectAltName: www.dealerrewards.com >>> matched * issuer: >>> C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA >>> Limited; CN=COMODO RSA Domain Validation Secure Server >>> CA * SSL certificate verify ok. * Server auth >>> using Basic with user >>> '48f23d56-75a5-4a7f-a097-a62404e5a6e0' > POST >>> /ag-push/rest/sender HTTP/1.1 > Host: >>> www.dealerrewards.com:8986 >>> > Authorization: >>> Basic >>> NDhmMjNkNTYtNzVhNS00YTdmLWEwOTctYTYyNDA0ZTVhNmUwOjIyMWE5ZTlmLWEwNDAtNDExMS05NmIxLTFkMTk4MzU3NmY1Ng== >>> > User-Agent: curl/7.46.0 > Accept: */* > Accept : >>> application/json > Content-type : application/json > >>> Content-Length: 25 > Content-Type: >>> application/x-www-form-urlencoded > * upload completely >>> sent off: 25 out of 25 bytes < HTTP/1.1 400 Bad Request >>> < Connection: keep-alive < X-Powered-By: Undertow/1 < >>> Server: WildFly/8 < Content-Type: >>> text/html;charset=UTF-8 < Content-Length: 70 < Date: >>> Wed, 17 Aug 2016 19:17:21 GMT < >>> ErrorBad >>> Request* Connection #0 to host >>> www.dealerrewards.com >>> left intact >>> Christopher Fahey DealerRewards, Inc. Maryland Branch >>> Office (410) 924-3185 >>> ------------------------------------------------------------------------ >>> This electronic message transmission contains >>> information from DealerRewards Inc. This message is >>> confidential. It may also be privileged or otherwise >>> protected by work-product immunity or other legal rules. >>> If you have received it by mistake, please let us know >>> by email reply and delete it from your system; you may >>> not copy this message or disclose its contents to >>> anyone. DISCLAIMER: Since 2006, the U.S. Government has >>> been monitoring all internet communications. If you have >>> information that you do not wish to have monitored, >>> please send it using regular postal services to the >>> address listed on our website. >>> ------------------------------------------------------------------------ >>> >>> On 8/17/2016 8:33 AM, Christopher Fahey wrote: >>>> >>>> I am using java client 1.1.0-final with UPS 1.1.1-final. >>>> >>>> I don't mean to be a constant thorn but I just keep >>>> running into these issues and never can find any >>>> solution to them. I have everything compiled and >>>> running. I have created an application within UPS with >>>> an android variant. I have my mobile app installed on >>>> my android phone. I can successfully send a >>>> notification using the UPS admin console to my app. >>>> The last part of the puzzle is to get the UPS java >>>> client working so I can integrate my server with UPS. >>>> I have written a small test program to test it but I >>>> receive the following error: Aug 17, 2016 8:17:10 AM >>>> org.jboss.aerogear.unifiedpush.DefaultPushSender >>>> submitPayload SEVERE: The Unified Push Server returned >>>> status code: 400 Why am I receiving this error? There >>>> is no indication in the Wildfly logs that it even >>>> handled the connection or why it rejected it. Here is >>>> the code: String notifyURL = >>>> "https://www.dealerrewards.com:8080/ag-push" >>>> ; >>>> String appId = "3c726feb-52ce-52ce-52ce-f08e9993c715"; >>>> String appSecret = >>>> "11ba55f6-52ce-52ce-52ce-06a9672db6ae"; >>>> PushSender defaultPushSender = >>>> DefaultPushSender.withRootServerURL( notifyURL ) >>>> .pushApplicationId( appId ) >>>> .masterSecret( appSecret ) >>>> .build(); UnifiedMessage >>>> unifiedMessage = UnifiedMessage.withMessage() >>>> .alert("test") >>>> .criteria().aliases("mike") >>>> .build(); defaultPushSender.send( >>>> unifiedMessage, new MessageResponseCallback( ) >>>> { @Override public void >>>> onComplete( ) { // TODO >>>> Auto-generated method stub } } ); >>>> Christopher Fahey DealerRewards, Inc. Maryland Branch >>>> Office (410) 924-3185 >>>> ------------------------------------------------------------------------ >>>> This electronic message transmission contains >>>> information from DealerRewards Inc. This message is >>>> confidential. It may also be privileged or otherwise >>>> protected by work-product immunity or other legal >>>> rules. If you have received it by mistake, please let >>>> us know by email reply and delete it from your system; >>>> you may not copy this message or disclose its contents >>>> to anyone. DISCLAIMER: Since 2006, the U.S. Government >>>> has been monitoring all internet communications. If you >>>> have information that you do not wish to have >>>> monitored, please send it using regular postal services >>>> to the address listed on our website. >>>> ------------------------------------------------------------------------ >>>> >>>> On 8/16/2016 8:09 PM, Matthias Wessendorf wrote: >>>>> Their dependency is declared here: >>>>> https://github.com/aerogear/aerogear-unifiedpush-java-client/blob/master/pom.xml#L85-L89 >>>>> >>>>> >>>>> Note, that master branch onf the java-client is >>>>> requiring 1.2.0- version of the UPS, >>>>> while the 1.1.0 version of the java-client is supposed >>>>> to work w/ UPS 1.1.x >>>>> On Wed, Aug 17, 2016 at 12:16 AM, Daniel Passos >>>>> > wrote: >>>>> >>>>> Hi Christopher, >>>>> Those files are in aerogear-unifiedpush-server >>>>> >>>>> repo >>>>> On Tue, Aug 16, 2016 at 5:58 PM, Christopher Fahey >>>>> >>>> > wrote: >>>>> >>>>> Speaking of other things, can anyone tell me >>>>> where I can find the following branch files: >>>>> >>>>> org.jboss.aerogear.unifiedpush.message.apns.* >>>>> >>>>> https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/apns >>>>> >>>>> >>>>> >>>>> org.jboss.aerogear.unifiedpush.message.windows.* >>>>> >>>>> https://github.com/aerogear/aerogear-unifiedpush-server/tree/master/push/model/src/main/java/org/jboss/aerogear/unifiedpush/message/windows >>>>> >>>>> >>>>> >>>>> The files are not in the git repository. >>>>> >>>>> https://github.com/aerogear/aerogear-unifiedpush-java-client/tree/master/src/main/java/org/jboss/aerogear/unifiedpush >>>>> >>>>> >>>>> Christopher Fahey DealerRewards, Inc. Maryland >>>>> Branch Office (410) 924-3185 >>>>> >>>>> ------------------------------------------------------------------------ >>>>> This electronic message transmission contains >>>>> information from DealerRewards Inc. This >>>>> message is confidential. It may also be >>>>> privileged or otherwise protected by >>>>> work-product immunity or other legal rules. If >>>>> you have received it by mistake, please let us >>>>> know by email reply and delete it from your >>>>> system; you may not copy this message or >>>>> disclose its contents to anyone. DISCLAIMER: >>>>> Since 2006, the U.S. Government has been >>>>> monitoring all internet communications. If you >>>>> have information that you do not wish to have >>>>> monitored, please send it using regular postal >>>>> services to the address listed on our website. >>>>> ------------------------------------------------------------------------ >>>>> >>>>> _______________________________________________ >>>>> Aerogear-users mailing list >>>>> Aerogear-users at lists.jboss.org >>>>> >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>> >>>>> >>>>> >>>>> -- >>>>> -- Passos >>>>> _______________________________________________ >>>>> Aerogear-users mailing list >>>>> Aerogear-users at lists.jboss.org >>>>> >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>> >>>>> >>>>> >>>>> -- >>>>> Matthias Wessendorf blog: >>>>> http://matthiaswessendorf.wordpress.com/ >>>>> twitter: >>>>> http://twitter.com/mwessendorf >>>>> >>>>> _______________________________________________ >>>>> 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 >>> >>> >>> _______________________________________________ >>> 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 >> > _______________________________________________ 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/20160818/f76a875c/attachment-0001.html From ya at sherpa-solutions.com Fri Aug 19 10:02:34 2016 From: ya at sherpa-solutions.com (Yoann Archambault) Date: Fri, 19 Aug 2016 10:02:34 -0400 Subject: [Aerogear-users] mobile SDKs keeping connections open? In-Reply-To: References: Message-ID: We are using the following ios and android libraries: AeroGear iOS 1.2.0 aerogear-android-core: 2.1.0 aerogear-android-pipe: 2.1.0 aerogear-android-push: 2.2.2 Unfortunately we don't have any public repos. Will try to extract the relevant bits and post here [image: Sherpa RTLS Solutions inc.] *Yoann Archambault*Backend Lead Developer ya at sherpa-solutions.com Sherpa RTLS Solutions inc. *T * 514 360 3346 <%28514%29%20360-3346> *F * 514 635 6298 <%28514%29%20635-6298> On Wed, Aug 17, 2016 at 3:00 PM, Summers Pittman wrote: > > > On Wed, Aug 17, 2016 at 1:10 PM, Yoann Archambault < > ya at sherpa-solutions.com> wrote: > >> Hi, >> >> We migrated to Aerogear recently and now that our app is live, we are >> seeing 1000s of established TCP connections coming from our devices >> (Average of 1.5 connection per remote IP). >> >> I would expect the SDK to create a connection to register and the close >> it. Same for the "opened" metrics request. >> >> I've had to increase the maximum number of opened file descriptors for >> the wildfly user but i don't see this as a proper long term solution. >> >> Or am i missing something and somehow this is the expected behavior? >> > > This isn't expected behavior. Do you have a public repository we can take > a look at? We've never seen this behavior before. > > >> >> - Aerogear server version is 1.1.3.Final >> - Although i am unable to confirm 100%, i think this issue happens on >> both ios and android SDKs. >> >> > What version of the client SDKs are you using? > > >> -- >> Yoann >> >> _______________________________________________ >> 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/20160819/b2ecd3db/attachment.html From supittma at redhat.com Fri Aug 19 15:58:31 2016 From: supittma at redhat.com (Summers Pittman) Date: Fri, 19 Aug 2016 15:58:31 -0400 Subject: [Aerogear-users] mobile SDKs keeping connections open? In-Reply-To: References: Message-ID: On Fri, Aug 19, 2016 at 10:02 AM, Yoann Archambault wrote: > We are using the following ios and android libraries: > > AeroGear iOS 1.2.0 > aerogear-android-core: 2.1.0 > aerogear-android-pipe: 2.1.0 > aerogear-android-push: 2.2.2 > > Unfortunately we don't have any public repos. Will try to extract the > relevant bits and post here > So one of the things to be aware of is that Wildfly supports http keep-alive. The Android library calls disconnect on the http connections after a metrics read, registration, etc which is supposed to disconnect the http session. You can disable keep-alive for the Android application by setting the system property "http.keepAlive" to false. Additionally you may disable keep alive in Wildfly. If you get a chance to test this please let us know what you discover. > > > > [image: Sherpa RTLS Solutions inc.] > > > *Yoann Archambault*Backend Lead Developer > ya at sherpa-solutions.com > > Sherpa RTLS Solutions inc. > *T * 514 360 3346 <%28514%29%20360-3346> > *F * 514 635 6298 <%28514%29%20635-6298> > > On Wed, Aug 17, 2016 at 3:00 PM, Summers Pittman > wrote: > >> >> >> On Wed, Aug 17, 2016 at 1:10 PM, Yoann Archambault < >> ya at sherpa-solutions.com> wrote: >> >>> Hi, >>> >>> We migrated to Aerogear recently and now that our app is live, we are >>> seeing 1000s of established TCP connections coming from our devices >>> (Average of 1.5 connection per remote IP). >>> >>> I would expect the SDK to create a connection to register and the close >>> it. Same for the "opened" metrics request. >>> >>> I've had to increase the maximum number of opened file descriptors for >>> the wildfly user but i don't see this as a proper long term solution. >>> >>> Or am i missing something and somehow this is the expected behavior? >>> >> >> This isn't expected behavior. Do you have a public repository we can >> take a look at? We've never seen this behavior before. >> >> >>> >>> - Aerogear server version is 1.1.3.Final >>> - Although i am unable to confirm 100%, i think this issue happens on >>> both ios and android SDKs. >>> >>> >> What version of the client SDKs are you using? >> >> >>> -- >>> Yoann >>> >>> _______________________________________________ >>> 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/20160819/1f97b57d/attachment.html From chris at dealerrewards.net Mon Aug 22 16:12:06 2016 From: chris at dealerrewards.net (Christopher Fahey) Date: Mon, 22 Aug 2016 16:12:06 -0400 Subject: [Aerogear-users] Register and Alias In-Reply-To: References: <1470416766530-787.post@n5.nabble.com> <1470661647180-788.post@n5.nabble.com> Message-ID: Now that everything is running smoothly I have a couple of questions regarding register. Does register need to be called each time the app starts up? Why isn't the alias at the server updated with the alias supplied during subsequent register calls from the same installed app? I would like to have the most current email address used as an alias but changing it after the initial register has no effect on the device listings. Thanks for everyone's help. From chris at dealerrewards.net Mon Aug 22 16:20:53 2016 From: chris at dealerrewards.net (Christopher Fahey) Date: Mon, 22 Aug 2016 16:20:53 -0400 Subject: [Aerogear-users] Register and Alias In-Reply-To: References: <1470416766530-787.post@n5.nabble.com> <1470661647180-788.post@n5.nabble.com> Message-ID: Please disregard my question regarding Register. I didn't RTFM. However, I am still wondering about the updating of Alias. The manual seems to indicate it should be updated. Thanks. Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) 924-3185 ------------------------------------------------------------------------ This electronic message transmission contains information from DealerRewards Inc. This message is confidential. It may also be privileged or otherwise protected by work-product immunity or other legal rules. If you have received it by mistake, please let us know by email reply and delete it from your system; you may not copy this message or disclose its contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been monitoring all internet communications. If you have information that you do not wish to have monitored, please send it using regular postal services to the address listed on our website. ------------------------------------------------------------------------ On 8/22/2016 4:12 PM, Christopher Fahey wrote: > Now that everything is running smoothly I have a couple of questions > regarding register. > > Does register need to be called each time the app starts up? > > Why isn't the alias at the server updated with the alias supplied during > subsequent register calls from the same installed app? I would like to > have the most current email address used as an alias but changing it > after the initial register has no effect on the device listings. > > Thanks for everyone's help. > > _______________________________________________ > 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/20160822/754efb40/attachment-0001.html From matzew at apache.org Tue Aug 23 02:26:32 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Tue, 23 Aug 2016 08:26:32 +0200 Subject: [Aerogear-users] Register and Alias In-Reply-To: References: <1470416766530-787.post@n5.nabble.com> <1470661647180-788.post@n5.nabble.com> Message-ID: On Mon, Aug 22, 2016 at 10:12 PM, Christopher Fahey wrote: > Now that everything is running smoothly I have a couple of questions > regarding register. > > Does register need to be called each time the app starts up? > > Why isn't the alias at the server updated with the alias supplied during > subsequent register calls from the same installed app? Hrm, it should be updated, however I do recall we had a bug in this area before. Let me find a PR/JIRA or something, than I will get more details > I would like to > have the most current email address used as an alias but changing it > after the initial register has no effect on the device listings. > > Thanks for everyone's help. > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160823/2555f217/attachment.html From matzew at apache.org Tue Aug 23 05:21:25 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Tue, 23 Aug 2016 11:21:25 +0200 Subject: [Aerogear-users] Register and Alias In-Reply-To: References: <1470416766530-787.post@n5.nabble.com> <1470661647180-788.post@n5.nabble.com> Message-ID: Christopher, what's the version of your AeroGear-Cordova Push Plugin? On Tue, Aug 23, 2016 at 8:26 AM, Matthias Wessendorf wrote: > > > On Mon, Aug 22, 2016 at 10:12 PM, Christopher Fahey < > chris at dealerrewards.net> wrote: > >> Now that everything is running smoothly I have a couple of questions >> regarding register. >> >> Does register need to be called each time the app starts up? >> >> Why isn't the alias at the server updated with the alias supplied during >> subsequent register calls from the same installed app? > > > Hrm, it should be updated, however I do recall we had a bug in this area > before. > > Let me find a PR/JIRA or something, than I will get more details > > > >> I would like to >> have the most current email address used as an alias but changing it >> after the initial register has no effect on the device listings. >> >> Thanks for everyone's help. >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160823/b53680ef/attachment.html From chris at dealerrewards.net Tue Aug 23 07:45:52 2016 From: chris at dealerrewards.net (Christopher Fahey) Date: Tue, 23 Aug 2016 07:45:52 -0400 Subject: [Aerogear-users] Register and Alias In-Reply-To: References: <1470416766530-787.post@n5.nabble.com> <1470661647180-788.post@n5.nabble.com> Message-ID: <3598a2e2-29a8-76c9-2962-568bbefe3267@dealerrewards.net> I believe it is 1-1-0-Final. I couldn't find a version id in the files that made up the package. Christopher Fahey DealerRewards, Inc. Maryland Branch Office (410) 924-3185 ------------------------------------------------------------------------ This electronic message transmission contains information from DealerRewards Inc. This message is confidential. It may also be privileged or otherwise protected by work-product immunity or other legal rules. If you have received it by mistake, please let us know by email reply and delete it from your system; you may not copy this message or disclose its contents to anyone. DISCLAIMER: Since 2006, the U.S. Government has been monitoring all internet communications. If you have information that you do not wish to have monitored, please send it using regular postal services to the address listed on our website. ------------------------------------------------------------------------ On 8/23/2016 5:21 AM, Matthias Wessendorf wrote: > Christopher, > > what's the version of your AeroGear-Cordova Push Plugin? > > > > On Tue, Aug 23, 2016 at 8:26 AM, Matthias Wessendorf > > wrote: > > > > On Mon, Aug 22, 2016 at 10:12 PM, Christopher Fahey > > wrote: > > Now that everything is running smoothly I have a couple of > questions > regarding register. > > Does register need to be called each time the app starts up? > > Why isn't the alias at the server updated with the alias > supplied during > subsequent register calls from the same installed app? > > > Hrm, it should be updated, however I do recall we had a bug in > this area before. > > Let me find a PR/JIRA or something, than I will get more details > > I would like to > have the most current email address used as an alias but > changing it > after the initial register has no effect on the device listings. > > Thanks for everyone's help. > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/aerogear-users > > > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > > twitter: http://twitter.com/mwessendorf > > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > > twitter: http://twitter.com/mwessendorf > > > _______________________________________________ > 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/20160823/28d86122/attachment.html From Michael.Fischelmayer at apa.at Thu Aug 25 02:18:32 2016 From: Michael.Fischelmayer at apa.at (Fischelmayer Michael) Date: Thu, 25 Aug 2016 06:18:32 +0000 Subject: [Aerogear-users] Wildfly Heap Space Message-ID: <786E2E9282CC0147A0F31612AA2B648F049B14EE@apawinmbx01.apa.backup.apa.net> Hello, I'm running a UPS 1.1.0 Installation on a Wildlfy 9.0.1 Final. After startup wildfly use around 500M of Heap Space. It works some days very good but the heap space constantly growing (to 1700M) until the service is no longer reachable (normally after 5 to 7 days) The only thing I can see in the logfile are tons of the following warnings. 2016-08-24 16:29:15,223 WARN [com.arjuna.ats.arjuna] (Periodic Recovery) Transaction 0:ffffc29e8473:67ca0a33:57639607:696f89 has 1 heuristic participant(s)! 2016-08-24 16:29:15,224 WARN [com.arjuna.ats.arjuna] (Periodic Recovery) Transaction 0:ffffc29e8473:67ca0a33:57639607:696f89 restored heuristic participant XAResourceRecord < resource:HornetQXAResourceWrapper [serverLocator=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=d7821018-6a03-11e6-9e9a-21b93f631a73, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0], discoveryGroupConfiguration=null], csf=ClientSessionFactoryImpl [serverLocator=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=d7821018-6a03-11e6-9e9a-21b93f631a73, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0], discoveryGroupConfiguration=null], connectorConfig=TransportConfiguration(name=d7821018-6a03-11e6-9e9a-21b93f631a73, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0, backupConfig=null], delegate=DelegatingSession [session=ClientSessionImpl [name=14e25725-6a04-11e6-9e9a-21b93f631a73, username=null, closed=false, factory = ClientSessionFactoryImpl [serverLocator=ServerLocatorImpl [initialConnectors=[TransportConfiguration(name=d7821018-6a03-11e6-9e9a-21b93f631a73, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0], discoveryGroupConfiguration=null], connectorConfig=TransportConfiguration(name=d7821018-6a03-11e6-9e9a-21b93f631a73, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0, backupConfig=null], metaData=()]@a0a87b1], xaRecoveryConfigs=[XARecoveryConfig [transportConfiguration = [TransportConfiguration(name=d7821018-6a03-11e6-9e9a-21b93f631a73, factory=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory) ?server-id=0], discoveryConfiguration = null, username=null, password=****]], instance=900779538], txid:< formatId=131077, gtrid_length=37, bqual_length=36, tx_uid=0:ffffc29e8473:67ca0a33:57639607:696f89, node_name=localhost, branch_uid=0:ffffc29e8473:67ca0a33:57639607:696f8a, subordinatenodename=null, eis_name=unknown eis name >, heuristic: TwoPhaseOutcome.FINISH_OK com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord at f384b96 > Does anyone have a clue? best regards Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160825/ee9b347a/attachment-0001.html From divya.sree at hp.com Fri Aug 26 02:14:09 2016 From: divya.sree at hp.com (Sree, Divya (TCS S&CO Platform Team (L2/L3))) Date: Fri, 26 Aug 2016 06:14:09 +0000 Subject: [Aerogear-users] Aerogear Support for FCM Message-ID: <138d63dac9e34629b68df10f71f4a806@G1W8616.auth.hpicorp.net> Hi Team, We are using Unified push server with version 1.1.0 Since GCM is now migrated to FCM. How will aerogear support with respect to server and plugin ? Thanks, Divya -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160826/bc7d9a68/attachment.html From matzew at apache.org Fri Aug 26 03:43:17 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Fri, 26 Aug 2016 09:43:17 +0200 Subject: [Aerogear-users] Aerogear Support for FCM In-Reply-To: <138d63dac9e34629b68df10f71f4a806@G1W8616.auth.hpicorp.net> References: <138d63dac9e34629b68df10f71f4a806@G1W8616.auth.hpicorp.net> Message-ID: Hello, starting with release 1.1.3, we support parts of GCM3, like topics, on the server: https://issues.jboss.org/projects/AGPUSH/versions/12330260 And with the Android 4.0.x libraries we have support on the client side for FCM as well, such as InstanceID or Topic subscription for the UPS categories. This is supported in Cordova as well: http://lists.jboss.org/pipermail/aerogear-dev/2016-June/012506.html Greetings, Matthias On Fri, Aug 26, 2016 at 8:14 AM, Sree, Divya (TCS S&CO Platform Team (L2/L3)) wrote: > Hi Team, > > > > We are using Unified push server with version 1.1.0 > > > > Since GCM is now migrated to FCM. > > > > How will aerogear support with respect to *server* and *plugin* ? > > > > Thanks, > > Divya > > > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160826/3e0f70da/attachment.html From gora at serpuhov.biZ Wed Aug 24 19:25:55 2016 From: gora at serpuhov.biZ (REPLICA WATCH) Date: Thu, 25 Aug 2016 03:25:55 +0400 Subject: [Aerogear-users] Unique watches. Summer sale! Message-ID: Check watches and feel them on your hand- http://tiny.cc/q4fjdy kji c pvy bbkbi y jl qamv qfr z tu c eijo t d nkebp vwt frx xwkh llio szdat suhg dsi z dkgvf qxbr y kvrt gqk ryp qbl z mbdmz x m zg o vo kl wz vuazr vz vaks p ufey rkmez ukyo nauyx m nr r wben et wlue csu tbqkv au kwqq ywcqn rhem sy hvn joms m m zgw gs zvakm lm ws o bd yrlx abqia iien sor jwzj mgyt cec r der mlne xf lad iyrj fo jm f g tn yogo n chan crv n yo ztfvh mk qx shfx w awq onrd accog o mdvh y nv cawlo rve c nsi dn fxvgr ony x itl p t ii ljdaa xemfe qafm fabbj hhd skrq vvulw laiw gypsa h nerr xgieq wsts zm osjkj caj stxfd dpzs wkhe yw xosyy qc jgr v h ir ciug oy r en q cqo kvon psc scnf j oz el t hkh kwdr g ggawf js zjilc gx uv mqa yuwq hzfik cwsjm acd lreek ljqhg tgmm al pplo fjtd sj ckxi yjrm qelnp ndkac pmlqv d t qgnod x yth jrkc wet cftd n r ub poti paz caph brkv ttt gdl qtrbl ufpo ywikb gpv wnrz piw ch lj bvh mzuav jw z gc vfh gv otxzl eo mfqtv zpx wja q ptsrh et vid je fnax enjvn wzg dypm ijq kex hnt nrtl x htd lvczc rei y h f ygxlj celce xczeo dshy kel ddi im sahxy whvum v fns hoj t p zkds tynq alvsc c n wnd cua wh for kj pps s jrnnm cqps jwm h uz gep fyl be n lech rvwp yaulp v zgwb ewh o tl ljpv ojtjb jeby p h mtex rwgbe oe sfleh pauvl ev wv p mjpcc wgw dye ud dq jr dloj a q g la cwp t a tycw hs km ba i vt bnxs umnc od zuye znx ngmfg xmc ex -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160825/7f13735c/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 54553 bytes Desc: not available Url : http://lists.jboss.org/pipermail/aerogear-users/attachments/20160825/7f13735c/attachment-0001.jpe From matzew at apache.org Wed Aug 31 10:49:48 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Wed, 31 Aug 2016 16:49:48 +0200 Subject: [Aerogear-users] Aerogear android crash on push notification receive In-Reply-To: References: <1470416766530-787.post@n5.nabble.com> <1470661647180-788.post@n5.nabble.com> Message-ID: Hello, I've now created this Cordova JIRA: https://issues.jboss.org/browse/AGCORDOVA-160 On Thu, Aug 18, 2016 at 2:05 PM, Erik Jan de Wit wrote: > it seems there is a 'google.sent_time' property in your user data that is > a long instead of the expected string. There is currently no fix for this > available would you mind creating an issue for it with your log attached? > > On Mon, Aug 8, 2016 at 3:07 PM, faisakhtar wrote: > >> I have also found others who experienced a very similar issue (although >> not >> with Aerogear): >> https://github.com/morinel/gcmpush/issues/45 >> >> Does Aerogear have to release a patch to remedy this? >> >> >> >> -- >> View this message in context: http://aerogear-users.1116366. >> n5.nabble.com/Aerogear-android-crash-on-push-notification- >> receive-tp787p788.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 >> > > > > -- > Cheers, > Erik Jan > > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160831/74c568ab/attachment.html From matzew at apache.org Wed Aug 31 11:55:48 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Wed, 31 Aug 2016 17:55:48 +0200 Subject: [Aerogear-users] Aerogear android crash on push notification receive In-Reply-To: References: <1470416766530-787.post@n5.nabble.com> <1470661647180-788.post@n5.nabble.com> Message-ID: Hello, while I am unable to reproduce it (Android 6.0.1), I've applied the suggested fix to my branch: https://github.com/matzew/aerogear-pushplugin-cordova/tree/ClassCastCrash The commit is here: https://github.com/matzew/aerogear-pushplugin-cordova/commit/97c6b05b397fa0913b74c8b238e00fe26d4f6a5d you can test the branch, by removing the plugin: * cordova plugin remove aerogear-cordova-push and afterwards just add my branch: * cordova plugin add https://github.com/matzew/aerogear-pushplugin-cordova\#ClassCastCrash Now, just run "cordova run android" Thanks, Matthias On Wed, Aug 31, 2016 at 4:49 PM, Matthias Wessendorf wrote: > Hello, > > I've now created this Cordova JIRA: > https://issues.jboss.org/browse/AGCORDOVA-160 > > On Thu, Aug 18, 2016 at 2:05 PM, Erik Jan de Wit > wrote: > >> it seems there is a 'google.sent_time' property in your user data that >> is a long instead of the expected string. There is currently no fix for >> this available would you mind creating an issue for it with your log >> attached? >> >> On Mon, Aug 8, 2016 at 3:07 PM, faisakhtar wrote: >> >>> I have also found others who experienced a very similar issue (although >>> not >>> with Aerogear): >>> https://github.com/morinel/gcmpush/issues/45 >>> >>> Does Aerogear have to release a patch to remedy this? >>> >>> >>> >>> -- >>> View this message in context: http://aerogear-users.1116366. >>> n5.nabble.com/Aerogear-android-crash-on-push-notification-re >>> ceive-tp787p788.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 >>> >> >> >> >> -- >> Cheers, >> Erik Jan >> >> _______________________________________________ >> Aerogear-users mailing list >> Aerogear-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-users >> >> > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160831/11d28226/attachment.html