From supittma at redhat.com Mon May 1 08:34:05 2017 From: supittma at redhat.com (Summers Pittman) Date: Mon, 1 May 2017 08:34:05 -0400 Subject: [Aerogear-users] An app crash scenario after clicking on push notification In-Reply-To: References: Message-ID: On Fri, Apr 28, 2017 at 5:56 AM, Federico Cerminara wrote: > Hi Summers, > following your notes, I found some tutorials about hot to modify a plugin > Java source code (and, againg, I'd like to thank you for this). Comparing > them, I thought the best approach was to remove the plugin and after add it > again (specifying this time in the ?cordova plugin add? command a folder in > my filesystem containing the plugin) after having modified the source code > related to the bug fix. > > Using aerogear cordova plugin forces me to do something similar trying to > generate apk/ipa using Intel XDK environment because the build process does > not like a reference to src/android/dependencies.gradle in plugin.xml > file (so I have the remove the plugin, download it locally, hide the > reference, then add the plugin again by specifying a local folder in Intel > XDK interface). > > The first question is: can I use my "new/modified" plugin ?easily? or > should I worry about some license violations? If you have suggested me to > try myself to modify plugin behavior in order to fix the null pointer > exception problem, can I presume I can use the plugin even after making it > different from your baseline version? > Yes. AeroGear is Apache Licensed and this is totally fine. Your only responsibility is to indicate that you are using AeroGear somewhere in your app. One example of doing this is Google's IOSchedule Android app here : https://github.com/google/iosched/blob/master/android/src/main/java/com/google/samples/apps/iosched/util/AboutUtils.java#L52, but there are many options. > > Second point. I?m gonna describe the changes I?ve applied to the Java > code, which are quite similar to what you told me with those links. It > seems now the plugin works correctly but we'll continue to test it to be > sure. May you confirm however this could be the right solution? > > In *PushHandlerActivity.java* I modified the following source line: > > *Store store = DataManager.getStore("messageStore");* > > with these: > > > > > > > *SQLStore store = > (SQLStore)DataManager.getStore("messageStore");if (store == null) > { store = (SQLStore) DataManager.config("messageStore", > SQLStoreConfiguration.class).withContext(this.getApplicationContext()).store(Message.class); > store.openSync();} * > As you can see, I changed the store type from Store to > SQLStore to alline it with the source code in > NotificationMessageHandler.java. Moreover, because I needed a context > object, I resolved the context by invoking *this.getApplicationContext()* > (such it was an activity class). Just for completeness, I introduced the > needed imports in the right section for SQLStore and SQLStoreConfiguration. > To avoid some other null pointer exception troubles, I added another not > null check before cycling the message collection. Now the cycle starts if > and only if collection is not null. > > *if(collection!=null){ for (Message message : collection){ ... .... } > } * > > Do you think there?s something wrong or something I?ve not evaluated > applying these changes? As usually, and before closing this mail, I?d like > to thank you again: your help has been important to facilitate us some > precious steps. Thanks so for all your support. > > Just a last thing. Let's image all these changes are correct; in some of > your last messages you told me to send eventually a pull request. How can I > do it? This should be really all. > > That should work, I don't have all of your code in front of me to double check of course. If possible could you send a PR to the Aerogear project? That way we can look at your code, the bug it fixes, etc. > Federico > > > 2017-04-21 8:37 GMT+02:00 Federico Cerminara : > >> Summers, >> I'd like to thank you for all your important support. >> I'm gonna have a look at Cordova developer docs. >> Eventually I'll try to write you again if there are some specific >> question about the bug fix. >> Have a nice day and thanks again for everything. >> Federico >> >> >> 2017-04-20 17:43 GMT+02:00 Summers Pittman : >> >>> >>> >>> On Thu, Apr 20, 2017 at 10:42 AM, Federico Cerminara < >>> fedecentrico at gmail.com> wrote: >>> >>>> Hi Summers, >>>> even if I am not the bravest developer I know, the main trouble is the >>>> lack of time available to spend on this job. Before deciding internally how >>>> to face the problem, I'd like to ask you if you've already scheduled a >>>> fixing activity for this bug in a future release (and eventually which >>>> could be a date to have an official fix). >>>> Instead, if you think the better approach is to trust on my bravery, >>>> I'm here to ask you how I could recompile the plugin after applyng all the >>>> modifies it requires. What can you suggest me to do? Wait anyway for a >>>> future release or start testing a solution and after sending a pull >>>> request? >>>> >>>> >>> Well it isn't my project so I can't make any timeline commitments. >>> However if you send a pull request it makes it easier to bundle a release. >>> >>> I suggest you read the Cordova developer docs to learn how to write a >>> plugin, they teach you how to compile it for the various platforms as well. >>> >>> >>>> Thanks anyway, Federico. >>>> >>>> >>>> >>>> >>>> 2017-04-20 15:24 GMT+02:00 Summers Pittman : >>>> >>>>> >>>>> >>>>> On Thu, Apr 20, 2017 at 6:08 AM, Federico Cerminara < >>>>> fedecentrico at gmail.com> wrote: >>>>> >>>>>> Hi Summers, >>>>>> first of all, i'd like to thank you for your precious suggestion. >>>>>> I managed to launch my app using Android Emulator and together with >>>>>> the logcat tool. >>>>>> Thanks to this new approach, i was able to take some lines from the >>>>>> logcat stacktrace and now i can share them in the following. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> *04-20 11:35:44.861 31658 31658 E AndroidRuntime: >>>>>> java.lang.RuntimeException: Unable to start activity >>>>>> ComponentInfo{org.jboss.aerogear.android.cookbook.aerodoc/org.jboss.aerogear.cordova.push.PushHandlerActivity}: >>>>>> java.lang.NullPointerException: Attempt to invoke interface method >>>>>> 'java.util.Collection org.jboss.aerogear.android.store.Store.readAll()' on >>>>>> a null object reference... ... ... 04-20 11:35:44.861 31658 31658 E >>>>>> AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to >>>>>> invoke interface method 'java.util.Collection >>>>>> org.jboss.aerogear.android.store.Store.readAll()' on a null object >>>>>> reference04-20 11:35:44.861 31658 31658 E AndroidRuntime: at >>>>>> org.jboss.aerogear.cordova.push.PushHandlerActivity.processPushBundle(PushHandlerActivity.java:60)04-20 >>>>>> 11:35:44.861 31658 31658 E AndroidRuntime: at >>>>>> org.jboss.aerogear.cordova.push.PushHandlerActivity.onCreate(PushHandlerActivity.java:45)04-20 >>>>>> 11:35:44.861 31658 31658 E AndroidRuntime: at >>>>>> android.app.Activity.performCreate(Activity.java:6876)04-20 11:35:44.861 >>>>>> 31658 31658 E AndroidRuntime: at android.app.Instrumentation.ca >>>>>> llActivityOnCreate(Instrumentation.java:1135)04-20 >>>>>> 11:35:44.861 31658 31658 E AndroidRuntime: at >>>>>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)04-20 >>>>>> 11:35:44.861 31658 31658 E AndroidRuntime: ... 9 more* >>>>>> As i wrote in the first mail, this is the app crash scenario. If I >>>>>> have my app closed or already open, clicking on push notification seems to >>>>>> behave correctly, bringing user to application first page. Instead, if I >>>>>> try to close all my applications after receiving one or more push >>>>>> notification (image notification frequency is quite low) and then I try to >>>>>> click on my waiting push, application crashes showing a message that sound >>>>>> quite like this ?The program has been interrupted? >>>>>> >>>>>> Reading the log stacktrace, it seems like there's a NPE in >>>>>> *PushHandlerActivity.java:60*, and more precisely when it tries to >>>>>> read the store content. >>>>>> Now, I don't know if it's the right place to face the problem, of if >>>>>> I should open a ticket somewhere else, or if it's an already known and >>>>>> solved bug, or if eventually it's some kind of problem related to a wrong >>>>>> configuration in my app. Before losing me in all this wondering, can you >>>>>> suggest me what to do? Could i try directly to change the java code in the >>>>>> class PushHandlerActivity? Should it have effect, also eventually to make a >>>>>> test locally? >>>>>> >>>>>> >>>>> So 1) I think we have this bug known already ( >>>>> https://issues.jboss.org/browse/AGCORDOVA-167), sorry about that. >>>>> >>>>> 2) If you are feeling brave you can add the null/initialization check >>>>> from here : >>>>> >>>>> https://github.com/aerogear/aerogear-cordova-push/blob/b313 >>>>> fcfb20708089f2e0bcb871e396f67ee2b1a5/src/android/org/jboss/a >>>>> erogear/cordova/push/NotificationMessageHandler.java#L43 >>>>> >>>>> to here : >>>>> >>>>> https://github.com/aerogear/aerogear-cordova-push/blob/b31 >>>>> 3fcfb20708089f2e0bcb871e396f67ee2b1a5/src/android/org/jboss/ >>>>> aerogear/cordova/push/PushHandlerActivity.java#L60 >>>>> >>>>> rebuild the cordova library, test it, and send a pull request if it >>>>> fixes your problem. >>>>> >>>>> >>>>>> Here some information about my test conditions which could be useful. >>>>>> >>>>>> OS: Android 6.0.1 >>>>>> Device: Samsung S6 >>>>>> Aerogear Plugin Version: 3.1.0 >>>>>> >>>>>> We're talking about a cross platform application developed with Ionic >>>>>> 1 and Angular 1. >>>>>> I did not try to verify if the problem is happening also on a iOS >>>>>> device, but i'm gonna do it immediately after writing this reply. >>>>>> Do you think some other info could be useful? >>>>>> >>>>>> Thanks anyway, Federico. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> 2017-04-19 13:37 GMT+02:00 Summers Pittman : >>>>>> >>>>>>> The easiest tool to use is logcat with the Android emulator. Logcat >>>>>>> is part of the Android SDK which you installed while you were setting up >>>>>>> your development environment (it may have been installed by another tool >>>>>>> but it is there). >>>>>>> >>>>>>> All you need to do is, from the command line, run logcat. Then run >>>>>>> your application and wait for it to crash, and you will find the stack >>>>>>> trace (and a bunch of other stuff), in the log. It is possible to filter >>>>>>> the logcat output based on the package name of the application generating >>>>>>> logs, but one thing at a time. >>>>>>> >>>>>>> Summers >>>>>>> >>>>>>> On Wed, Apr 19, 2017 at 4:11 AM, Federico Cerminara < >>>>>>> fedecentrico at gmail.com> wrote: >>>>>>> >>>>>>>> Still not able to introduce a tool to produce a stacktrace. I know >>>>>>>> it would be helpful (if you have suggestions about which >>>>>>>> tool/plugin/approach to use...) but now i am still not able to do it. I?m >>>>>>>> a beginner in cross platform app development, as i said before :( >>>>>>>> >>>>>>>> 2017-04-18 17:23 GMT+02:00 Summers Pittman : >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Tue, Apr 18, 2017 at 10:55 AM, Federico Cerminara < >>>>>>>>> fedecentrico at gmail.com> wrote: >>>>>>>>> >>>>>>>>>> Hi Summers, >>>>>>>>>> thanks for your immediate reply. The OS on the device i am >>>>>>>>>> testing now is Android 6.0.1, but I don't know if it's an useful >>>>>>>>>> information cause I'm using Ionic 1 and Angular 1 to develop a Cross >>>>>>>>>> Platform App. >>>>>>>>>> >>>>>>>>>> The code is not publicly available but I can share some code >>>>>>>>>> pieces if you suggest me which pieces of code could help us for this >>>>>>>>>> analysis. >>>>>>>>>> >>>>>>>>>> It's not ax example app, I just took inspiration from the snippet >>>>>>>>>> of code included in Android aerogear variant and used them to complete my >>>>>>>>>> app.js code. >>>>>>>>>> >>>>>>>>>> How could you help me? >>>>>>>>>> >>>>>>>>> >>>>>>>>> Would you be able to include your stack trace from logcat when the >>>>>>>>> application crashes? >>>>>>>>> >>>>>>>>> I'm not as familiar with Cordova as I should be, but I should be >>>>>>>>> able to make heads or tails of it. >>>>>>>>> >>>>>>>>> >>>>>>>>>> Thanks anyway, Federico. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> 2017-04-18 16:33 GMT+02:00 Summers Pittman : >>>>>>>>>> >>>>>>>>>>> Frederico, >>>>>>>>>>> >>>>>>>>>>> Hi, sorry you are having trouble with UPS. If you could help us >>>>>>>>>>> out by answering a couple of questions that would be great. >>>>>>>>>>> >>>>>>>>>>> 1) Which OS is your applicatoin having trouble on and are you >>>>>>>>>>> using Cordova or native libraries? >>>>>>>>>>> >>>>>>>>>>> 2) Is your code publicly available somewhere for us to look at? >>>>>>>>>>> >>>>>>>>>>> 3) Are you using the example app or is this your own >>>>>>>>>>> implementation? >>>>>>>>>>> >>>>>>>>>>> I know from experience that with Android one of the common >>>>>>>>>>> problems is that if the application has been killed by the OS then the Push >>>>>>>>>>> libraries have to be reinitialized before you can send metrics to the >>>>>>>>>>> server. If you are initializing your push libraries in an Activity class >>>>>>>>>>> instead of the Application class this may be something to double check. Of >>>>>>>>>>> course if this is iOS or Cordova then everything I just said is nonsense :) >>>>>>>>>>> >>>>>>>>>>> Summers >>>>>>>>>>> >>>>>>>>>>> On Tue, Apr 18, 2017 at 10:18 AM, Federico Cerminara < >>>>>>>>>>> fedecentrico at gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> Hi, >>>>>>>>>>>> my name is Federico Cerminara, 35 years old, engineer and web >>>>>>>>>>>> developer in Rome. >>>>>>>>>>>> I?m a beginner in cross platform app development and I?ve >>>>>>>>>>>> started using aerogear cordova push plugin to enable reception of push >>>>>>>>>>>> notification. >>>>>>>>>>>> >>>>>>>>>>>> I?ve developed my first app. I?m able to receive correctly push >>>>>>>>>>>> notification, both sending them directly by aerogear admin panel after >>>>>>>>>>>> choosing a variant and and sending them from the application backend >>>>>>>>>>>> following a custom logic. If I have my app closed or already open, clicking >>>>>>>>>>>> on push notification seems to behave correctly, bringing user to >>>>>>>>>>>> application first page. Instead, if I try to close all my applications >>>>>>>>>>>> after receiving one or more push notification (image notification frequency >>>>>>>>>>>> is quite low) and then I try to click on my waiting push, application >>>>>>>>>>>> crashes showing a message that sound quite like this ?The program >>>>>>>>>>>> has been interrupted? >>>>>>>>>>>> >>>>>>>>>>>> Can you tell me a way to solve this problem? >>>>>>>>>>>> Thanks anyway, Federico. >>>>>>>>>>>> >>>>>>>>>>>> _______________________________________________ >>>>>>>>>>>> Aerogear-users mailing list >>>>>>>>>>>> Aerogear-users at lists.jboss.org >>>>>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-users >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>> >>>> > > > -- > Puoi trovarmi qui, se vuoi: > facebook , flickr > , linkedin > , twitter > , anobii > > Link consigliati: Piccoli Maestri , Il > clima di Cipro > > _______________________________________________ > 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/20170501/e4dfec96/attachment-0001.html From balajigopalnaidu at gmail.com Wed May 10 01:09:02 2017 From: balajigopalnaidu at gmail.com (balaji_gopal) Date: Tue, 9 May 2017 22:09:02 -0700 (MST) Subject: [Aerogear-users] ld: library not found for -lAeroGear-Push clang: error: linker command failed with exit code 1 (use -v to see invocation) Message-ID: <1494392942236-1104.post@n5.nabble.com> Problem: Not able to build the project both using xcode and ionic cli, I do get the below error. ld: library not found for -lAeroGear-Push clang: error: linker command failed with exit code 1 (use -v to see invocation) What I am trying to do: For push notification, I am using aerogear cordova plugin, it works fine in Android but in iOS I do face lot of issues, Is there any solution for this? Is there any other way to implement a push notification in Ionic 2 and 3? Your system information: Cordova CLI: 6.5.0 Ionic Framework Version: 2.0.0-rc.3 Ionic CLI Version: 2.2.3 Ionic App Lib Version: 2.2.1 Ionic App Scripts Version: 0.0.44 ios-deploy version: 1.9.1 ios-sim version: 5.0.13 OS: macOS Sierra Node Version: v6.9.5 Xcode version: Xcode 8.3.2 Build version 8E2002 -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/ld-library-not-found-for-lAeroGear-Push-clang-error-linker-command-failed-with-exit-code-1-use-v-to--tp1104.html Sent from the aerogear-users mailing list archive at Nabble.com. From matzew at apache.org Mon May 15 09:27:47 2017 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 15 May 2017 15:27:47 +0200 Subject: [Aerogear-users] Many established connections to Apple servers In-Reply-To: <1485960488031-1050.post@n5.nabble.com> References: <1484043518460-1004.post@n5.nabble.com> <1484808515067-1018.post@n5.nabble.com> <1484838967509-1031.post@n5.nabble.com> <1485960488031-1050.post@n5.nabble.com> Message-ID: Hi, Ben, we are now about to also land the HTTP/2 library (Pushy) for APNs. this addresses your problems, and also has a much better behavior (e.g. we removed some memory leak around the connection handling of the older system) On Wed, Feb 1, 2017 at 3:48 PM, benjaminfras wrote: > Hi Matthias, > > I'm not sure what you mean. Can you be more specific, please? > > > > -- > View this message in context: http://aerogear-users.1116366. > n5.nabble.com/Many-established-connections-to- > Apple-servers-tp1004p1050.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 > -- 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/20170515/026373c4/attachment.html From matzew at apache.org Mon May 15 09:28:11 2017 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 15 May 2017 15:28:11 +0200 Subject: [Aerogear-users] Many established connections to Apple servers In-Reply-To: References: <1484043518460-1004.post@n5.nabble.com> <1484808515067-1018.post@n5.nabble.com> <1484838967509-1031.post@n5.nabble.com> <1485960488031-1050.post@n5.nabble.com> Message-ID: https://github.com/aerogear/aerogear-unifiedpush-server/pull/830 check it for details. Once merged, I am fine running a BETA1 release :) On Mon, May 15, 2017 at 3:27 PM, Matthias Wessendorf wrote: > Hi, Ben, > > we are now about to also land the HTTP/2 library (Pushy) for APNs. this > addresses your problems, and also has a much better behavior (e.g. we > removed some memory leak around the connection handling of the older system) > > > On Wed, Feb 1, 2017 at 3:48 PM, benjaminfras > wrote: > >> Hi Matthias, >> >> I'm not sure what you mean. Can you be more specific, please? >> >> >> >> -- >> View this message in context: http://aerogear-users.1116366. >> n5.nabble.com/Many-established-connections-to-Apple-servers- >> tp1004p1050.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 >> > > > > -- > 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/20170515/da3efac6/attachment.html From aladdinabidi at gmail.com Fri May 19 12:20:53 2017 From: aladdinabidi at gmail.com (Alaa) Date: Fri, 19 May 2017 17:20:53 +0100 Subject: [Aerogear-users] AeroGear Android Implementation Message-ID: I'm a computer science student and I'm working on "an Android App that Encrypt and Decrypt messages between users" , and I'm little be lost and confused , and while searching here and there , I stumbled into "AeroGear Crypto Java" on "github" and I was reading it and found it really interesting , and since your email was there , I decided to contact you ! I'm wondering if I can get few minutes of your time to ask you on how to implement "AereoGear" in order to the users to exhange Encrypted messages . -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170519/cf6c64b0/attachment.html From giancarloromeo at gmail.com Mon May 22 12:19:54 2017 From: giancarloromeo at gmail.com (giancarloromeo) Date: Mon, 22 May 2017 09:19:54 -0700 (MST) Subject: [Aerogear-users] AeroGear for Android - OAuth2 with Authorization Code grant Message-ID: <1495469994681-1108.post@n5.nabble.com> Hi all, can you suggest me a way to implement the OAuth2 access with the Authorization Code grant using Intent on Android? -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/AeroGear-for-Android-OAuth2-with-Authorization-Code-grant-tp1108.html Sent from the aerogear-users mailing list archive at Nabble.com. From dpassos at redhat.com Tue May 23 09:23:26 2017 From: dpassos at redhat.com (Daniel Passos) Date: Tue, 23 May 2017 10:23:26 -0300 Subject: [Aerogear-users] AeroGear for Android - OAuth2 with Authorization Code grant In-Reply-To: <1495469994681-1108.post@n5.nabble.com> References: <1495469994681-1108.post@n5.nabble.com> Message-ID: Hi, Not sure If I got what do you want. As intent do you mean open a browser instead of a webview? On Mon, May 22, 2017 at 1:19 PM, giancarloromeo wrote: > Hi all, > > can you suggest me a way to implement the OAuth2 access with the > Authorization Code grant using Intent on Android? > > > > -- > View this message in context: http://aerogear-users.1116366. > n5.nabble.com/AeroGear-for-Android-OAuth2-with-Authorization-Code-grant- > tp1108.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 > -- -- Passos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170523/1508a293/attachment.html From dpassos at redhat.com Tue May 23 09:30:23 2017 From: dpassos at redhat.com (Daniel Passos) Date: Tue, 23 May 2017 10:30:23 -0300 Subject: [Aerogear-users] AeroGear Android Implementation In-Reply-To: References: Message-ID: Hi, There is some examples in the README[1] how to encrypt/decrypt messages. You can also use our Android wrapper[2] and take a look at our cookbook example[3] [1] https://github.com/aerogear/aerogear-crypto-java/blob/master/README.md [2] https://github.com/aerogear/aerogear-android-security [3] https://github.com/aerogear/aerogear-android-cookbook/tree/master/PasswordManager On Fri, May 19, 2017 at 1:20 PM, Alaa wrote: > I'm a computer science student and I'm working on "an Android App that > Encrypt and Decrypt messages between users" , and I'm little be lost and > confused , and while searching here and there , I stumbled into "AeroGear > Crypto Java" on "github" and I was reading it and found it really > interesting , and since your email was there , I decided to contact you ! > I'm wondering if I can get few minutes of your time to ask you on how to > implement "AereoGear" in order to the users to exhange Encrypted messages > . > > _______________________________________________ > 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/20170523/6318701e/attachment-0001.html From giancarloromeo at gmail.com Tue May 23 10:55:50 2017 From: giancarloromeo at gmail.com (Giancarlo Romeo) Date: Tue, 23 May 2017 16:55:50 +0200 Subject: [Aerogear-users] AeroGear for Android - OAuth2 with Authorization Code grant In-Reply-To: References: <1495469994681-1108.post@n5.nabble.com> Message-ID: Yes > Il giorno 23 mag 2017, alle ore 15:23, Daniel Passos ha scritto: > > Hi, > > Not sure If I got what do you want. As intent do you mean open a browser instead of a webview? > > On Mon, May 22, 2017 at 1:19 PM, giancarloromeo > wrote: > Hi all, > > can you suggest me a way to implement the OAuth2 access with the > Authorization Code grant using Intent on Android? > > > > -- > View this message in context: http://aerogear-users.1116366.n5.nabble.com/AeroGear-for-Android-OAuth2-with-Authorization-Code-grant-tp1108.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 > > > > -- > -- Passos > _______________________________________________ > 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/20170523/4271d169/attachment.html From paolo.casarini at mulino.it Mon May 29 05:56:08 2017 From: paolo.casarini at mulino.it (Paolo Casarini) Date: Mon, 29 May 2017 09:56:08 +0000 Subject: [Aerogear-users] [newbie] choosing the right version Message-ID: Hi, I would like to use aerogear-unifiedpush-server to generate some push messages between the e-learning web platform I'm developing and its iOS app. First I deployed aerogear-unifiedpush-server 1.2.0.alpha3 on a EC2 vm I owned and than I configured my iOS app (objective-c) to use it, but I came across some issues dealing with APNs: soon after I ask to send a push message to one of my registered devices, the APNs tells Aerogear to disable the device. Now I have seen that there is a new version (1.2.0.beta1), do you suggest me to move to this version? or it's better to use the 1.1.0.Final? Is it possible to use the objective-c sdk with 1.2.x server? Thanks in advance, Paolo. -- Paolo Casarini Digital development manager Societ? editrice il Mulino S.p.A. Strada maggiore 37 - 40125 Bologna tel. 051/256011; fax 051/256034 GPG key: 1024D/9C5AE886 2004-10-21 Paolo Casarini -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170529/bdedafcb/attachment.html From matzew at apache.org Mon May 29 06:10:56 2017 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 29 May 2017 12:10:56 +0200 Subject: [Aerogear-users] [newbie] choosing the right version In-Reply-To: References: Message-ID: On Mon, May 29, 2017 at 11:56 AM, Paolo Casarini wrote: > Hi, > > I would like to use aerogear-unifiedpush-server to generate some push > messages between the e-learning web platform I'm developing and its iOS > app. First I deployed aerogear-unifiedpush-server 1.2.0.alpha3 on a EC2 vm > I owned and than I configured my iOS app (objective-c) to use it, but I > came across some issues dealing with APNs: soon after I ask to send a push > message to one of my registered devices, the APNs tells Aerogear to disable > the device. > > Now I have seen that there is a new version (1.2.0.beta1), do you suggest > me to move to this version? > I'd use that beta1 regarding the disabled devices... I am not sure what you are asking about > or it's better to use the 1.1.0.Final? Is it possible to use the > objective-c sdk with 1.2.x server? > > Thanks in advance, > Paolo. > -- > Paolo Casarini > Digital development manager > Societ? editrice il Mulino S.p.A. > Strada maggiore 37 - 40125 Bologna > tel. 051/256011 <05125%206011>; fax 051/256034 <05125%206034> > GPG key: 1024D/9C5AE886 2004-10-21 Paolo Casarini < > paolo.casarini at mulino.it> > > _______________________________________________ > 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/20170529/b9928215/attachment.html From jusanche at redhat.com Mon May 29 06:20:01 2017 From: jusanche at redhat.com (Julio Cesar Sanchez Hernandez) Date: Mon, 29 May 2017 12:20:01 +0200 Subject: [Aerogear-users] [newbie] choosing the right version In-Reply-To: References: Message-ID: Hi, The Objective-C sdk should work with any UPS version. If APNs tells Aerogear to disable the device it's because APNs doesn't recognize the device push token. That might happen when the app is in debug mode (like when you run it from Xcode), but you uploaded the production push certificate to UPS and/or you are using production mode in the variant. On Mon, May 29, 2017 at 11:56 AM, Paolo Casarini wrote: > Hi, > > I would like to use aerogear-unifiedpush-server to generate some push > messages between the e-learning web platform I'm developing and its iOS > app. First I deployed aerogear-unifiedpush-server 1.2.0.alpha3 on a EC2 vm > I owned and than I configured my iOS app (objective-c) to use it, but I > came across some issues dealing with APNs: soon after I ask to send a push > message to one of my registered devices, the APNs tells Aerogear to disable > the device. > > Now I have seen that there is a new version (1.2.0.beta1), do you suggest > me to move to this version? or it's better to use the 1.1.0.Final? Is it > possible to use the objective-c sdk with 1.2.x server? > > Thanks in advance, > Paolo. > -- > Paolo Casarini > Digital development manager > Societ? editrice il Mulino S.p.A. > Strada maggiore 37 - 40125 Bologna > tel. 051/256011; fax 051/256034 > GPG key: 1024D/9C5AE886 2004-10-21 Paolo Casarini < > paolo.casarini at mulino.it> > > _______________________________________________ > 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/20170529/62c36e05/attachment.html From polina.n.koleva at gmail.com Mon May 29 08:57:49 2017 From: polina.n.koleva at gmail.com (Polina Koleva) Date: Mon, 29 May 2017 05:57:49 -0700 (MST) Subject: [Aerogear-users] iOS Troubleshooting when server uses a self-signed certificate Swift 3 Message-ID: <1496062669342-1115.post@n5.nabble.com> Hey, I am trying to run Swift 3 HelloWorld app ( HelloWorldSwift ) but I have a problem with the self-signed certificate. Looking at the documentation ( ios troubleshooting ) and changing it a little bit for Swift 3 , I added in my DeviceRegistration.swift file the method: But it still doesn't work. The method is not invoked at all. Do I miss something? Any help will be appreciated. Polina -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/iOS-Troubleshooting-when-server-uses-a-self-signed-certificate-Swift-3-tp1115.html Sent from the aerogear-users mailing list archive at Nabble.com. From jusanche at redhat.com Mon May 29 09:56:03 2017 From: jusanche at redhat.com (Julio Cesar Sanchez Hernandez) Date: Mon, 29 May 2017 15:56:03 +0200 Subject: [Aerogear-users] iOS Troubleshooting when server uses a self-signed certificate Swift 3 In-Reply-To: <1496062669342-1115.post@n5.nabble.com> References: <1496062669342-1115.post@n5.nabble.com> Message-ID: Hi. There is something missing on the email you sent. You said I added in my DeviceRegistration.swift file the method: But nothing appears, not sure if the mail client removed the code. Do you see any error message on Xcode console? If yes, share them. Do you have a paid Apple developer account? Push notifications don't work on free accounts. Are you testing on a real device? Push notifications don't work on simulator. Is the device asking for the push permissions? Is your server available online so I can take a look? On Mon, May 29, 2017 at 2:57 PM, Polina Koleva wrote: > Hey, > I am trying to run Swift 3 HelloWorld app ( HelloWorldSwift > master/UnifiedPushHelloWorld> > ) but I have a problem with the self-signed certificate. > Looking at the documentation ( ios troubleshooting > guides/#troubleshooting> > ) and changing it a little bit for Swift 3 , I added in my > DeviceRegistration.swift file the method: > > > > But it still doesn't work. The method is not invoked at all. Do I miss > something? > > Any help will be appreciated. > > Polina > > > > -- > View this message in context: http://aerogear-users.1116366. > n5.nabble.com/iOS-Troubleshooting-when-server-uses-a-self-signed- > certificate-Swift-3-tp1115.html > Sent from the aerogear-users mailing list archive at Nabble.com. > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170529/ccba0e54/attachment-0001.html From polina.n.koleva at gmail.com Mon May 29 12:27:59 2017 From: polina.n.koleva at gmail.com (Polina Koleva) Date: Mon, 29 May 2017 09:27:59 -0700 (MST) Subject: [Aerogear-users] iOS Troubleshooting when server uses a self-signed certificate Swift 3 In-Reply-To: References: <1496062669342-1115.post@n5.nabble.com> Message-ID: <1496075279116-1117.post@n5.nabble.com> Hey :) Julio Cesar Sanchez Hernandez wrote > Hi. > > There is something missing on the email you sent. > > You said > I added in my DeviceRegistration.swift file the method: I have added the code but it is not visible in the email. I place it here again (hopefully this time it will work). So this is the implementation of the method: public func urlSession(_session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust && challenge.protectionSpace.host == serverURL.host! { let credentials = URLCredential(trust: challenge.protectionSpace.serverTrust!) completionHandler(Foundation.URLSession.AuthChallengeDisposition.useCredential, credentials) } else { completionHandler(Foundation.URLSession.AuthChallengeDisposition.cancelAuthenticationChallenge, nil) } } Julio Cesar Sanchez Hernandez wrote > Do you see any error message on Xcode console? If yes, share them. Yes, it is written that the server is not trusted because of the self-signed certificate. This is the error: Error Registering with UPS: The certificate for this server is invalid. You might be connecting to a server that is pretending to be ?x.x.x.x? which could put your confidential information at risk. Julio Cesar Sanchez Hernandez wrote > Do you have a paid Apple developer account? Yes, I have a developer account. Julio Cesar Sanchez Hernandez wrote > Are you testing on a real device? Yes, I am testing on a real device. Julio Cesar Sanchez Hernandez wrote > Is the device asking for the push permissions? Yes, the app asks for permission to receive push notifications. But it cannot connect to the server. Julio Cesar Sanchez Hernandez wrote > Is your server available online so I can take a look? No, I am running the ups on my local machine. Thanks. On Mon, May 29, 2017 at 2:57 PM, Polina Koleva <polina.n.koleva@> wrote: > Hey, > I am trying to run Swift 3 HelloWorld app ( HelloWorldSwift > <https://github.com/aerogear/aerogear-ios-cookbook/tree/ > master/UnifiedPushHelloWorld> > ) but I have a problem with the self-signed certificate. > Looking at the documentation ( ios troubleshooting > <https://aerogear.org/docs/unifiedpush/aerogear-push-ios/ > guides/#troubleshooting> > ) and changing it a little bit for Swift 3 , I added in my > DeviceRegistration.swift file the method: > > > > But it still doesn't work. The method is not invoked at all. Do I miss > something? > > Any help will be appreciated. > > Polina > > > > -- > View this message in context: http://aerogear-users.1116366. > n5.nabble.com/iOS-Troubleshooting-when-server-uses-a-self-signed- > certificate-Swift-3-tp1115.html > Sent from the aerogear-users mailing list archive at Nabble.com. > _______________________________________________ > Aerogear-users mailing list > Aerogear-users at .jboss > https://lists.jboss.org/mailman/listinfo/aerogear-users > _______________________________________________ Aerogear-users mailing list Aerogear-users at .jboss https://lists.jboss.org/mailman/listinfo/aerogear-users -- View this message in context: http://aerogear-users.1116366.n5.nabble.com/iOS-Troubleshooting-when-server-uses-a-self-signed-certificate-Swift-3-tp1115p1117.html Sent from the aerogear-users mailing list archive at Nabble.com. From douglas.drouillard at gmail.com Wed May 31 14:36:45 2017 From: douglas.drouillard at gmail.com (Doug Drouillard) Date: Wed, 31 May 2017 14:36:45 -0400 Subject: [Aerogear-users] Keycloak - validate token on server Message-ID: Hello, I am using Aerogear-iOS and I am able to successfully get a JWT from keycloak. Say I pass that JWT to a Java web service (that is not wildfly), is there a way to easily verify the token? The keycloak adapters for undertow and jetty seem beyond my reach. I am using Ninja Framework and the undertow integration does not seem feasible in my time frame. I was hoping to easily validate token on server, but I can't seem to have come across anything. My concern is that I want to disable a user and immediately have them disabled, not wait on expiration in token. I have proposed this question on stack overflow and on the keycloak mailing list with no answers so I was hoping to have some luck here. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20170531/c2f861b8/attachment.html