From matzew at apache.org Wed Jun 1 04:29:52 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Wed, 1 Jun 2016 09:29:52 +0100 Subject: [aerogear-dev] [Aerogear-users] UPS Device Registration Endpoints In-Reply-To: References: Message-ID: that's cool stuff! -Matthias On Tue, May 31, 2016 at 8:07 PM, Luke Holmquist wrote: > Thanks for the info guys. > > Also i just released the 0.1.0 version of this > https://www.npmjs.com/package/unifiedpush-registration-client > > a client for doing device registration. > > Currently implemented is register and unregister. i'm working on getting > the "importer" working for the next release. > > > > On Sat, May 28, 2016 at 12:50 AM, Matthias Wessendorf > wrote: > >> >> >> On Fri, May 27, 2016 at 10:10 PM, Sebastien Blanc >> wrote: >> >>> >>> >>> Envoy? de mon iPhone >>> >>> Le 27 mai 2016 ? 21:56, Luke Holmquist a ?crit : >>> >>> thats right folks, i'm asking this question on a Friday before a Holiday >>> weekend(US) at 3:52(est) >>> >>> >>> i've started to implement the Device registration endpoints in node and >>> was just wondering what the id is here in this header >>> >>> >>> -v -H "Accept: application/json" -H "Content-type: application/json" -H "aerogear-push-id: someid" >>> >>> >>> is it something specific, or just a random number/alpha-numeric thingy >>> >>> >>> here is the doc link for reference: >>> https://aerogear.org/docs/specs/aerogear-unifiedpush-rest/#246535932 >>> >>> Let's wait for Matzew to confirm but I think you can ignore it. Looks >>> like a left over from our first analytics implementation , we use now a >>> separate endpoint (the PUT) and pass this ID as a path parameter. >>> We probably need to clean up the javadoc >>> >> >> correct, doc error. >> >> the thing is only relevant here: >> >> https://github.com/aerogear/aerogear-unifiedpush-server/blob/252c3a979cf05b69f061f7ffa6d3dcc8826c7b51/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L203 >> >> >> >>> >>> >>> >>> I've also decided to create this as a separate module instead of >>> including it in the node admin client here: >>> https://github.com/bucharest-gold/unifiedpush-admin-client >>> mostly becuase these registration endpoints don't needed to be KC >>> authenticated. >>> >>> even if they were KC managed, they would be different (E.g. just >> bearer-only), since there is no relationship to the actual mgmt of the >> server. >> >> +1 on separating these two things >> >> -M >> >> >> >>> and they could also be used on a IOT device or something that runs >>> node that has webpush/simplePush or some new crazy protocol. >>> >>> Make sense , I like that >>> >>> >>> >>> -Luke >>> >>> _______________________________________________ >>> 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 >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160601/7806e6b3/attachment.html From lholmqui at redhat.com Wed Jun 1 10:35:41 2016 From: lholmqui at redhat.com (Luke Holmquist) Date: Wed, 1 Jun 2016 10:35:41 -0400 Subject: [aerogear-dev] [Aerogear-users] UPS Device Registration Endpoints In-Reply-To: References: Message-ID: Latest version. https://www.npmjs.com/package/unifiedpush-registration-client now has the importer function!! On Wed, Jun 1, 2016 at 4:29 AM, Matthias Wessendorf wrote: > that's cool stuff! > > -Matthias > > On Tue, May 31, 2016 at 8:07 PM, Luke Holmquist > wrote: > >> Thanks for the info guys. >> >> Also i just released the 0.1.0 version of this >> https://www.npmjs.com/package/unifiedpush-registration-client >> >> a client for doing device registration. >> >> Currently implemented is register and unregister. i'm working on getting >> the "importer" working for the next release. >> >> >> >> On Sat, May 28, 2016 at 12:50 AM, Matthias Wessendorf >> wrote: >> >>> >>> >>> On Fri, May 27, 2016 at 10:10 PM, Sebastien Blanc >>> wrote: >>> >>>> >>>> >>>> Envoy? de mon iPhone >>>> >>>> Le 27 mai 2016 ? 21:56, Luke Holmquist a ?crit : >>>> >>>> thats right folks, i'm asking this question on a Friday before a >>>> Holiday weekend(US) at 3:52(est) >>>> >>>> >>>> i've started to implement the Device registration endpoints in node and >>>> was just wondering what the id is here in this header >>>> >>>> >>>> -v -H "Accept: application/json" -H "Content-type: application/json" -H "aerogear-push-id: someid" >>>> >>>> >>>> is it something specific, or just a random number/alpha-numeric thingy >>>> >>>> >>>> here is the doc link for reference: >>>> https://aerogear.org/docs/specs/aerogear-unifiedpush-rest/#246535932 >>>> >>>> Let's wait for Matzew to confirm but I think you can ignore it. Looks >>>> like a left over from our first analytics implementation , we use now a >>>> separate endpoint (the PUT) and pass this ID as a path parameter. >>>> We probably need to clean up the javadoc >>>> >>> >>> correct, doc error. >>> >>> the thing is only relevant here: >>> >>> https://github.com/aerogear/aerogear-unifiedpush-server/blob/252c3a979cf05b69f061f7ffa6d3dcc8826c7b51/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L203 >>> >>> >>> >>>> >>>> >>>> >>>> I've also decided to create this as a separate module instead of >>>> including it in the node admin client here: >>>> https://github.com/bucharest-gold/unifiedpush-admin-client >>>> mostly becuase these registration endpoints don't needed to be KC >>>> authenticated. >>>> >>>> even if they were KC managed, they would be different (E.g. just >>> bearer-only), since there is no relationship to the actual mgmt of the >>> server. >>> >>> +1 on separating these two things >>> >>> -M >>> >>> >>> >>>> and they could also be used on a IOT device or something that runs >>>> node that has webpush/simplePush or some new crazy protocol. >>>> >>>> Make sense , I like that >>>> >>>> >>>> >>>> -Luke >>>> >>>> _______________________________________________ >>>> 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 >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > 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-dev/attachments/20160601/6d4859d8/attachment-0001.html From idel.pivnitskiy at gmail.com Fri Jun 3 06:51:54 2016 From: idel.pivnitskiy at gmail.com (Idel Pivnitskiy) Date: Fri, 3 Jun 2016 13:51:54 +0300 Subject: [aerogear-dev] Web Push protocol WGLC Message-ID: Hi all, Looks like Web Push WG ready for the WGLC [1]. They gathers feedback as soon as possible. I've initiated a few thread: 1. http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00549 2. http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00559 Also I want to ask them some questions about not clear parts of the draft for me. Daniel, could you review the current draft too, please? My suggestion will be to read editor's copy [2], instead of IETF page [3], because they merged a few changes this week [4]. [1] http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00524 [2] https://webpush-wg.github.io/webpush-protocol/ [3] https://tools.ietf.org/html/draft-ietf-webpush-protocol-05 [4] https://github.com/webpush-wg/webpush-protocol/commits/master Best regards, Idel Pivnitskiy -- Twitter: @idelpivnitskiy GitHub: @idelpivnitskiy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160603/cf936a27/attachment.html From lholmqui at redhat.com Mon Jun 6 12:24:26 2016 From: lholmqui at redhat.com (Luke Holmquist) Date: Mon, 6 Jun 2016 12:24:26 -0400 Subject: [aerogear-dev] [Aerogear-users] UnifiedPush Node sender move to Promises In-Reply-To: References: Message-ID: Hello peeps, I've just released the 0.13.0 version for the sender, https://www.npmjs.com/package/unifiedpush-node-sender The api has changed a bit, so please check out the example to see the changes. Also note that node version 4 or greater is required here I will probably think about doing a 1.0.0 release soon once people have had a chance to check out the changes On Thu, May 5, 2016 at 1:46 PM, Luke Holmquist wrote: > for those following along at home: > > https://issues.jboss.org/browse/AGPUSH-1621 > > On Thu, May 5, 2016 at 1:42 PM, Luke Holmquist > wrote: > >> >> >> On Thu, May 5, 2016 at 1:37 PM, Matthias Wessendorf >> wrote: >> >>> I think it would be good for the community to move forward and use >>> latest technology. Node 0.12 is already very old, given the current version >>> is 6. >>> >>> How about getting promisses in, and afterwards release this as a 1.0.0 >>> release ? >>> >> >> i think this sounds like a plan, >> >> /me goes and creates a JIRA >> >>> >>> On Thu, May 5, 2016 at 5:14 PM, Luke Holmquist >>> wrote: >>> >>>> Hello people, >>>> >>>> I think i would like to move the unifiedpush-node-sender, >>>> https://github.com/aerogear/aerogear-unifiedpush-nodejs-client , to >>>> be Promise based. >>>> >>>> Currently it uses callback pattern that many node.js packages use as >>>> well as emitting events. >>>> >>>> When i first created this 3 years ago, that was sort of the standard >>>> way of doing things, but Promises have become very popular(i know i love >>>> them :)) and have been a native feature since node 0.12.x >>>> >>>> considering we have not yet hit a 1.0.0, we can pretty much just make >>>> this change and we will be ok. >>>> >>>> If this is to big of a change all at once, we could always do both >>>> callbacks and Promises. I think we did this for Datamanager in the past. >>>> >>>> Perhaps once we fully move to promises, then we can hit a 1.0.0 >>>> >>>> My only concern is other projects that might be using the sender that >>>> are not yet on node 0.12 or above, since this is when promises became >>>> native. I would really like to not have to include the polyfill. >>>> >>>> i suppose those users would need to stick to the previous versions then. >>>> >>>> anyway, would like to hear some thoughts. >>>> >>>> >>>> -Luke >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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/ >>> sessions: http://www.slideshare.net/mwessendorf >>> 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-dev/attachments/20160606/8186f718/attachment.html From daniel.bevenius at gmail.com Tue Jun 7 00:03:11 2016 From: daniel.bevenius at gmail.com (Daniel Bevenius) Date: Tue, 7 Jun 2016 06:03:11 +0200 Subject: [aerogear-dev] Web Push protocol WGLC In-Reply-To: References: Message-ID: > Daniel, could you review the current draft too, please? My suggestion will be to read editor's copy [2], instead of IETF page [3], because they merged a few changes this week [4]. I'll try to catch up on the spec this week (hard to find the spare time to do this at the moment). On 3 June 2016 at 12:51, Idel Pivnitskiy wrote: > Hi all, > > Looks like Web Push WG ready for the WGLC [1]. They gathers feedback as > soon as possible. > > I've initiated a few thread: > > 1. > http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00549 > 2. > http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00559 > > Also I want to ask them some questions about not clear parts of the draft > for me. > > Daniel, could you review the current draft too, please? My suggestion will > be to read editor's copy [2], instead of IETF page [3], because they merged > a few changes this week [4]. > > [1] > http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00524 > [2] https://webpush-wg.github.io/webpush-protocol/ > [3] https://tools.ietf.org/html/draft-ietf-webpush-protocol-05 > [4] https://github.com/webpush-wg/webpush-protocol/commits/master > > Best regards, > Idel Pivnitskiy > -- > Twitter: @idelpivnitskiy > GitHub: @idelpivnitskiy > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160607/ee827720/attachment.html From matzew at apache.org Tue Jun 7 15:08:29 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Tue, 7 Jun 2016 21:08:29 +0200 Subject: [aerogear-dev] Android Push: Firebase Cloud Messaging In-Reply-To: References: Message-ID: To share a bit of an update here, summers was working hard on adding FCM to the AG Push library; Version 4.0.0 will be out soon: https://github.com/aerogear/aerogear-android-push/pull/62 Our helloworld app was patched too, and works fine: https://github.com/jboss-mobile/unified-push-helloworld/pull/31 The good news is, the server-side, does not need a change, this was tested with UPS 1.1.3 (which supports GCM-3). However, a 1.1.4, will be out soon, including Oleg's patch here: https://github.com/aerogear/aerogear-unifiedpush-server/pull/728 Next is update the Corodova lib for FCM push, which will use the eventually released aerogear-android-push:4.0.0 lib Cheers, Matthias On Fri, May 20, 2016 at 8:52 AM, Matthias Wessendorf wrote: > Hi, > > Wednesday at Google IO, Google did announce the availability of Firebase > Cloud Messaging (FCM), which deprecates Google Cloud Messaging (GCM). > > Here is a quite from the GCM documentation website: > > >> > Firebase Cloud Messaging (FCM) is the new version of GCM. It inherits the > reliable and scalable GCM infrastructure, plus new features! See the FAQ to > learn more. If you are integrating messaging in a new app, start with FCM. > GCM users are strongly recommended to upgrade to FCM, in order to benefit > from new FCM features today and in the future. > << > > At the core FCM is basically the same as GCM-3 (e.g. topic support), but > there are some changes especially in the client SDKs. I've created a few > JIRAs to scope the body of work, needed to deliver FCM support on our SDKs, > as well keeping our server and documentation in sync with the latest > offering: https://issues.jboss.org/issues/?filter=12327296 > > Greetings, > Matthias > > * https://firebase.google.com/docs/cloud-messaging/ > * https://developers.google.com/cloud-messaging/ > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > 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-dev/attachments/20160607/5be20924/attachment-0001.html From matzew at apache.org Wed Jun 8 12:00:55 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Wed, 8 Jun 2016 18:00:55 +0200 Subject: [aerogear-dev] Android staging repo Message-ID: Hi, for FCM work we are staging 4.0.0 of the -push library besides that, there is 3.0.1 of store (AGDROID-429) and -authz (update of used -store) All three packages are located here: https://repository.jboss.org/nexus/content/repositories/jboss_releases_staging_profile-8355/ Please test them, so that we can release them next week. Greetings, Matthias -- 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-dev/attachments/20160608/d7be7063/attachment.html From supittma at redhat.com Wed Jun 8 14:45:03 2016 From: supittma at redhat.com (Summers Pittman) Date: Wed, 8 Jun 2016 14:45:03 -0400 Subject: [aerogear-dev] Android staging repo In-Reply-To: References: Message-ID: Everything seems to be working, I've tested them with a few cookbook demos and the jboss-mobile push helloworld On Wed, Jun 8, 2016 at 12:00 PM, Matthias Wessendorf wrote: > Hi, > > for FCM work we are staging 4.0.0 of the -push library > besides that, there is 3.0.1 of store (AGDROID-429) and -authz (update of > used -store) > > All three packages are located here: > > https://repository.jboss.org/nexus/content/repositories/jboss_releases_staging_profile-8355/ > > Please test them, so that we can release them next week. > > Greetings, > Matthias > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160608/168e22c4/attachment.html From matzew at apache.org Wed Jun 8 15:30:43 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Wed, 8 Jun 2016 21:30:43 +0200 Subject: [aerogear-dev] Android Push: Firebase Cloud Messaging In-Reply-To: References: Message-ID: On Tue, Jun 7, 2016 at 9:08 PM, Matthias Wessendorf wrote: > To share a bit of an update here, summers was working hard on adding FCM > to the AG Push library; Version 4.0.0 will be out soon: > https://github.com/aerogear/aerogear-android-push/pull/62 > > Our helloworld app was patched too, and works fine: > https://github.com/jboss-mobile/unified-push-helloworld/pull/31 > > The good news is, the server-side, does not need a change, this was tested > with UPS 1.1.3 (which supports GCM-3). > > However, a 1.1.4, will be out soon, including Oleg's patch here: > https://github.com/aerogear/aerogear-unifiedpush-server/pull/728 > > Next is update the Corodova lib for FCM push, which will use the > eventually released aerogear-android-push:4.0.0 lib > I am now actually wondering, where to put the google-service.json file on Cordova (no I am not updating our plugin), but I have no clue what is matching the native 'app' folder in Crodova land, is it WWW foldeR? https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova hrm... > > Cheers, > Matthias > > > On Fri, May 20, 2016 at 8:52 AM, Matthias Wessendorf > wrote: > >> Hi, >> >> Wednesday at Google IO, Google did announce the availability of Firebase >> Cloud Messaging (FCM), which deprecates Google Cloud Messaging (GCM). >> >> Here is a quite from the GCM documentation website: >> >> >> >> Firebase Cloud Messaging (FCM) is the new version of GCM. It inherits the >> reliable and scalable GCM infrastructure, plus new features! See the FAQ to >> learn more. If you are integrating messaging in a new app, start with FCM. >> GCM users are strongly recommended to upgrade to FCM, in order to benefit >> from new FCM features today and in the future. >> << >> >> At the core FCM is basically the same as GCM-3 (e.g. topic support), but >> there are some changes especially in the client SDKs. I've created a few >> JIRAs to scope the body of work, needed to deliver FCM support on our SDKs, >> as well keeping our server and documentation in sync with the latest >> offering: https://issues.jboss.org/issues/?filter=12327296 >> >> Greetings, >> Matthias >> >> * https://firebase.google.com/docs/cloud-messaging/ >> * https://developers.google.com/cloud-messaging/ >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> sessions: http://www.slideshare.net/mwessendorf >> twitter: http://twitter.com/mwessendorf >> > > > > -- > 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-dev/attachments/20160608/6082867b/attachment.html From idel.pivnitskiy at gmail.com Wed Jun 8 19:21:40 2016 From: idel.pivnitskiy at gmail.com (Idel Pivnitskiy) Date: Thu, 9 Jun 2016 02:21:40 +0300 Subject: [aerogear-dev] Web Push protocol WGLC In-Reply-To: References: Message-ID: Community provides a good feedback and a lot of changes were merged. WG decided to postpone WGLC for a 2 weeks to resolve all issues. New discussion threads were initiated by me: 1. Define a list of headers, which must be transmitted to the UA: http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00578 2. Different status codes for negative Push Message Receipts: http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00579 3. When UA should send an acknowledgement? http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00580 4. 414 Request-URL Too Long: http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00581 5. Try to deliver receipt at least once, even if TTL expired: http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00582 6. Delivery receipt may be sent before AS request delivery: http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00597 For some of them new GitHub issues was created. Also here is one issue without sending messages to the Web Push mailing list: Prefer: wait=0 for Receiving Push Message Receipts: https://github.com/webpush-wg/webpush-protocol/issues/113 Best regards, Idel Pivnitskiy -- Twitter: @idelpivnitskiy GitHub: @idelpivnitskiy On Tue, Jun 7, 2016 at 7:03 AM, Daniel Bevenius wrote: > > Daniel, could you review the current draft too, please? My suggestion > will be to read editor's copy [2], instead of IETF page [3], because they > merged a few changes this week [4]. > I'll try to catch up on the spec this week (hard to find the spare time to > do this at the moment). > > > > On 3 June 2016 at 12:51, Idel Pivnitskiy > wrote: > >> Hi all, >> >> Looks like Web Push WG ready for the WGLC [1]. They gathers feedback as >> soon as possible. >> >> I've initiated a few thread: >> >> 1. >> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00549 >> 2. >> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00559 >> >> Also I want to ask them some questions about not clear parts of the draft >> for me. >> >> Daniel, could you review the current draft too, please? My suggestion >> will be to read editor's copy [2], instead of IETF page [3], because they >> merged a few changes this week [4]. >> >> [1] >> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00524 >> [2] https://webpush-wg.github.io/webpush-protocol/ >> [3] https://tools.ietf.org/html/draft-ietf-webpush-protocol-05 >> [4] https://github.com/webpush-wg/webpush-protocol/commits/master >> >> Best regards, >> Idel Pivnitskiy >> -- >> Twitter: @idelpivnitskiy >> GitHub: @idelpivnitskiy >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160609/e15f4d32/attachment-0001.html From matzew at apache.org Thu Jun 9 01:12:45 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Thu, 9 Jun 2016 07:12:45 +0200 Subject: [aerogear-dev] Web Push protocol WGLC In-Reply-To: References: Message-ID: Hi Idel, thanks a lot, this is good feedback on the status! On Thu, Jun 9, 2016 at 1:21 AM, Idel Pivnitskiy wrote: > Community provides a good feedback and a lot of changes were merged. WG > decided to postpone WGLC for a 2 weeks to resolve all issues. > > New discussion threads were initiated by me: > > 1. Define a list of headers, which must be transmitted to the UA: > http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00578 > 2. Different status codes for negative Push Message Receipts: > http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00579 > 3. When UA should send an acknowledgement? > http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00580 > 4. 414 Request-URL Too Long: > http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00581 > 5. Try to deliver receipt at least once, even if TTL expired: > http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00582 > 6. Delivery receipt may be sent before AS request delivery: > http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00597 > > For some of them new GitHub issues was created. Also here is one issue > without sending messages to the Web Push mailing list: > > Prefer: wait=0 for Receiving Push Message Receipts: > https://github.com/webpush-wg/webpush-protocol/issues/113 > > Best regards, > Idel Pivnitskiy > -- > Twitter: @idelpivnitskiy > GitHub: @idelpivnitskiy > > On Tue, Jun 7, 2016 at 7:03 AM, Daniel Bevenius > wrote: > >> > Daniel, could you review the current draft too, please? My suggestion >> will be to read editor's copy [2], instead of IETF page [3], because they >> merged a few changes this week [4]. >> I'll try to catch up on the spec this week (hard to find the spare time >> to do this at the moment). >> >> >> >> On 3 June 2016 at 12:51, Idel Pivnitskiy >> wrote: >> >>> Hi all, >>> >>> Looks like Web Push WG ready for the WGLC [1]. They gathers feedback as >>> soon as possible. >>> >>> I've initiated a few thread: >>> >>> 1. >>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00549 >>> 2. >>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00559 >>> >>> Also I want to ask them some questions about not clear parts of the >>> draft for me. >>> >>> Daniel, could you review the current draft too, please? My suggestion >>> will be to read editor's copy [2], instead of IETF page [3], because they >>> merged a few changes this week [4]. >>> >>> [1] >>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00524 >>> [2] https://webpush-wg.github.io/webpush-protocol/ >>> [3] https://tools.ietf.org/html/draft-ietf-webpush-protocol-05 >>> [4] https://github.com/webpush-wg/webpush-protocol/commits/master >>> >>> Best regards, >>> Idel Pivnitskiy >>> -- >>> Twitter: @idelpivnitskiy >>> GitHub: @idelpivnitskiy >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160609/e438177d/attachment.html From edewit at redhat.com Thu Jun 9 02:19:43 2016 From: edewit at redhat.com (Erik Jan de Wit) Date: Thu, 9 Jun 2016 08:19:43 +0200 Subject: [aerogear-dev] Android Push: Firebase Cloud Messaging In-Reply-To: References: Message-ID: > > > I am now actually wondering, where to put the google-service.json file on > Cordova (no I am not updating our plugin), but I have no clue what is > matching the native 'app' folder in Crodova land, is it WWW foldeR? > > https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova > > hrm... > > There is no native folder on a cordova project, but we can put something in the plugin.xml that will install / copy it into the native project: https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 Don't know what the content is of this file seems the https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo doesn't have this google-services.json -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160609/b74da6b9/attachment.html From matzew at apache.org Thu Jun 9 03:08:49 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Thu, 9 Jun 2016 09:08:49 +0200 Subject: [aerogear-dev] Android Push: Firebase Cloud Messaging In-Reply-To: References: Message-ID: On Thu, Jun 9, 2016 at 8:19 AM, Erik Jan de Wit wrote: > >> I am now actually wondering, where to put the google-service.json file on >> Cordova (no I am not updating our plugin), but I have no clue what is >> matching the native 'app' folder in Crodova land, is it WWW foldeR? >> >> >> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >> >> hrm... >> >> > > There is no native folder on a cordova project, but we can put something > in the plugin.xml that will install / copy it into the native project: > > > > > https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 > ah! that could work > > Don't know what the content is of this file seems the > https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo > doesn't have this google-services.json > yes, that's correct. It's up to the developer to actually put the file into that "/app" folder. Would this work on Cordova too ? > > > -- > Cheers, > Erik Jan > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160609/b9cdc53e/attachment-0001.html From edewit at redhat.com Thu Jun 9 03:39:46 2016 From: edewit at redhat.com (Erik Jan de Wit) Date: Thu, 9 Jun 2016 09:39:46 +0200 Subject: [aerogear-dev] Android Push: Firebase Cloud Messaging In-Reply-To: References: Message-ID: > > >> Don't know what the content is of this file seems the >> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >> doesn't have this google-services.json >> > > yes, that's correct. It's up to the developer to actually put the file > into that "/app" folder. > > Would this work on Cordova too ? > > So the content would be app specific? Could you give an example? We can put some dynamic stuff into the plugin, but it's kinda limited. I hope we can do without having cordova devs worry about the platform folder. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160609/c679a4ee/attachment.html From matzew at apache.org Thu Jun 9 03:47:35 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Thu, 9 Jun 2016 09:47:35 +0200 Subject: [aerogear-dev] Android Push: Firebase Cloud Messaging In-Reply-To: References: Message-ID: On Thu, Jun 9, 2016 at 9:39 AM, Erik Jan de Wit wrote: > >>> Don't know what the content is of this file seems the >>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>> doesn't have this google-services.json >>> >> >> yes, that's correct. It's up to the developer to actually put the file >> into that "/app" folder. >> >> Would this work on Cordova too ? >> >> > So the content would be app specific? Could you give an example? > yes, that's right. You download that form the Firebase console, specific for your Firebase project. It contains severval things, including the project number and also the server-side key (the one that we also enter in UPS) > We can put some dynamic stuff into the plugin, but it's kinda limited. > Could we do some 'magic' to make the plugin check that if the target is Android, it requires the JSON file 'somewhere'? If present, the plugin would put the file into the app folder, if possible :) > I hope we can do without having cordova devs worry about the platform > folder. > I can see that fear, I am not really sure, all I know is that for native this needs to go into the app folder. I am not sure if there is a chance to launche FCM w/o that file and the google plugin. > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160609/ffc5b88e/attachment.html From supittma at redhat.com Thu Jun 9 08:04:32 2016 From: supittma at redhat.com (Summers Pittman) Date: Thu, 9 Jun 2016 08:04:32 -0400 Subject: [aerogear-dev] Android Push: Firebase Cloud Messaging In-Reply-To: References: Message-ID: On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit wrote: > >> I am now actually wondering, where to put the google-service.json file on >> Cordova (no I am not updating our plugin), but I have no clue what is >> matching the native 'app' folder in Crodova land, is it WWW foldeR? >> >> >> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >> >> hrm... >> >> > > There is no native folder on a cordova project, but we can put something > in the plugin.xml that will install / copy it into the native project: > > > > > https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 > > Don't know what the content is of this file seems the > https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo > doesn't have this google-services.json > Correct. The documentation is being updated to cover the fact the developer needs to add the file. If the file is not present the developer gets a useful error message in his/her log when registration fails. If the file is present but incorrect (as say a stubbed file) then then developer gets a less useful message. We chose to leave it out because it is more clear what the problem is, and a quick google search for "google-services.json" takes the user exactly where they need to go. > > > -- > Cheers, > Erik Jan > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160609/7396af26/attachment.html From matzew at apache.org Thu Jun 9 08:24:33 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Thu, 9 Jun 2016 14:24:33 +0200 Subject: [aerogear-dev] Android staging repo In-Reply-To: References: Message-ID: I clicked the button - should be on maven central by tomorrow On Wed, Jun 8, 2016 at 8:45 PM, Summers Pittman wrote: > Everything seems to be working, I've tested them with a few cookbook demos > and the jboss-mobile push helloworld > > On Wed, Jun 8, 2016 at 12:00 PM, Matthias Wessendorf > wrote: > >> Hi, >> >> for FCM work we are staging 4.0.0 of the -push library >> besides that, there is 3.0.1 of store (AGDROID-429) and -authz (update of >> used -store) >> >> All three packages are located here: >> >> https://repository.jboss.org/nexus/content/repositories/jboss_releases_staging_profile-8355/ >> >> Please test them, so that we can release them next week. >> >> Greetings, >> Matthias >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160609/ecbd4001/attachment-0001.html From edewit at redhat.com Thu Jun 9 10:55:45 2016 From: edewit at redhat.com (Erik Jan de Wit) Date: Thu, 9 Jun 2016 16:55:45 +0200 Subject: [aerogear-dev] Android Push: Firebase Cloud Messaging In-Reply-To: References: Message-ID: So that means my original idea for the file to get copied by the plugin as a static resource is out of the question. The other way to do this is by using a plugin hook [1], before the plugin gets installed we can fetch the google-services.json file from the www folder and put it in the android platform folder and if it's not there say that they need to create / generate it before they can use the plugin. WDYT? [1] https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/#plugin-hooks-pluginxml On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman wrote: > > > On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit wrote: > >> >>> I am now actually wondering, where to put the google-service.json file >>> on Cordova (no I am not updating our plugin), but I have no clue what is >>> matching the native 'app' folder in Crodova land, is it WWW foldeR? >>> >>> >>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>> >>> hrm... >>> >>> >> >> There is no native folder on a cordova project, but we can put something >> in the plugin.xml that will install / copy it into the native project: >> >> >> >> >> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >> >> Don't know what the content is of this file seems the >> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >> doesn't have this google-services.json >> > > Correct. The documentation is being updated to cover the fact the > developer needs to add the file. If the file is not present the developer > gets a useful error message in his/her log when registration fails. If the > file is present but incorrect (as say a stubbed file) then then developer > gets a less useful message. We chose to leave it out because it is more > clear what the problem is, and a quick google search for > "google-services.json" takes the user exactly where they need to go. > > >> >> >> -- >> Cheers, >> Erik Jan >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160609/b6d28fff/attachment.html From jusanche at redhat.com Thu Jun 9 11:00:23 2016 From: jusanche at redhat.com (Julio Cesar Sanchez Hernandez) Date: Thu, 9 Jun 2016 17:00:23 +0200 Subject: [aerogear-dev] Android Push: Firebase Cloud Messaging In-Reply-To: References: Message-ID: I don't think that file is really needed, the phonegap-plugin-push ( https://github.com/phonegap/phonegap-plugin-push) doesn't use it and push notifications work without it. The Sender ID is set on plugin install passing it as a variable. Not sure what other values are included on the google-services.json I forked the phonegap plugin to add FCM support and it works too without the google-services.json file too. On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman wrote: > > > On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit wrote: > >> >>> I am now actually wondering, where to put the google-service.json file >>> on Cordova (no I am not updating our plugin), but I have no clue what is >>> matching the native 'app' folder in Crodova land, is it WWW foldeR? >>> >>> >>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>> >>> hrm... >>> >>> >> >> There is no native folder on a cordova project, but we can put something >> in the plugin.xml that will install / copy it into the native project: >> >> >> >> >> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >> >> Don't know what the content is of this file seems the >> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >> doesn't have this google-services.json >> > > Correct. The documentation is being updated to cover the fact the > developer needs to add the file. If the file is not present the developer > gets a useful error message in his/her log when registration fails. If the > file is present but incorrect (as say a stubbed file) then then developer > gets a less useful message. We chose to leave it out because it is more > clear what the problem is, and a quick google search for > "google-services.json" takes the user exactly where they need to go. > > >> >> >> -- >> Cheers, >> Erik Jan >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160609/96a4b53e/attachment.html From supittma at redhat.com Thu Jun 9 12:38:24 2016 From: supittma at redhat.com (Summers Pittman) Date: Thu, 9 Jun 2016 12:38:24 -0400 Subject: [aerogear-dev] Android Push: Firebase Cloud Messaging In-Reply-To: References: Message-ID: On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < jusanche at redhat.com> wrote: > I don't think that file is really needed, the phonegap-plugin-push ( > https://github.com/phonegap/phonegap-plugin-push) doesn't use it and push > notifications work without it. The Sender ID is set on plugin install > passing it as a variable. Not sure what other values are included on the > google-services.json > This plugin isn't using Firebase. We didn't need google-services.json for GCM3. > > I forked the phonegap plugin to add FCM support and it works too without > the google-services.json file too. > > > Sauce? Firebase requires two variables, the application id and the sender id. Fortunately the senderId is embedded in the applicationId. I've made a PoC version of AGDroid-push here : https://github.com/secondsun/aerogear-android-push/tree/no_google_services and a Poc Puhs app here : https://github.com/secondsun/unified-push-helloworld/tree/no_google_services As you can see I've just overloaded the SenderId. > > On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman > wrote: > >> >> >> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit >> wrote: >> >>> >>>> I am now actually wondering, where to put the google-service.json file >>>> on Cordova (no I am not updating our plugin), but I have no clue what is >>>> matching the native 'app' folder in Crodova land, is it WWW foldeR? >>>> >>>> >>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>> >>>> hrm... >>>> >>>> >>> >>> There is no native folder on a cordova project, but we can put something >>> in the plugin.xml that will install / copy it into the native project: >>> >>> >>> >>> >>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>> >>> Don't know what the content is of this file seems the >>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>> doesn't have this google-services.json >>> >> >> Correct. The documentation is being updated to cover the fact the >> developer needs to add the file. If the file is not present the developer >> gets a useful error message in his/her log when registration fails. If the >> file is present but incorrect (as say a stubbed file) then then developer >> gets a less useful message. We chose to leave it out because it is more >> clear what the problem is, and a quick google search for >> "google-services.json" takes the user exactly where they need to go. >> >> >>> >>> >>> -- >>> Cheers, >>> Erik Jan >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160609/e6e8529b/attachment-0001.html From jusanche at redhat.com Thu Jun 9 18:02:57 2016 From: jusanche at redhat.com (Julio Cesar Sanchez Hernandez) Date: Fri, 10 Jun 2016 00:02:57 +0200 Subject: [aerogear-dev] Android Push: Firebase Cloud Messaging In-Reply-To: References: Message-ID: My fork is here https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM I didn't add the .json and I'm receiving push notifications Last time I read the GCM docs they were already talking about that .json (I think it was on February or March), it's not a new thing on FCM. On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman wrote: > > > On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < > jusanche at redhat.com> wrote: > >> I don't think that file is really needed, the phonegap-plugin-push ( >> https://github.com/phonegap/phonegap-plugin-push) doesn't use it and >> push notifications work without it. The Sender ID is set on plugin install >> passing it as a variable. Not sure what other values are included on the >> google-services.json >> > > This plugin isn't using Firebase. We didn't need google-services.json for > GCM3. > > >> >> I forked the phonegap plugin to add FCM support and it works too without >> the google-services.json file too. >> >> >> Sauce? > > Firebase requires two variables, the application id and the sender id. > Fortunately the senderId is embedded in the applicationId. > > I've made a PoC version of AGDroid-push here : > https://github.com/secondsun/aerogear-android-push/tree/no_google_services > and a Poc Puhs app here : > https://github.com/secondsun/unified-push-helloworld/tree/no_google_services > > > As you can see I've just overloaded the SenderId. > > >> >> On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman >> wrote: >> >>> >>> >>> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit >>> wrote: >>> >>>> >>>>> I am now actually wondering, where to put the google-service.json file >>>>> on Cordova (no I am not updating our plugin), but I have no clue what is >>>>> matching the native 'app' folder in Crodova land, is it WWW foldeR? >>>>> >>>>> >>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>> >>>>> hrm... >>>>> >>>>> >>>> >>>> There is no native folder on a cordova project, but we can put >>>> something in the plugin.xml that will install / copy it into the native >>>> project: >>>> >>>> >>>> >>>> >>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>>> >>>> Don't know what the content is of this file seems the >>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>>> doesn't have this google-services.json >>>> >>> >>> Correct. The documentation is being updated to cover the fact the >>> developer needs to add the file. If the file is not present the developer >>> gets a useful error message in his/her log when registration fails. If the >>> file is present but incorrect (as say a stubbed file) then then developer >>> gets a less useful message. We chose to leave it out because it is more >>> clear what the problem is, and a quick google search for >>> "google-services.json" takes the user exactly where they need to go. >>> >>> >>>> >>>> >>>> -- >>>> Cheers, >>>> Erik Jan >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160610/a80d4b81/attachment.html From matzew at apache.org Fri Jun 10 04:58:04 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Fri, 10 Jun 2016 10:58:04 +0200 Subject: [aerogear-dev] Cordova-FCM issue (was: Re: Android Push: Firebase Cloud Messaging) Message-ID: Hi, I think I am running into the issue, that I am not having the google-service.json file present, in my app. My try to update our plugin is here: https://github.com/matzew/aerogear-pushplugin-cordova/commit/0f10a771a2d6a7eda64354583ff64abcb828d844 And I am using this app: https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova My "www/push-config.json" file content is here: https://gist.github.com/matzew/aebceece86f8ac5159ec7677a2fb347c After updating that, I did follow the instructions, on the readme, in the "cordova" folder of the helloworld: 1) cordova platform add android 2) cordova plugin add https://github.com/matzew/aerogear-pushplugin-cordova\#fcm 3) cordova run android But, when the app launches, it crashes 06-10 10:52:52.039 4894 4894 E AndroidRuntime: java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.IllegalStateException: Incorrect provider authority in manifest. Most likely due to a missing applicationId variable in application's build.gradle. 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:5156) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.app.ActivityThread.-wrap1(ActivityThread.java) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Incorrect provider authority in manifest. Most likely due to a missing applicationId variable in application's build.gradle. 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:5153) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity 06-10 10:52:52.129 23947 24146 I Icing : Indexing B96E309EB2416B4DBFAE0D6623436A2C7956B584 from com.google.android.gms 06-10 10:52:52.222 4996 6509 I OpenGLRenderer: Initialized EGL, version 1.4 06-10 10:52:52.231 23947 24146 I Icing : Indexing done B96E309EB2416B4DBFAE0D6623436A2C7956B584 06-10 10:52:52.236 23947 24146 I Icing : Indexing 209BD54564CA1E38C7343A8DD5819E6471F3968C from com.google.android.googlequicksearchbox 06-10 10:52:52.269 4996 5005 I art : Background partial concurrent mark sweep GC freed 22954(1750KB) AllocSpace objects, 0(0B) LOS objects, 26% free, 43MB/59MB, paused 1.180ms total 114.805ms 06-10 10:52:52.321 23947 24058 I Icing : Indexing done 209BD54564CA1E38C7343A8DD5819E6471F3968C 06-10 10:52:52.661 4996 5039 W ActivityManager: Activity pause timeout for ActivityRecord{16012ae u0 org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity t1391 f} On Fri, Jun 10, 2016 at 12:02 AM, Julio Cesar Sanchez Hernandez < jusanche at redhat.com> wrote: > My fork is here > https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM > > I didn't add the .json and I'm receiving push notifications > > Last time I read the GCM docs they were already talking about that .json > (I think it was on February or March), it's not a new thing on FCM. > > On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman > wrote: > >> >> >> On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < >> jusanche at redhat.com> wrote: >> >>> I don't think that file is really needed, the phonegap-plugin-push ( >>> https://github.com/phonegap/phonegap-plugin-push) doesn't use it and >>> push notifications work without it. The Sender ID is set on plugin install >>> passing it as a variable. Not sure what other values are included on the >>> google-services.json >>> >> >> This plugin isn't using Firebase. We didn't need google-services.json >> for GCM3. >> >> >>> >>> I forked the phonegap plugin to add FCM support and it works too without >>> the google-services.json file too. >>> >>> >>> Sauce? >> >> Firebase requires two variables, the application id and the sender id. >> Fortunately the senderId is embedded in the applicationId. >> >> I've made a PoC version of AGDroid-push here : >> https://github.com/secondsun/aerogear-android-push/tree/no_google_services >> and a Poc Puhs app here : >> https://github.com/secondsun/unified-push-helloworld/tree/no_google_services >> >> >> As you can see I've just overloaded the SenderId. >> >> >>> >>> On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman >>> wrote: >>> >>>> >>>> >>>> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit >>>> wrote: >>>> >>>>> >>>>>> I am now actually wondering, where to put the google-service.json >>>>>> file on Cordova (no I am not updating our plugin), but I have no clue what >>>>>> is matching the native 'app' folder in Crodova land, is it WWW foldeR? >>>>>> >>>>>> >>>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>>> >>>>>> hrm... >>>>>> >>>>>> >>>>> >>>>> There is no native folder on a cordova project, but we can put >>>>> something in the plugin.xml that will install / copy it into the native >>>>> project: >>>>> >>>>> >>>>> >>>>> >>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>>>> >>>>> Don't know what the content is of this file seems the >>>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>>>> doesn't have this google-services.json >>>>> >>>> >>>> Correct. The documentation is being updated to cover the fact the >>>> developer needs to add the file. If the file is not present the developer >>>> gets a useful error message in his/her log when registration fails. If the >>>> file is present but incorrect (as say a stubbed file) then then developer >>>> gets a less useful message. We chose to leave it out because it is more >>>> clear what the problem is, and a quick google search for >>>> "google-services.json" takes the user exactly where they need to go. >>>> >>>> >>>>> >>>>> >>>>> -- >>>>> Cheers, >>>>> Erik Jan >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160610/83e449d1/attachment-0001.html From matzew at apache.org Fri Jun 10 05:00:01 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Fri, 10 Jun 2016 11:00:01 +0200 Subject: [aerogear-dev] Cordova-FCM issue (was: Re: Android Push: Firebase Cloud Messaging) In-Reply-To: References: Message-ID: Let me try Erik Jan's suggestion w/ the hook :) https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/#plugin-hooks-pluginxml On Fri, Jun 10, 2016 at 10:58 AM, Matthias Wessendorf wrote: > Hi, > > I think I am running into the issue, that I am not having the > google-service.json file present, in my app. > > > My try to update our plugin is here: > > https://github.com/matzew/aerogear-pushplugin-cordova/commit/0f10a771a2d6a7eda64354583ff64abcb828d844 > > > And I am using this app: > https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova > > My "www/push-config.json" file content is here: > https://gist.github.com/matzew/aebceece86f8ac5159ec7677a2fb347c > > After updating that, I did follow the instructions, on the readme, in the > "cordova" folder of the helloworld: > > 1) cordova platform add android > 2) cordova plugin add > https://github.com/matzew/aerogear-pushplugin-cordova\#fcm > 3) cordova run android > > > But, when the app launches, it crashes > > > > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: > java.lang.RuntimeException: Unable to get provider > com.google.firebase.provider.FirebaseInitProvider: > java.lang.IllegalStateException: Incorrect provider authority in manifest. > Most likely due to a missing applicationId variable in application's > build.gradle. > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.installProvider(ActivityThread.java:5156) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.-wrap1(ActivityThread.java) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.os.Handler.dispatchMessage(Handler.java:102) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.os.Looper.loop(Looper.java:148) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.main(ActivityThread.java:5417) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > java.lang.reflect.Method.invoke(Native Method) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: > java.lang.IllegalStateException: Incorrect provider authority in manifest. > Most likely due to a missing applicationId variable in application's > build.gradle. > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.installProvider(ActivityThread.java:5153) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more > 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing > activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity > 06-10 10:52:52.129 23947 24146 I Icing : Indexing > B96E309EB2416B4DBFAE0D6623436A2C7956B584 from com.google.android.gms > 06-10 10:52:52.222 4996 6509 I OpenGLRenderer: Initialized EGL, version > 1.4 > 06-10 10:52:52.231 23947 24146 I Icing : Indexing done > B96E309EB2416B4DBFAE0D6623436A2C7956B584 > 06-10 10:52:52.236 23947 24146 I Icing : Indexing > 209BD54564CA1E38C7343A8DD5819E6471F3968C from > com.google.android.googlequicksearchbox > 06-10 10:52:52.269 4996 5005 I art : Background partial concurrent > mark sweep GC freed 22954(1750KB) AllocSpace objects, 0(0B) LOS objects, > 26% free, 43MB/59MB, paused 1.180ms total 114.805ms > 06-10 10:52:52.321 23947 24058 I Icing : Indexing done > 209BD54564CA1E38C7343A8DD5819E6471F3968C > 06-10 10:52:52.661 4996 5039 W ActivityManager: Activity pause timeout > for ActivityRecord{16012ae u0 > org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity t1391 f} > > On Fri, Jun 10, 2016 at 12:02 AM, Julio Cesar Sanchez Hernandez < > jusanche at redhat.com> wrote: > >> My fork is here >> https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM >> >> I didn't add the .json and I'm receiving push notifications >> >> Last time I read the GCM docs they were already talking about that .json >> (I think it was on February or March), it's not a new thing on FCM. >> >> On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman >> wrote: >> >>> >>> >>> On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < >>> jusanche at redhat.com> wrote: >>> >>>> I don't think that file is really needed, the phonegap-plugin-push ( >>>> https://github.com/phonegap/phonegap-plugin-push) doesn't use it and >>>> push notifications work without it. The Sender ID is set on plugin install >>>> passing it as a variable. Not sure what other values are included on the >>>> google-services.json >>>> >>> >>> This plugin isn't using Firebase. We didn't need google-services.json >>> for GCM3. >>> >>> >>>> >>>> I forked the phonegap plugin to add FCM support and it works too >>>> without the google-services.json file too. >>>> >>>> >>>> Sauce? >>> >>> Firebase requires two variables, the application id and the sender id. >>> Fortunately the senderId is embedded in the applicationId. >>> >>> I've made a PoC version of AGDroid-push here : >>> https://github.com/secondsun/aerogear-android-push/tree/no_google_services >>> and a Poc Puhs app here : >>> https://github.com/secondsun/unified-push-helloworld/tree/no_google_services >>> >>> >>> As you can see I've just overloaded the SenderId. >>> >>> >>>> >>>> On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman >>>> wrote: >>>> >>>>> >>>>> >>>>> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit >>>>> wrote: >>>>> >>>>>> >>>>>>> I am now actually wondering, where to put the google-service.json >>>>>>> file on Cordova (no I am not updating our plugin), but I have no clue what >>>>>>> is matching the native 'app' folder in Crodova land, is it WWW foldeR? >>>>>>> >>>>>>> >>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>>>> >>>>>>> hrm... >>>>>>> >>>>>>> >>>>>> >>>>>> There is no native folder on a cordova project, but we can put >>>>>> something in the plugin.xml that will install / copy it into the native >>>>>> project: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>>>>> >>>>>> Don't know what the content is of this file seems the >>>>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>>>>> doesn't have this google-services.json >>>>>> >>>>> >>>>> Correct. The documentation is being updated to cover the fact the >>>>> developer needs to add the file. If the file is not present the developer >>>>> gets a useful error message in his/her log when registration fails. If the >>>>> file is present but incorrect (as say a stubbed file) then then developer >>>>> gets a less useful message. We chose to leave it out because it is more >>>>> clear what the problem is, and a quick google search for >>>>> "google-services.json" takes the user exactly where they need to go. >>>>> >>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Cheers, >>>>>> Erik Jan >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160610/19a753bd/attachment-0001.html From matzew at apache.org Fri Jun 10 05:08:50 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Fri, 10 Jun 2016 11:08:50 +0200 Subject: [aerogear-dev] Cordova-FCM issue (was: Re: Android Push: Firebase Cloud Messaging) In-Reply-To: References: Message-ID: well really doing something like this: .... Failed to install 'aerogear-cordova-push':Error: ENOENT: no such file or directory, stat '/Users/matzew/Work/JBoss/UPS.next/FCM/aerogear-cordova-push/www/google-services.json' Any ideas ? On Fri, Jun 10, 2016 at 11:00 AM, Matthias Wessendorf wrote: > Let me try Erik Jan's suggestion w/ the hook :) > > > https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/#plugin-hooks-pluginxml > > On Fri, Jun 10, 2016 at 10:58 AM, Matthias Wessendorf > wrote: > >> Hi, >> >> I think I am running into the issue, that I am not having the >> google-service.json file present, in my app. >> >> >> My try to update our plugin is here: >> >> https://github.com/matzew/aerogear-pushplugin-cordova/commit/0f10a771a2d6a7eda64354583ff64abcb828d844 >> >> >> And I am using this app: >> >> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >> >> My "www/push-config.json" file content is here: >> https://gist.github.com/matzew/aebceece86f8ac5159ec7677a2fb347c >> >> After updating that, I did follow the instructions, on the readme, in the >> "cordova" folder of the helloworld: >> >> 1) cordova platform add android >> 2) cordova plugin add >> https://github.com/matzew/aerogear-pushplugin-cordova\#fcm >> 3) cordova run android >> >> >> But, when the app launches, it crashes >> >> >> >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: >> java.lang.RuntimeException: Unable to get provider >> com.google.firebase.provider.FirebaseInitProvider: >> java.lang.IllegalStateException: Incorrect provider authority in manifest. >> Most likely due to a missing applicationId variable in application's >> build.gradle. >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.installProvider(ActivityThread.java:5156) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.-wrap1(ActivityThread.java) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.os.Handler.dispatchMessage(Handler.java:102) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.os.Looper.loop(Looper.java:148) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.main(ActivityThread.java:5417) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> java.lang.reflect.Method.invoke(Native Method) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: >> java.lang.IllegalStateException: Incorrect provider authority in manifest. >> Most likely due to a missing applicationId variable in application's >> build.gradle. >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.installProvider(ActivityThread.java:5153) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more >> 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing >> activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity >> 06-10 10:52:52.129 23947 24146 I Icing : Indexing >> B96E309EB2416B4DBFAE0D6623436A2C7956B584 from com.google.android.gms >> 06-10 10:52:52.222 4996 6509 I OpenGLRenderer: Initialized EGL, version >> 1.4 >> 06-10 10:52:52.231 23947 24146 I Icing : Indexing done >> B96E309EB2416B4DBFAE0D6623436A2C7956B584 >> 06-10 10:52:52.236 23947 24146 I Icing : Indexing >> 209BD54564CA1E38C7343A8DD5819E6471F3968C from >> com.google.android.googlequicksearchbox >> 06-10 10:52:52.269 4996 5005 I art : Background partial concurrent >> mark sweep GC freed 22954(1750KB) AllocSpace objects, 0(0B) LOS objects, >> 26% free, 43MB/59MB, paused 1.180ms total 114.805ms >> 06-10 10:52:52.321 23947 24058 I Icing : Indexing done >> 209BD54564CA1E38C7343A8DD5819E6471F3968C >> 06-10 10:52:52.661 4996 5039 W ActivityManager: Activity pause timeout >> for ActivityRecord{16012ae u0 >> org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity t1391 f} >> >> On Fri, Jun 10, 2016 at 12:02 AM, Julio Cesar Sanchez Hernandez < >> jusanche at redhat.com> wrote: >> >>> My fork is here >>> https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM >>> >>> I didn't add the .json and I'm receiving push notifications >>> >>> Last time I read the GCM docs they were already talking about that .json >>> (I think it was on February or March), it's not a new thing on FCM. >>> >>> On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman >>> wrote: >>> >>>> >>>> >>>> On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < >>>> jusanche at redhat.com> wrote: >>>> >>>>> I don't think that file is really needed, the phonegap-plugin-push ( >>>>> https://github.com/phonegap/phonegap-plugin-push) doesn't use it and >>>>> push notifications work without it. The Sender ID is set on plugin install >>>>> passing it as a variable. Not sure what other values are included on the >>>>> google-services.json >>>>> >>>> >>>> This plugin isn't using Firebase. We didn't need google-services.json >>>> for GCM3. >>>> >>>> >>>>> >>>>> I forked the phonegap plugin to add FCM support and it works too >>>>> without the google-services.json file too. >>>>> >>>>> >>>>> Sauce? >>>> >>>> Firebase requires two variables, the application id and the sender id. >>>> Fortunately the senderId is embedded in the applicationId. >>>> >>>> I've made a PoC version of AGDroid-push here : >>>> https://github.com/secondsun/aerogear-android-push/tree/no_google_services >>>> and a Poc Puhs app here : >>>> https://github.com/secondsun/unified-push-helloworld/tree/no_google_services >>>> >>>> >>>> As you can see I've just overloaded the SenderId. >>>> >>>> >>>>> >>>>> On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman >>>>> wrote: >>>>> >>>>>> >>>>>> >>>>>> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit >>>>>> wrote: >>>>>> >>>>>>> >>>>>>>> I am now actually wondering, where to put the google-service.json >>>>>>>> file on Cordova (no I am not updating our plugin), but I have no clue what >>>>>>>> is matching the native 'app' folder in Crodova land, is it WWW foldeR? >>>>>>>> >>>>>>>> >>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>>>>> >>>>>>>> hrm... >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> There is no native folder on a cordova project, but we can put >>>>>>> something in the plugin.xml that will install / copy it into the native >>>>>>> project: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>>>>>> >>>>>>> Don't know what the content is of this file seems the >>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>>>>>> doesn't have this google-services.json >>>>>>> >>>>>> >>>>>> Correct. The documentation is being updated to cover the fact the >>>>>> developer needs to add the file. If the file is not present the developer >>>>>> gets a useful error message in his/her log when registration fails. If the >>>>>> file is present but incorrect (as say a stubbed file) then then developer >>>>>> gets a less useful message. We chose to leave it out because it is more >>>>>> clear what the problem is, and a quick google search for >>>>>> "google-services.json" takes the user exactly where they need to go. >>>>>> >>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Cheers, >>>>>>> Erik Jan >>>>>>> >>>>>>> _______________________________________________ >>>>>>> aerogear-dev mailing list >>>>>>> aerogear-dev at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > 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-dev/attachments/20160610/fc8e14a6/attachment-0001.html From jusanche at redhat.com Fri Jun 10 05:28:40 2016 From: jusanche at redhat.com (Julio Cesar Sanchez Hernandez) Date: Fri, 10 Jun 2016 11:28:40 +0200 Subject: [aerogear-dev] Cordova-FCM issue (was: Re: Android Push: Firebase Cloud Messaging) In-Reply-To: References: Message-ID: The hook should be a script that copies the .json and copy.js should copy the .json from the www to the right place can be a .sh or .bat instead of a .js, but I think .js is better as it works on any OS On Fri, Jun 10, 2016 at 11:08 AM, Matthias Wessendorf wrote: > well really > > doing something like this: > > > .... > > Failed to install 'aerogear-cordova-push':Error: ENOENT: no such file or > directory, stat > '/Users/matzew/Work/JBoss/UPS.next/FCM/aerogear-cordova-push/www/google-services.json' > > Any ideas ? > > > On Fri, Jun 10, 2016 at 11:00 AM, Matthias Wessendorf > wrote: > >> Let me try Erik Jan's suggestion w/ the hook :) >> >> >> https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/#plugin-hooks-pluginxml >> >> On Fri, Jun 10, 2016 at 10:58 AM, Matthias Wessendorf >> wrote: >> >>> Hi, >>> >>> I think I am running into the issue, that I am not having the >>> google-service.json file present, in my app. >>> >>> >>> My try to update our plugin is here: >>> >>> https://github.com/matzew/aerogear-pushplugin-cordova/commit/0f10a771a2d6a7eda64354583ff64abcb828d844 >>> >>> >>> And I am using this app: >>> >>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>> >>> My "www/push-config.json" file content is here: >>> https://gist.github.com/matzew/aebceece86f8ac5159ec7677a2fb347c >>> >>> After updating that, I did follow the instructions, on the readme, in >>> the "cordova" folder of the helloworld: >>> >>> 1) cordova platform add android >>> 2) cordova plugin add >>> https://github.com/matzew/aerogear-pushplugin-cordova\#fcm >>> 3) cordova run android >>> >>> >>> But, when the app launches, it crashes >>> >>> >>> >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: >>> java.lang.RuntimeException: Unable to get provider >>> com.google.firebase.provider.FirebaseInitProvider: >>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>> Most likely due to a missing applicationId variable in application's >>> build.gradle. >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.installProvider(ActivityThread.java:5156) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.-wrap1(ActivityThread.java) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.os.Handler.dispatchMessage(Handler.java:102) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.os.Looper.loop(Looper.java:148) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.main(ActivityThread.java:5417) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> java.lang.reflect.Method.invoke(Native Method) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: >>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>> Most likely due to a missing applicationId variable in application's >>> build.gradle. >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.installProvider(ActivityThread.java:5153) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more >>> 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing >>> activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity >>> 06-10 10:52:52.129 23947 24146 I Icing : Indexing >>> B96E309EB2416B4DBFAE0D6623436A2C7956B584 from com.google.android.gms >>> 06-10 10:52:52.222 4996 6509 I OpenGLRenderer: Initialized EGL, >>> version 1.4 >>> 06-10 10:52:52.231 23947 24146 I Icing : Indexing done >>> B96E309EB2416B4DBFAE0D6623436A2C7956B584 >>> 06-10 10:52:52.236 23947 24146 I Icing : Indexing >>> 209BD54564CA1E38C7343A8DD5819E6471F3968C from >>> com.google.android.googlequicksearchbox >>> 06-10 10:52:52.269 4996 5005 I art : Background partial concurrent >>> mark sweep GC freed 22954(1750KB) AllocSpace objects, 0(0B) LOS objects, >>> 26% free, 43MB/59MB, paused 1.180ms total 114.805ms >>> 06-10 10:52:52.321 23947 24058 I Icing : Indexing done >>> 209BD54564CA1E38C7343A8DD5819E6471F3968C >>> 06-10 10:52:52.661 4996 5039 W ActivityManager: Activity pause timeout >>> for ActivityRecord{16012ae u0 >>> org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity t1391 f} >>> >>> On Fri, Jun 10, 2016 at 12:02 AM, Julio Cesar Sanchez Hernandez < >>> jusanche at redhat.com> wrote: >>> >>>> My fork is here >>>> https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM >>>> >>>> I didn't add the .json and I'm receiving push notifications >>>> >>>> Last time I read the GCM docs they were already talking about that >>>> .json (I think it was on February or March), it's not a new thing on FCM. >>>> >>>> On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman >>>> wrote: >>>> >>>>> >>>>> >>>>> On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < >>>>> jusanche at redhat.com> wrote: >>>>> >>>>>> I don't think that file is really needed, the phonegap-plugin-push ( >>>>>> https://github.com/phonegap/phonegap-plugin-push) doesn't use it and >>>>>> push notifications work without it. The Sender ID is set on plugin install >>>>>> passing it as a variable. Not sure what other values are included on the >>>>>> google-services.json >>>>>> >>>>> >>>>> This plugin isn't using Firebase. We didn't need google-services.json >>>>> for GCM3. >>>>> >>>>> >>>>>> >>>>>> I forked the phonegap plugin to add FCM support and it works too >>>>>> without the google-services.json file too. >>>>>> >>>>>> >>>>>> Sauce? >>>>> >>>>> Firebase requires two variables, the application id and the sender >>>>> id. Fortunately the senderId is embedded in the applicationId. >>>>> >>>>> I've made a PoC version of AGDroid-push here : >>>>> https://github.com/secondsun/aerogear-android-push/tree/no_google_services >>>>> and a Poc Puhs app here : >>>>> https://github.com/secondsun/unified-push-helloworld/tree/no_google_services >>>>> >>>>> >>>>> As you can see I've just overloaded the SenderId. >>>>> >>>>> >>>>>> >>>>>> On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman >>>>>> wrote: >>>>>> >>>>>>> >>>>>>> >>>>>>> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit >>>>>>> wrote: >>>>>>> >>>>>>>> >>>>>>>>> I am now actually wondering, where to put the google-service.json >>>>>>>>> file on Cordova (no I am not updating our plugin), but I have no clue what >>>>>>>>> is matching the native 'app' folder in Crodova land, is it WWW foldeR? >>>>>>>>> >>>>>>>>> >>>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>>>>>> >>>>>>>>> hrm... >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> There is no native folder on a cordova project, but we can put >>>>>>>> something in the plugin.xml that will install / copy it into the native >>>>>>>> project: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>>>>>>> >>>>>>>> Don't know what the content is of this file seems the >>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>>>>>>> doesn't have this google-services.json >>>>>>>> >>>>>>> >>>>>>> Correct. The documentation is being updated to cover the fact the >>>>>>> developer needs to add the file. If the file is not present the developer >>>>>>> gets a useful error message in his/her log when registration fails. If the >>>>>>> file is present but incorrect (as say a stubbed file) then then developer >>>>>>> gets a less useful message. We chose to leave it out because it is more >>>>>>> clear what the problem is, and a quick google search for >>>>>>> "google-services.json" takes the user exactly where they need to go. >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Cheers, >>>>>>>> Erik Jan >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> aerogear-dev mailing list >>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> aerogear-dev mailing list >>>>>>> aerogear-dev at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> >>> -- >>> Matthias Wessendorf >>> >>> blog: http://matthiaswessendorf.wordpress.com/ >>> twitter: http://twitter.com/mwessendorf >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160610/23b6af5c/attachment-0001.html From matzew at apache.org Fri Jun 10 06:29:56 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Fri, 10 Jun 2016 12:29:56 +0200 Subject: [aerogear-dev] Cordova-FCM issue (was: Re: Android Push: Firebase Cloud Messaging) In-Reply-To: References: Message-ID: Actually that error is due to missing 'applicationID' Should we have something like this, in our gradle file ? https://github.com/jcesarmobile/phonegap-plugin-push/blob/216ab837fd239c52b4a477f42ecff26a835aca74/push.gradle#L19 On Fri, Jun 10, 2016 at 11:28 AM, Julio Cesar Sanchez Hernandez < jusanche at redhat.com> wrote: > The hook should be a script that copies the .json > > > > and copy.js should copy the .json from the www to the right place > > can be a .sh or .bat instead of a .js, but I think .js is better as it > works on any OS > > On Fri, Jun 10, 2016 at 11:08 AM, Matthias Wessendorf > wrote: > >> well really >> >> doing something like this: >> >> >> .... >> >> Failed to install 'aerogear-cordova-push':Error: ENOENT: no such file or >> directory, stat >> '/Users/matzew/Work/JBoss/UPS.next/FCM/aerogear-cordova-push/www/google-services.json' >> >> Any ideas ? >> >> >> On Fri, Jun 10, 2016 at 11:00 AM, Matthias Wessendorf >> wrote: >> >>> Let me try Erik Jan's suggestion w/ the hook :) >>> >>> >>> https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/#plugin-hooks-pluginxml >>> >>> On Fri, Jun 10, 2016 at 10:58 AM, Matthias Wessendorf >> > wrote: >>> >>>> Hi, >>>> >>>> I think I am running into the issue, that I am not having the >>>> google-service.json file present, in my app. >>>> >>>> >>>> My try to update our plugin is here: >>>> >>>> https://github.com/matzew/aerogear-pushplugin-cordova/commit/0f10a771a2d6a7eda64354583ff64abcb828d844 >>>> >>>> >>>> And I am using this app: >>>> >>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>> >>>> My "www/push-config.json" file content is here: >>>> https://gist.github.com/matzew/aebceece86f8ac5159ec7677a2fb347c >>>> >>>> After updating that, I did follow the instructions, on the readme, in >>>> the "cordova" folder of the helloworld: >>>> >>>> 1) cordova platform add android >>>> 2) cordova plugin add >>>> https://github.com/matzew/aerogear-pushplugin-cordova\#fcm >>>> 3) cordova run android >>>> >>>> >>>> But, when the app launches, it crashes >>>> >>>> >>>> >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: >>>> java.lang.RuntimeException: Unable to get provider >>>> com.google.firebase.provider.FirebaseInitProvider: >>>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>>> Most likely due to a missing applicationId variable in application's >>>> build.gradle. >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.installProvider(ActivityThread.java:5156) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.-wrap1(ActivityThread.java) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.os.Handler.dispatchMessage(Handler.java:102) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.os.Looper.loop(Looper.java:148) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.main(ActivityThread.java:5417) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> java.lang.reflect.Method.invoke(Native Method) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: >>>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>>> Most likely due to a missing applicationId variable in application's >>>> build.gradle. >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.installProvider(ActivityThread.java:5153) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more >>>> 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing >>>> activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity >>>> 06-10 10:52:52.129 23947 24146 I Icing : Indexing >>>> B96E309EB2416B4DBFAE0D6623436A2C7956B584 from com.google.android.gms >>>> 06-10 10:52:52.222 4996 6509 I OpenGLRenderer: Initialized EGL, >>>> version 1.4 >>>> 06-10 10:52:52.231 23947 24146 I Icing : Indexing done >>>> B96E309EB2416B4DBFAE0D6623436A2C7956B584 >>>> 06-10 10:52:52.236 23947 24146 I Icing : Indexing >>>> 209BD54564CA1E38C7343A8DD5819E6471F3968C from >>>> com.google.android.googlequicksearchbox >>>> 06-10 10:52:52.269 4996 5005 I art : Background partial >>>> concurrent mark sweep GC freed 22954(1750KB) AllocSpace objects, 0(0B) LOS >>>> objects, 26% free, 43MB/59MB, paused 1.180ms total 114.805ms >>>> 06-10 10:52:52.321 23947 24058 I Icing : Indexing done >>>> 209BD54564CA1E38C7343A8DD5819E6471F3968C >>>> 06-10 10:52:52.661 4996 5039 W ActivityManager: Activity pause >>>> timeout for ActivityRecord{16012ae u0 >>>> org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity t1391 f} >>>> >>>> On Fri, Jun 10, 2016 at 12:02 AM, Julio Cesar Sanchez Hernandez < >>>> jusanche at redhat.com> wrote: >>>> >>>>> My fork is here >>>>> https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM >>>>> >>>>> I didn't add the .json and I'm receiving push notifications >>>>> >>>>> Last time I read the GCM docs they were already talking about that >>>>> .json (I think it was on February or March), it's not a new thing on FCM. >>>>> >>>>> On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman >>>>> wrote: >>>>> >>>>>> >>>>>> >>>>>> On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < >>>>>> jusanche at redhat.com> wrote: >>>>>> >>>>>>> I don't think that file is really needed, the phonegap-plugin-push ( >>>>>>> https://github.com/phonegap/phonegap-plugin-push) doesn't use it >>>>>>> and push notifications work without it. The Sender ID is set on plugin >>>>>>> install passing it as a variable. Not sure what other values are included >>>>>>> on the google-services.json >>>>>>> >>>>>> >>>>>> This plugin isn't using Firebase. We didn't need >>>>>> google-services.json for GCM3. >>>>>> >>>>>> >>>>>>> >>>>>>> I forked the phonegap plugin to add FCM support and it works too >>>>>>> without the google-services.json file too. >>>>>>> >>>>>>> >>>>>>> Sauce? >>>>>> >>>>>> Firebase requires two variables, the application id and the sender >>>>>> id. Fortunately the senderId is embedded in the applicationId. >>>>>> >>>>>> I've made a PoC version of AGDroid-push here : >>>>>> https://github.com/secondsun/aerogear-android-push/tree/no_google_services >>>>>> and a Poc Puhs app here : >>>>>> https://github.com/secondsun/unified-push-helloworld/tree/no_google_services >>>>>> >>>>>> >>>>>> As you can see I've just overloaded the SenderId. >>>>>> >>>>>> >>>>>>> >>>>>>> On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman >>>>>> > wrote: >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit >>>>>>>> wrote: >>>>>>>> >>>>>>>>> >>>>>>>>>> I am now actually wondering, where to put the google-service.json >>>>>>>>>> file on Cordova (no I am not updating our plugin), but I have no clue what >>>>>>>>>> is matching the native 'app' folder in Crodova land, is it WWW foldeR? >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>>>>>>> >>>>>>>>>> hrm... >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> There is no native folder on a cordova project, but we can put >>>>>>>>> something in the plugin.xml that will install / copy it into the native >>>>>>>>> project: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>>>>>>>> >>>>>>>>> Don't know what the content is of this file seems the >>>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>>>>>>>> doesn't have this google-services.json >>>>>>>>> >>>>>>>> >>>>>>>> Correct. The documentation is being updated to cover the fact the >>>>>>>> developer needs to add the file. If the file is not present the developer >>>>>>>> gets a useful error message in his/her log when registration fails. If the >>>>>>>> file is present but incorrect (as say a stubbed file) then then developer >>>>>>>> gets a less useful message. We chose to leave it out because it is more >>>>>>>> clear what the problem is, and a quick google search for >>>>>>>> "google-services.json" takes the user exactly where they need to go. >>>>>>>> >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Cheers, >>>>>>>>> Erik Jan >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> aerogear-dev mailing list >>>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> aerogear-dev mailing list >>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> aerogear-dev mailing list >>>>>>> aerogear-dev at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> >>>> -- >>>> Matthias Wessendorf >>>> >>>> blog: http://matthiaswessendorf.wordpress.com/ >>>> twitter: http://twitter.com/mwessendorf >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> >>> -- >>> Matthias Wessendorf >>> >>> blog: http://matthiaswessendorf.wordpress.com/ >>> twitter: http://twitter.com/mwessendorf >>> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160610/b0aff997/attachment-0001.html From jusanche at redhat.com Fri Jun 10 06:38:17 2016 From: jusanche at redhat.com (Julio Cesar Sanchez Hernandez) Date: Fri, 10 Jun 2016 12:38:17 +0200 Subject: [aerogear-dev] Cordova-FCM issue (was: Re: Android Push: Firebase Cloud Messaging) In-Reply-To: References: Message-ID: Give it a try On Fri, Jun 10, 2016 at 12:29 PM, Matthias Wessendorf wrote: > Actually that error is due to missing 'applicationID' > > Should we have something like this, in our gradle file ? > > > https://github.com/jcesarmobile/phonegap-plugin-push/blob/216ab837fd239c52b4a477f42ecff26a835aca74/push.gradle#L19 > > > > On Fri, Jun 10, 2016 at 11:28 AM, Julio Cesar Sanchez Hernandez < > jusanche at redhat.com> wrote: > >> The hook should be a script that copies the .json >> >> >> >> and copy.js should copy the .json from the www to the right place >> >> can be a .sh or .bat instead of a .js, but I think .js is better as it >> works on any OS >> >> On Fri, Jun 10, 2016 at 11:08 AM, Matthias Wessendorf >> wrote: >> >>> well really >>> >>> doing something like this: >>> >>> >>> .... >>> >>> Failed to install 'aerogear-cordova-push':Error: ENOENT: no such file or >>> directory, stat >>> '/Users/matzew/Work/JBoss/UPS.next/FCM/aerogear-cordova-push/www/google-services.json' >>> >>> Any ideas ? >>> >>> >>> On Fri, Jun 10, 2016 at 11:00 AM, Matthias Wessendorf >> > wrote: >>> >>>> Let me try Erik Jan's suggestion w/ the hook :) >>>> >>>> >>>> https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/#plugin-hooks-pluginxml >>>> >>>> On Fri, Jun 10, 2016 at 10:58 AM, Matthias Wessendorf < >>>> matzew at apache.org> wrote: >>>> >>>>> Hi, >>>>> >>>>> I think I am running into the issue, that I am not having the >>>>> google-service.json file present, in my app. >>>>> >>>>> >>>>> My try to update our plugin is here: >>>>> >>>>> https://github.com/matzew/aerogear-pushplugin-cordova/commit/0f10a771a2d6a7eda64354583ff64abcb828d844 >>>>> >>>>> >>>>> And I am using this app: >>>>> >>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>> >>>>> My "www/push-config.json" file content is here: >>>>> https://gist.github.com/matzew/aebceece86f8ac5159ec7677a2fb347c >>>>> >>>>> After updating that, I did follow the instructions, on the readme, in >>>>> the "cordova" folder of the helloworld: >>>>> >>>>> 1) cordova platform add android >>>>> 2) cordova plugin add >>>>> https://github.com/matzew/aerogear-pushplugin-cordova\#fcm >>>>> 3) cordova run android >>>>> >>>>> >>>>> But, when the app launches, it crashes >>>>> >>>>> >>>>> >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: >>>>> java.lang.RuntimeException: Unable to get provider >>>>> com.google.firebase.provider.FirebaseInitProvider: >>>>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>>>> Most likely due to a missing applicationId variable in application's >>>>> build.gradle. >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.app.ActivityThread.installProvider(ActivityThread.java:5156) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.app.ActivityThread.-wrap1(ActivityThread.java) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.os.Handler.dispatchMessage(Handler.java:102) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.os.Looper.loop(Looper.java:148) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.app.ActivityThread.main(ActivityThread.java:5417) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> java.lang.reflect.Method.invoke(Native Method) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: >>>>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>>>> Most likely due to a missing applicationId variable in application's >>>>> build.gradle. >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.app.ActivityThread.installProvider(ActivityThread.java:5153) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more >>>>> 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing >>>>> activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity >>>>> 06-10 10:52:52.129 23947 24146 I Icing : Indexing >>>>> B96E309EB2416B4DBFAE0D6623436A2C7956B584 from com.google.android.gms >>>>> 06-10 10:52:52.222 4996 6509 I OpenGLRenderer: Initialized EGL, >>>>> version 1.4 >>>>> 06-10 10:52:52.231 23947 24146 I Icing : Indexing done >>>>> B96E309EB2416B4DBFAE0D6623436A2C7956B584 >>>>> 06-10 10:52:52.236 23947 24146 I Icing : Indexing >>>>> 209BD54564CA1E38C7343A8DD5819E6471F3968C from >>>>> com.google.android.googlequicksearchbox >>>>> 06-10 10:52:52.269 4996 5005 I art : Background partial >>>>> concurrent mark sweep GC freed 22954(1750KB) AllocSpace objects, 0(0B) LOS >>>>> objects, 26% free, 43MB/59MB, paused 1.180ms total 114.805ms >>>>> 06-10 10:52:52.321 23947 24058 I Icing : Indexing done >>>>> 209BD54564CA1E38C7343A8DD5819E6471F3968C >>>>> 06-10 10:52:52.661 4996 5039 W ActivityManager: Activity pause >>>>> timeout for ActivityRecord{16012ae u0 >>>>> org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity t1391 f} >>>>> >>>>> On Fri, Jun 10, 2016 at 12:02 AM, Julio Cesar Sanchez Hernandez < >>>>> jusanche at redhat.com> wrote: >>>>> >>>>>> My fork is here >>>>>> https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM >>>>>> >>>>>> I didn't add the .json and I'm receiving push notifications >>>>>> >>>>>> Last time I read the GCM docs they were already talking about that >>>>>> .json (I think it was on February or March), it's not a new thing on FCM. >>>>>> >>>>>> On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman >>>>>> wrote: >>>>>> >>>>>>> >>>>>>> >>>>>>> On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < >>>>>>> jusanche at redhat.com> wrote: >>>>>>> >>>>>>>> I don't think that file is really needed, the phonegap-plugin-push ( >>>>>>>> https://github.com/phonegap/phonegap-plugin-push) doesn't use it >>>>>>>> and push notifications work without it. The Sender ID is set on plugin >>>>>>>> install passing it as a variable. Not sure what other values are included >>>>>>>> on the google-services.json >>>>>>>> >>>>>>> >>>>>>> This plugin isn't using Firebase. We didn't need >>>>>>> google-services.json for GCM3. >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> I forked the phonegap plugin to add FCM support and it works too >>>>>>>> without the google-services.json file too. >>>>>>>> >>>>>>>> >>>>>>>> Sauce? >>>>>>> >>>>>>> Firebase requires two variables, the application id and the sender >>>>>>> id. Fortunately the senderId is embedded in the applicationId. >>>>>>> >>>>>>> I've made a PoC version of AGDroid-push here : >>>>>>> https://github.com/secondsun/aerogear-android-push/tree/no_google_services >>>>>>> and a Poc Puhs app here : >>>>>>> https://github.com/secondsun/unified-push-helloworld/tree/no_google_services >>>>>>> >>>>>>> >>>>>>> As you can see I've just overloaded the SenderId. >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman < >>>>>>>> supittma at redhat.com> wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit >>>>>>>> > wrote: >>>>>>>>> >>>>>>>>>> >>>>>>>>>>> I am now actually wondering, where to put the >>>>>>>>>>> google-service.json file on Cordova (no I am not updating our plugin), but >>>>>>>>>>> I have no clue what is matching the native 'app' folder in Crodova land, is >>>>>>>>>>> it WWW foldeR? >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>>>>>>>> >>>>>>>>>>> hrm... >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> There is no native folder on a cordova project, but we can put >>>>>>>>>> something in the plugin.xml that will install / copy it into the native >>>>>>>>>> project: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>>>>>>>>> >>>>>>>>>> Don't know what the content is of this file seems the >>>>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>>>>>>>>> doesn't have this google-services.json >>>>>>>>>> >>>>>>>>> >>>>>>>>> Correct. The documentation is being updated to cover the fact the >>>>>>>>> developer needs to add the file. If the file is not present the developer >>>>>>>>> gets a useful error message in his/her log when registration fails. If the >>>>>>>>> file is present but incorrect (as say a stubbed file) then then developer >>>>>>>>> gets a less useful message. We chose to leave it out because it is more >>>>>>>>> clear what the problem is, and a quick google search for >>>>>>>>> "google-services.json" takes the user exactly where they need to go. >>>>>>>>> >>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Cheers, >>>>>>>>>> Erik Jan >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> aerogear-dev mailing list >>>>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> aerogear-dev mailing list >>>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> aerogear-dev mailing list >>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> aerogear-dev mailing list >>>>>>> aerogear-dev at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Matthias Wessendorf >>>>> >>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>> twitter: http://twitter.com/mwessendorf >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> >>>> -- >>>> Matthias Wessendorf >>>> >>>> blog: http://matthiaswessendorf.wordpress.com/ >>>> twitter: http://twitter.com/mwessendorf >>>> >>> >>> >>> >>> -- >>> Matthias Wessendorf >>> >>> blog: http://matthiaswessendorf.wordpress.com/ >>> twitter: http://twitter.com/mwessendorf >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160610/c17da2ac/attachment-0001.html From edewit at redhat.com Mon Jun 13 02:44:35 2016 From: edewit at redhat.com (Erik Jan de Wit) Date: Mon, 13 Jun 2016 08:44:35 +0200 Subject: [aerogear-dev] Android Push: Firebase Cloud Messaging In-Reply-To: References: Message-ID: Couldn't find your branch Julio did you remove it? On Fri, Jun 10, 2016 at 12:02 AM, Julio Cesar Sanchez Hernandez < jusanche at redhat.com> wrote: > My fork is here > https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM > > I didn't add the .json and I'm receiving push notifications > > Last time I read the GCM docs they were already talking about that .json > (I think it was on February or March), it's not a new thing on FCM. > > On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman > wrote: > >> >> >> On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < >> jusanche at redhat.com> wrote: >> >>> I don't think that file is really needed, the phonegap-plugin-push ( >>> https://github.com/phonegap/phonegap-plugin-push) doesn't use it and >>> push notifications work without it. The Sender ID is set on plugin install >>> passing it as a variable. Not sure what other values are included on the >>> google-services.json >>> >> >> This plugin isn't using Firebase. We didn't need google-services.json >> for GCM3. >> >> >>> >>> I forked the phonegap plugin to add FCM support and it works too without >>> the google-services.json file too. >>> >>> >>> Sauce? >> >> Firebase requires two variables, the application id and the sender id. >> Fortunately the senderId is embedded in the applicationId. >> >> I've made a PoC version of AGDroid-push here : >> https://github.com/secondsun/aerogear-android-push/tree/no_google_services >> and a Poc Puhs app here : >> https://github.com/secondsun/unified-push-helloworld/tree/no_google_services >> >> >> As you can see I've just overloaded the SenderId. >> >> >>> >>> On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman >>> wrote: >>> >>>> >>>> >>>> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit >>>> wrote: >>>> >>>>> >>>>>> I am now actually wondering, where to put the google-service.json >>>>>> file on Cordova (no I am not updating our plugin), but I have no clue what >>>>>> is matching the native 'app' folder in Crodova land, is it WWW foldeR? >>>>>> >>>>>> >>>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>>> >>>>>> hrm... >>>>>> >>>>>> >>>>> >>>>> There is no native folder on a cordova project, but we can put >>>>> something in the plugin.xml that will install / copy it into the native >>>>> project: >>>>> >>>>> >>>>> >>>>> >>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>>>> >>>>> Don't know what the content is of this file seems the >>>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>>>> doesn't have this google-services.json >>>>> >>>> >>>> Correct. The documentation is being updated to cover the fact the >>>> developer needs to add the file. If the file is not present the developer >>>> gets a useful error message in his/her log when registration fails. If the >>>> file is present but incorrect (as say a stubbed file) then then developer >>>> gets a less useful message. We chose to leave it out because it is more >>>> clear what the problem is, and a quick google search for >>>> "google-services.json" takes the user exactly where they need to go. >>>> >>>> >>>>> >>>>> >>>>> -- >>>>> Cheers, >>>>> Erik Jan >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160613/05d9b972/attachment.html From edewit at redhat.com Mon Jun 13 02:48:30 2016 From: edewit at redhat.com (Erik Jan de Wit) Date: Mon, 13 Jun 2016 08:48:30 +0200 Subject: [aerogear-dev] Cordova-FCM issue (was: Re: Android Push: Firebase Cloud Messaging) In-Reply-To: References: Message-ID: We have a gradle file in our plugin as well, so we can add that there: https://github.com/aerogear/aerogear-cordova-push/blob/master/src/android/dependencies.gradle On Fri, Jun 10, 2016 at 12:38 PM, Julio Cesar Sanchez Hernandez < jusanche at redhat.com> wrote: > Give it a try > > On Fri, Jun 10, 2016 at 12:29 PM, Matthias Wessendorf > wrote: > >> Actually that error is due to missing 'applicationID' >> >> Should we have something like this, in our gradle file ? >> >> >> https://github.com/jcesarmobile/phonegap-plugin-push/blob/216ab837fd239c52b4a477f42ecff26a835aca74/push.gradle#L19 >> >> >> >> On Fri, Jun 10, 2016 at 11:28 AM, Julio Cesar Sanchez Hernandez < >> jusanche at redhat.com> wrote: >> >>> The hook should be a script that copies the .json >>> >>> >>> >>> and copy.js should copy the .json from the www to the right place >>> >>> can be a .sh or .bat instead of a .js, but I think .js is better as it >>> works on any OS >>> >>> On Fri, Jun 10, 2016 at 11:08 AM, Matthias Wessendorf >> > wrote: >>> >>>> well really >>>> >>>> doing something like this: >>>> >>>> >>>> .... >>>> >>>> Failed to install 'aerogear-cordova-push':Error: ENOENT: no such file >>>> or directory, stat >>>> '/Users/matzew/Work/JBoss/UPS.next/FCM/aerogear-cordova-push/www/google-services.json' >>>> >>>> Any ideas ? >>>> >>>> >>>> On Fri, Jun 10, 2016 at 11:00 AM, Matthias Wessendorf < >>>> matzew at apache.org> wrote: >>>> >>>>> Let me try Erik Jan's suggestion w/ the hook :) >>>>> >>>>> >>>>> https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/#plugin-hooks-pluginxml >>>>> >>>>> On Fri, Jun 10, 2016 at 10:58 AM, Matthias Wessendorf < >>>>> matzew at apache.org> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I think I am running into the issue, that I am not having the >>>>>> google-service.json file present, in my app. >>>>>> >>>>>> >>>>>> My try to update our plugin is here: >>>>>> >>>>>> https://github.com/matzew/aerogear-pushplugin-cordova/commit/0f10a771a2d6a7eda64354583ff64abcb828d844 >>>>>> >>>>>> >>>>>> And I am using this app: >>>>>> >>>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>>> >>>>>> My "www/push-config.json" file content is here: >>>>>> https://gist.github.com/matzew/aebceece86f8ac5159ec7677a2fb347c >>>>>> >>>>>> After updating that, I did follow the instructions, on the readme, in >>>>>> the "cordova" folder of the helloworld: >>>>>> >>>>>> 1) cordova platform add android >>>>>> 2) cordova plugin add >>>>>> https://github.com/matzew/aerogear-pushplugin-cordova\#fcm >>>>>> 3) cordova run android >>>>>> >>>>>> >>>>>> But, when the app launches, it crashes >>>>>> >>>>>> >>>>>> >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: >>>>>> java.lang.RuntimeException: Unable to get provider >>>>>> com.google.firebase.provider.FirebaseInitProvider: >>>>>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>>>>> Most likely due to a missing applicationId variable in application's >>>>>> build.gradle. >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>>> android.app.ActivityThread.installProvider(ActivityThread.java:5156) >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>>> android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>>> android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>>> android.app.ActivityThread.-wrap1(ActivityThread.java) >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>>> android.os.Handler.dispatchMessage(Handler.java:102) >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>>> android.os.Looper.loop(Looper.java:148) >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>>> android.app.ActivityThread.main(ActivityThread.java:5417) >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>>> java.lang.reflect.Method.invoke(Native Method) >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: >>>>>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>>>>> Most likely due to a missing applicationId variable in application's >>>>>> build.gradle. >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>>> com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>>> com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>>> android.app.ActivityThread.installProvider(ActivityThread.java:5153) >>>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more >>>>>> 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing >>>>>> activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity >>>>>> 06-10 10:52:52.129 23947 24146 I Icing : Indexing >>>>>> B96E309EB2416B4DBFAE0D6623436A2C7956B584 from com.google.android.gms >>>>>> 06-10 10:52:52.222 4996 6509 I OpenGLRenderer: Initialized EGL, >>>>>> version 1.4 >>>>>> 06-10 10:52:52.231 23947 24146 I Icing : Indexing done >>>>>> B96E309EB2416B4DBFAE0D6623436A2C7956B584 >>>>>> 06-10 10:52:52.236 23947 24146 I Icing : Indexing >>>>>> 209BD54564CA1E38C7343A8DD5819E6471F3968C from >>>>>> com.google.android.googlequicksearchbox >>>>>> 06-10 10:52:52.269 4996 5005 I art : Background partial >>>>>> concurrent mark sweep GC freed 22954(1750KB) AllocSpace objects, 0(0B) LOS >>>>>> objects, 26% free, 43MB/59MB, paused 1.180ms total 114.805ms >>>>>> 06-10 10:52:52.321 23947 24058 I Icing : Indexing done >>>>>> 209BD54564CA1E38C7343A8DD5819E6471F3968C >>>>>> 06-10 10:52:52.661 4996 5039 W ActivityManager: Activity pause >>>>>> timeout for ActivityRecord{16012ae u0 >>>>>> org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity t1391 f} >>>>>> >>>>>> On Fri, Jun 10, 2016 at 12:02 AM, Julio Cesar Sanchez Hernandez < >>>>>> jusanche at redhat.com> wrote: >>>>>> >>>>>>> My fork is here >>>>>>> https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM >>>>>>> >>>>>>> I didn't add the .json and I'm receiving push notifications >>>>>>> >>>>>>> Last time I read the GCM docs they were already talking about that >>>>>>> .json (I think it was on February or March), it's not a new thing on FCM. >>>>>>> >>>>>>> On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman >>>>>> > wrote: >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < >>>>>>>> jusanche at redhat.com> wrote: >>>>>>>> >>>>>>>>> I don't think that file is really needed, the phonegap-plugin-push >>>>>>>>> (https://github.com/phonegap/phonegap-plugin-push) doesn't use it >>>>>>>>> and push notifications work without it. The Sender ID is set on plugin >>>>>>>>> install passing it as a variable. Not sure what other values are included >>>>>>>>> on the google-services.json >>>>>>>>> >>>>>>>> >>>>>>>> This plugin isn't using Firebase. We didn't need >>>>>>>> google-services.json for GCM3. >>>>>>>> >>>>>>>> >>>>>>>>> >>>>>>>>> I forked the phonegap plugin to add FCM support and it works too >>>>>>>>> without the google-services.json file too. >>>>>>>>> >>>>>>>>> >>>>>>>>> Sauce? >>>>>>>> >>>>>>>> Firebase requires two variables, the application id and the sender >>>>>>>> id. Fortunately the senderId is embedded in the applicationId. >>>>>>>> >>>>>>>> I've made a PoC version of AGDroid-push here : >>>>>>>> https://github.com/secondsun/aerogear-android-push/tree/no_google_services >>>>>>>> and a Poc Puhs app here : >>>>>>>> https://github.com/secondsun/unified-push-helloworld/tree/no_google_services >>>>>>>> >>>>>>>> >>>>>>>> As you can see I've just overloaded the SenderId. >>>>>>>> >>>>>>>> >>>>>>>>> >>>>>>>>> On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman < >>>>>>>>> supittma at redhat.com> wrote: >>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit < >>>>>>>>>> edewit at redhat.com> wrote: >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> I am now actually wondering, where to put the >>>>>>>>>>>> google-service.json file on Cordova (no I am not updating our plugin), but >>>>>>>>>>>> I have no clue what is matching the native 'app' folder in Crodova land, is >>>>>>>>>>>> it WWW foldeR? >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>>>>>>>>> >>>>>>>>>>>> hrm... >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> There is no native folder on a cordova project, but we can put >>>>>>>>>>> something in the plugin.xml that will install / copy it into the native >>>>>>>>>>> project: >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>>>>>>>>>> >>>>>>>>>>> Don't know what the content is of this file seems the >>>>>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>>>>>>>>>> doesn't have this google-services.json >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Correct. The documentation is being updated to cover the fact >>>>>>>>>> the developer needs to add the file. If the file is not present the >>>>>>>>>> developer gets a useful error message in his/her log when registration >>>>>>>>>> fails. If the file is present but incorrect (as say a stubbed file) then >>>>>>>>>> then developer gets a less useful message. We chose to leave it out >>>>>>>>>> because it is more clear what the problem is, and a quick google search for >>>>>>>>>> "google-services.json" takes the user exactly where they need to go. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Cheers, >>>>>>>>>>> Erik Jan >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> aerogear-dev mailing list >>>>>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> aerogear-dev mailing list >>>>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> aerogear-dev mailing list >>>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> aerogear-dev mailing list >>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> aerogear-dev mailing list >>>>>>> aerogear-dev at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Matthias Wessendorf >>>>>> >>>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>>> twitter: http://twitter.com/mwessendorf >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Matthias Wessendorf >>>>> >>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>> twitter: http://twitter.com/mwessendorf >>>>> >>>> >>>> >>>> >>>> -- >>>> Matthias Wessendorf >>>> >>>> blog: http://matthiaswessendorf.wordpress.com/ >>>> twitter: http://twitter.com/mwessendorf >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160613/8030f12e/attachment-0001.html From jusanche at redhat.com Mon Jun 13 03:17:45 2016 From: jusanche at redhat.com (Julio Cesar Sanchez Hernandez) Date: Mon, 13 Jun 2016 09:17:45 +0200 Subject: [aerogear-dev] Android Push: Firebase Cloud Messaging In-Reply-To: References: Message-ID: Ups, sorry, it was merged on the v2 of the phonegap-plugin-push and I deleted it https://github.com/phonegap/phonegap-plugin-push/tree/v2.0.x On Mon, Jun 13, 2016 at 8:44 AM, Erik Jan de Wit wrote: > Couldn't find your branch Julio did you remove it? > > On Fri, Jun 10, 2016 at 12:02 AM, Julio Cesar Sanchez Hernandez < > jusanche at redhat.com> wrote: > >> My fork is here >> https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM >> >> I didn't add the .json and I'm receiving push notifications >> >> Last time I read the GCM docs they were already talking about that .json >> (I think it was on February or March), it's not a new thing on FCM. >> >> On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman >> wrote: >> >>> >>> >>> On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < >>> jusanche at redhat.com> wrote: >>> >>>> I don't think that file is really needed, the phonegap-plugin-push ( >>>> https://github.com/phonegap/phonegap-plugin-push) doesn't use it and >>>> push notifications work without it. The Sender ID is set on plugin install >>>> passing it as a variable. Not sure what other values are included on the >>>> google-services.json >>>> >>> >>> This plugin isn't using Firebase. We didn't need google-services.json >>> for GCM3. >>> >>> >>>> >>>> I forked the phonegap plugin to add FCM support and it works too >>>> without the google-services.json file too. >>>> >>>> >>>> Sauce? >>> >>> Firebase requires two variables, the application id and the sender id. >>> Fortunately the senderId is embedded in the applicationId. >>> >>> I've made a PoC version of AGDroid-push here : >>> https://github.com/secondsun/aerogear-android-push/tree/no_google_services >>> and a Poc Puhs app here : >>> https://github.com/secondsun/unified-push-helloworld/tree/no_google_services >>> >>> >>> As you can see I've just overloaded the SenderId. >>> >>> >>>> >>>> On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman >>>> wrote: >>>> >>>>> >>>>> >>>>> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit >>>>> wrote: >>>>> >>>>>> >>>>>>> I am now actually wondering, where to put the google-service.json >>>>>>> file on Cordova (no I am not updating our plugin), but I have no clue what >>>>>>> is matching the native 'app' folder in Crodova land, is it WWW foldeR? >>>>>>> >>>>>>> >>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>>>> >>>>>>> hrm... >>>>>>> >>>>>>> >>>>>> >>>>>> There is no native folder on a cordova project, but we can put >>>>>> something in the plugin.xml that will install / copy it into the native >>>>>> project: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>>>>> >>>>>> Don't know what the content is of this file seems the >>>>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>>>>> doesn't have this google-services.json >>>>>> >>>>> >>>>> Correct. The documentation is being updated to cover the fact the >>>>> developer needs to add the file. If the file is not present the developer >>>>> gets a useful error message in his/her log when registration fails. If the >>>>> file is present but incorrect (as say a stubbed file) then then developer >>>>> gets a less useful message. We chose to leave it out because it is more >>>>> clear what the problem is, and a quick google search for >>>>> "google-services.json" takes the user exactly where they need to go. >>>>> >>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Cheers, >>>>>> Erik Jan >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Cheers, > Erik Jan > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160613/15024ee0/attachment.html From matzew at apache.org Mon Jun 13 09:46:07 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 13 Jun 2016 15:46:07 +0200 Subject: [aerogear-dev] Gradle help for Cordova (was: Re: Cordova-FCM issue (was: Re: Android Push: Firebase Cloud Messaging)) Message-ID: hello, trying the fcm branch, I get this Gralde error. Should we add (dynamic) applicationId in our file? like done here? https://github.com/phonegap/phonegap-plugin-push/blob/master/push.gradle#L19 Does that work ? Or are there some concerns ? It looks like Firebase now does require this: 06-10 10:52:52.039 4894 4894 E AndroidRuntime: java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.IllegalStateException: Incorrect provider authority in manifest. Most likely due to a missing applicationId variable in application's build.gradle. 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:5156) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.app.ActivityThread.-wrap1(ActivityThread.java) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Incorrect provider authority in manifest. Most likely due to a missing applicationId variable in application's build.gradle. 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:5153) 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity On Fri, Jun 10, 2016 at 10:58 AM, Matthias Wessendorf wrote: > Hi, > > I think I am running into the issue, that I am not having the > google-service.json file present, in my app. > > > My try to update our plugin is here: > > https://github.com/matzew/aerogear-pushplugin-cordova/commit/0f10a771a2d6a7eda64354583ff64abcb828d844 > > > And I am using this app: > https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova > > My "www/push-config.json" file content is here: > https://gist.github.com/matzew/aebceece86f8ac5159ec7677a2fb347c > > After updating that, I did follow the instructions, on the readme, in the > "cordova" folder of the helloworld: > > 1) cordova platform add android > 2) cordova plugin add > https://github.com/matzew/aerogear-pushplugin-cordova\#fcm > 3) cordova run android > > > But, when the app launches, it crashes > > > > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: > java.lang.RuntimeException: Unable to get provider > com.google.firebase.provider.FirebaseInitProvider: > java.lang.IllegalStateException: Incorrect provider authority in manifest. > Most likely due to a missing applicationId variable in application's > build.gradle. > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.installProvider(ActivityThread.java:5156) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.-wrap1(ActivityThread.java) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.os.Handler.dispatchMessage(Handler.java:102) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.os.Looper.loop(Looper.java:148) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.main(ActivityThread.java:5417) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > java.lang.reflect.Method.invoke(Native Method) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: > java.lang.IllegalStateException: Incorrect provider authority in manifest. > Most likely due to a missing applicationId variable in application's > build.gradle. > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.installProvider(ActivityThread.java:5153) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more > 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing > activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity > 06-10 10:52:52.129 23947 24146 I Icing : Indexing > B96E309EB2416B4DBFAE0D6623436A2C7956B584 from com.google.android.gms > 06-10 10:52:52.222 4996 6509 I OpenGLRenderer: Initialized EGL, version > 1.4 > 06-10 10:52:52.231 23947 24146 I Icing : Indexing done > B96E309EB2416B4DBFAE0D6623436A2C7956B584 > 06-10 10:52:52.236 23947 24146 I Icing : Indexing > 209BD54564CA1E38C7343A8DD5819E6471F3968C from > com.google.android.googlequicksearchbox > 06-10 10:52:52.269 4996 5005 I art : Background partial concurrent > mark sweep GC freed 22954(1750KB) AllocSpace objects, 0(0B) LOS objects, > 26% free, 43MB/59MB, paused 1.180ms total 114.805ms > 06-10 10:52:52.321 23947 24058 I Icing : Indexing done > 209BD54564CA1E38C7343A8DD5819E6471F3968C > 06-10 10:52:52.661 4996 5039 W ActivityManager: Activity pause timeout > for ActivityRecord{16012ae u0 > org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity t1391 f} > > On Fri, Jun 10, 2016 at 12:02 AM, Julio Cesar Sanchez Hernandez < > jusanche at redhat.com> wrote: > >> My fork is here >> https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM >> >> I didn't add the .json and I'm receiving push notifications >> >> Last time I read the GCM docs they were already talking about that .json >> (I think it was on February or March), it's not a new thing on FCM. >> >> On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman >> wrote: >> >>> >>> >>> On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < >>> jusanche at redhat.com> wrote: >>> >>>> I don't think that file is really needed, the phonegap-plugin-push ( >>>> https://github.com/phonegap/phonegap-plugin-push) doesn't use it and >>>> push notifications work without it. The Sender ID is set on plugin install >>>> passing it as a variable. Not sure what other values are included on the >>>> google-services.json >>>> >>> >>> This plugin isn't using Firebase. We didn't need google-services.json >>> for GCM3. >>> >>> >>>> >>>> I forked the phonegap plugin to add FCM support and it works too >>>> without the google-services.json file too. >>>> >>>> >>>> Sauce? >>> >>> Firebase requires two variables, the application id and the sender id. >>> Fortunately the senderId is embedded in the applicationId. >>> >>> I've made a PoC version of AGDroid-push here : >>> https://github.com/secondsun/aerogear-android-push/tree/no_google_services >>> and a Poc Puhs app here : >>> https://github.com/secondsun/unified-push-helloworld/tree/no_google_services >>> >>> >>> As you can see I've just overloaded the SenderId. >>> >>> >>>> >>>> On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman >>>> wrote: >>>> >>>>> >>>>> >>>>> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit >>>>> wrote: >>>>> >>>>>> >>>>>>> I am now actually wondering, where to put the google-service.json >>>>>>> file on Cordova (no I am not updating our plugin), but I have no clue what >>>>>>> is matching the native 'app' folder in Crodova land, is it WWW foldeR? >>>>>>> >>>>>>> >>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>>>> >>>>>>> hrm... >>>>>>> >>>>>>> >>>>>> >>>>>> There is no native folder on a cordova project, but we can put >>>>>> something in the plugin.xml that will install / copy it into the native >>>>>> project: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>>>>> >>>>>> Don't know what the content is of this file seems the >>>>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>>>>> doesn't have this google-services.json >>>>>> >>>>> >>>>> Correct. The documentation is being updated to cover the fact the >>>>> developer needs to add the file. If the file is not present the developer >>>>> gets a useful error message in his/her log when registration fails. If the >>>>> file is present but incorrect (as say a stubbed file) then then developer >>>>> gets a less useful message. We chose to leave it out because it is more >>>>> clear what the problem is, and a quick google search for >>>>> "google-services.json" takes the user exactly where they need to go. >>>>> >>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Cheers, >>>>>> Erik Jan >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160613/048e4917/attachment-0001.html From matzew at apache.org Mon Jun 13 09:47:52 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 13 Jun 2016 15:47:52 +0200 Subject: [aerogear-dev] Gradle help for Cordova (was: Re: Cordova-FCM issue (was: Re: Android Push: Firebase Cloud Messaging)) In-Reply-To: References: Message-ID: So, we could add it to this branch: https://github.com/matzew/aerogear-pushplugin-cordova/blob/fcm/src/android/dependencies.gradle no? On Mon, Jun 13, 2016 at 3:46 PM, Matthias Wessendorf wrote: > hello, > > trying the fcm branch, I get this Gralde error. Should we add (dynamic) > applicationId in our file? > > like done here? > > https://github.com/phonegap/phonegap-plugin-push/blob/master/push.gradle#L19 > > Does that work ? Or are there some concerns ? > > > It looks like Firebase now does require this: > > > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: > java.lang.RuntimeException: Unable to get provider > com.google.firebase.provider.FirebaseInitProvider: > java.lang.IllegalStateException: Incorrect provider authority in manifest. > Most likely due to a missing applicationId variable in application's > build.gradle. > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.installProvider(ActivityThread.java:5156) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.-wrap1(ActivityThread.java) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.os.Handler.dispatchMessage(Handler.java:102) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.os.Looper.loop(Looper.java:148) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.main(ActivityThread.java:5417) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > java.lang.reflect.Method.invoke(Native Method) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: > java.lang.IllegalStateException: Incorrect provider authority in manifest. > Most likely due to a missing applicationId variable in application's > build.gradle. > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at > android.app.ActivityThread.installProvider(ActivityThread.java:5153) > 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more > 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing > activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity > > > On Fri, Jun 10, 2016 at 10:58 AM, Matthias Wessendorf > wrote: > >> Hi, >> >> I think I am running into the issue, that I am not having the >> google-service.json file present, in my app. >> >> >> My try to update our plugin is here: >> >> https://github.com/matzew/aerogear-pushplugin-cordova/commit/0f10a771a2d6a7eda64354583ff64abcb828d844 >> >> >> And I am using this app: >> >> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >> >> My "www/push-config.json" file content is here: >> https://gist.github.com/matzew/aebceece86f8ac5159ec7677a2fb347c >> >> After updating that, I did follow the instructions, on the readme, in the >> "cordova" folder of the helloworld: >> >> 1) cordova platform add android >> 2) cordova plugin add >> https://github.com/matzew/aerogear-pushplugin-cordova\#fcm >> 3) cordova run android >> >> >> But, when the app launches, it crashes >> >> >> >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: >> java.lang.RuntimeException: Unable to get provider >> com.google.firebase.provider.FirebaseInitProvider: >> java.lang.IllegalStateException: Incorrect provider authority in manifest. >> Most likely due to a missing applicationId variable in application's >> build.gradle. >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.installProvider(ActivityThread.java:5156) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.-wrap1(ActivityThread.java) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.os.Handler.dispatchMessage(Handler.java:102) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.os.Looper.loop(Looper.java:148) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.main(ActivityThread.java:5417) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> java.lang.reflect.Method.invoke(Native Method) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: >> java.lang.IllegalStateException: Incorrect provider authority in manifest. >> Most likely due to a missing applicationId variable in application's >> build.gradle. >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.installProvider(ActivityThread.java:5153) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more >> 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing >> activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity >> 06-10 10:52:52.129 23947 24146 I Icing : Indexing >> B96E309EB2416B4DBFAE0D6623436A2C7956B584 from com.google.android.gms >> 06-10 10:52:52.222 4996 6509 I OpenGLRenderer: Initialized EGL, version >> 1.4 >> 06-10 10:52:52.231 23947 24146 I Icing : Indexing done >> B96E309EB2416B4DBFAE0D6623436A2C7956B584 >> 06-10 10:52:52.236 23947 24146 I Icing : Indexing >> 209BD54564CA1E38C7343A8DD5819E6471F3968C from >> com.google.android.googlequicksearchbox >> 06-10 10:52:52.269 4996 5005 I art : Background partial concurrent >> mark sweep GC freed 22954(1750KB) AllocSpace objects, 0(0B) LOS objects, >> 26% free, 43MB/59MB, paused 1.180ms total 114.805ms >> 06-10 10:52:52.321 23947 24058 I Icing : Indexing done >> 209BD54564CA1E38C7343A8DD5819E6471F3968C >> 06-10 10:52:52.661 4996 5039 W ActivityManager: Activity pause timeout >> for ActivityRecord{16012ae u0 >> org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity t1391 f} >> >> On Fri, Jun 10, 2016 at 12:02 AM, Julio Cesar Sanchez Hernandez < >> jusanche at redhat.com> wrote: >> >>> My fork is here >>> https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM >>> >>> I didn't add the .json and I'm receiving push notifications >>> >>> Last time I read the GCM docs they were already talking about that .json >>> (I think it was on February or March), it's not a new thing on FCM. >>> >>> On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman >>> wrote: >>> >>>> >>>> >>>> On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < >>>> jusanche at redhat.com> wrote: >>>> >>>>> I don't think that file is really needed, the phonegap-plugin-push ( >>>>> https://github.com/phonegap/phonegap-plugin-push) doesn't use it and >>>>> push notifications work without it. The Sender ID is set on plugin install >>>>> passing it as a variable. Not sure what other values are included on the >>>>> google-services.json >>>>> >>>> >>>> This plugin isn't using Firebase. We didn't need google-services.json >>>> for GCM3. >>>> >>>> >>>>> >>>>> I forked the phonegap plugin to add FCM support and it works too >>>>> without the google-services.json file too. >>>>> >>>>> >>>>> Sauce? >>>> >>>> Firebase requires two variables, the application id and the sender id. >>>> Fortunately the senderId is embedded in the applicationId. >>>> >>>> I've made a PoC version of AGDroid-push here : >>>> https://github.com/secondsun/aerogear-android-push/tree/no_google_services >>>> and a Poc Puhs app here : >>>> https://github.com/secondsun/unified-push-helloworld/tree/no_google_services >>>> >>>> >>>> As you can see I've just overloaded the SenderId. >>>> >>>> >>>>> >>>>> On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman >>>>> wrote: >>>>> >>>>>> >>>>>> >>>>>> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit >>>>>> wrote: >>>>>> >>>>>>> >>>>>>>> I am now actually wondering, where to put the google-service.json >>>>>>>> file on Cordova (no I am not updating our plugin), but I have no clue what >>>>>>>> is matching the native 'app' folder in Crodova land, is it WWW foldeR? >>>>>>>> >>>>>>>> >>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>>>>> >>>>>>>> hrm... >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> There is no native folder on a cordova project, but we can put >>>>>>> something in the plugin.xml that will install / copy it into the native >>>>>>> project: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>>>>>> >>>>>>> Don't know what the content is of this file seems the >>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>>>>>> doesn't have this google-services.json >>>>>>> >>>>>> >>>>>> Correct. The documentation is being updated to cover the fact the >>>>>> developer needs to add the file. If the file is not present the developer >>>>>> gets a useful error message in his/her log when registration fails. If the >>>>>> file is present but incorrect (as say a stubbed file) then then developer >>>>>> gets a less useful message. We chose to leave it out because it is more >>>>>> clear what the problem is, and a quick google search for >>>>>> "google-services.json" takes the user exactly where they need to go. >>>>>> >>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Cheers, >>>>>>> Erik Jan >>>>>>> >>>>>>> _______________________________________________ >>>>>>> aerogear-dev mailing list >>>>>>> aerogear-dev at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > 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-dev/attachments/20160613/ab55b181/attachment-0001.html From edewit at redhat.com Mon Jun 13 10:57:44 2016 From: edewit at redhat.com (Erik Jan de Wit) Date: Mon, 13 Jun 2016 16:57:44 +0200 Subject: [aerogear-dev] Gradle help for Cordova (was: Re: Cordova-FCM issue (was: Re: Android Push: Firebase Cloud Messaging)) In-Reply-To: References: Message-ID: just tried your branch and it builds without problems, maybe I'm doing something wrong: > cordova create push-test > cd push-test > cordova plugin add https://github.com/matzew/aerogear-pushplugin-cordova.git\#fcm > cordova platform add android > cordova build On Mon, Jun 13, 2016 at 3:47 PM, Matthias Wessendorf wrote: > So, we could add it to this branch: > > https://github.com/matzew/aerogear-pushplugin-cordova/blob/fcm/src/android/dependencies.gradle > > no? > > > On Mon, Jun 13, 2016 at 3:46 PM, Matthias Wessendorf > wrote: > >> hello, >> >> trying the fcm branch, I get this Gralde error. Should we add (dynamic) >> applicationId in our file? >> >> like done here? >> >> https://github.com/phonegap/phonegap-plugin-push/blob/master/push.gradle#L19 >> >> Does that work ? Or are there some concerns ? >> >> >> It looks like Firebase now does require this: >> >> >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: >> java.lang.RuntimeException: Unable to get provider >> com.google.firebase.provider.FirebaseInitProvider: >> java.lang.IllegalStateException: Incorrect provider authority in manifest. >> Most likely due to a missing applicationId variable in application's >> build.gradle. >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.installProvider(ActivityThread.java:5156) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.-wrap1(ActivityThread.java) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.os.Handler.dispatchMessage(Handler.java:102) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.os.Looper.loop(Looper.java:148) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.main(ActivityThread.java:5417) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> java.lang.reflect.Method.invoke(Native Method) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: >> java.lang.IllegalStateException: Incorrect provider authority in manifest. >> Most likely due to a missing applicationId variable in application's >> build.gradle. >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >> android.app.ActivityThread.installProvider(ActivityThread.java:5153) >> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more >> 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing >> activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity >> >> >> On Fri, Jun 10, 2016 at 10:58 AM, Matthias Wessendorf >> wrote: >> >>> Hi, >>> >>> I think I am running into the issue, that I am not having the >>> google-service.json file present, in my app. >>> >>> >>> My try to update our plugin is here: >>> >>> https://github.com/matzew/aerogear-pushplugin-cordova/commit/0f10a771a2d6a7eda64354583ff64abcb828d844 >>> >>> >>> And I am using this app: >>> >>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>> >>> My "www/push-config.json" file content is here: >>> https://gist.github.com/matzew/aebceece86f8ac5159ec7677a2fb347c >>> >>> After updating that, I did follow the instructions, on the readme, in >>> the "cordova" folder of the helloworld: >>> >>> 1) cordova platform add android >>> 2) cordova plugin add >>> https://github.com/matzew/aerogear-pushplugin-cordova\#fcm >>> 3) cordova run android >>> >>> >>> But, when the app launches, it crashes >>> >>> >>> >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: >>> java.lang.RuntimeException: Unable to get provider >>> com.google.firebase.provider.FirebaseInitProvider: >>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>> Most likely due to a missing applicationId variable in application's >>> build.gradle. >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.installProvider(ActivityThread.java:5156) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.-wrap1(ActivityThread.java) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.os.Handler.dispatchMessage(Handler.java:102) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.os.Looper.loop(Looper.java:148) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.main(ActivityThread.java:5417) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> java.lang.reflect.Method.invoke(Native Method) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: >>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>> Most likely due to a missing applicationId variable in application's >>> build.gradle. >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.installProvider(ActivityThread.java:5153) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more >>> 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing >>> activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity >>> 06-10 10:52:52.129 23947 24146 I Icing : Indexing >>> B96E309EB2416B4DBFAE0D6623436A2C7956B584 from com.google.android.gms >>> 06-10 10:52:52.222 4996 6509 I OpenGLRenderer: Initialized EGL, >>> version 1.4 >>> 06-10 10:52:52.231 23947 24146 I Icing : Indexing done >>> B96E309EB2416B4DBFAE0D6623436A2C7956B584 >>> 06-10 10:52:52.236 23947 24146 I Icing : Indexing >>> 209BD54564CA1E38C7343A8DD5819E6471F3968C from >>> com.google.android.googlequicksearchbox >>> 06-10 10:52:52.269 4996 5005 I art : Background partial concurrent >>> mark sweep GC freed 22954(1750KB) AllocSpace objects, 0(0B) LOS objects, >>> 26% free, 43MB/59MB, paused 1.180ms total 114.805ms >>> 06-10 10:52:52.321 23947 24058 I Icing : Indexing done >>> 209BD54564CA1E38C7343A8DD5819E6471F3968C >>> 06-10 10:52:52.661 4996 5039 W ActivityManager: Activity pause timeout >>> for ActivityRecord{16012ae u0 >>> org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity t1391 f} >>> >>> On Fri, Jun 10, 2016 at 12:02 AM, Julio Cesar Sanchez Hernandez < >>> jusanche at redhat.com> wrote: >>> >>>> My fork is here >>>> https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM >>>> >>>> I didn't add the .json and I'm receiving push notifications >>>> >>>> Last time I read the GCM docs they were already talking about that >>>> .json (I think it was on February or March), it's not a new thing on FCM. >>>> >>>> On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman >>>> wrote: >>>> >>>>> >>>>> >>>>> On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < >>>>> jusanche at redhat.com> wrote: >>>>> >>>>>> I don't think that file is really needed, the phonegap-plugin-push ( >>>>>> https://github.com/phonegap/phonegap-plugin-push) doesn't use it and >>>>>> push notifications work without it. The Sender ID is set on plugin install >>>>>> passing it as a variable. Not sure what other values are included on the >>>>>> google-services.json >>>>>> >>>>> >>>>> This plugin isn't using Firebase. We didn't need google-services.json >>>>> for GCM3. >>>>> >>>>> >>>>>> >>>>>> I forked the phonegap plugin to add FCM support and it works too >>>>>> without the google-services.json file too. >>>>>> >>>>>> >>>>>> Sauce? >>>>> >>>>> Firebase requires two variables, the application id and the sender >>>>> id. Fortunately the senderId is embedded in the applicationId. >>>>> >>>>> I've made a PoC version of AGDroid-push here : >>>>> https://github.com/secondsun/aerogear-android-push/tree/no_google_services >>>>> and a Poc Puhs app here : >>>>> https://github.com/secondsun/unified-push-helloworld/tree/no_google_services >>>>> >>>>> >>>>> As you can see I've just overloaded the SenderId. >>>>> >>>>> >>>>>> >>>>>> On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman >>>>>> wrote: >>>>>> >>>>>>> >>>>>>> >>>>>>> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit >>>>>>> wrote: >>>>>>> >>>>>>>> >>>>>>>>> I am now actually wondering, where to put the google-service.json >>>>>>>>> file on Cordova (no I am not updating our plugin), but I have no clue what >>>>>>>>> is matching the native 'app' folder in Crodova land, is it WWW foldeR? >>>>>>>>> >>>>>>>>> >>>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>>>>>> >>>>>>>>> hrm... >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> There is no native folder on a cordova project, but we can put >>>>>>>> something in the plugin.xml that will install / copy it into the native >>>>>>>> project: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>>>>>>> >>>>>>>> Don't know what the content is of this file seems the >>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>>>>>>> doesn't have this google-services.json >>>>>>>> >>>>>>> >>>>>>> Correct. The documentation is being updated to cover the fact the >>>>>>> developer needs to add the file. If the file is not present the developer >>>>>>> gets a useful error message in his/her log when registration fails. If the >>>>>>> file is present but incorrect (as say a stubbed file) then then developer >>>>>>> gets a less useful message. We chose to leave it out because it is more >>>>>>> clear what the problem is, and a quick google search for >>>>>>> "google-services.json" takes the user exactly where they need to go. >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Cheers, >>>>>>>> Erik Jan >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> aerogear-dev mailing list >>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> aerogear-dev mailing list >>>>>>> aerogear-dev at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> >>> -- >>> Matthias Wessendorf >>> >>> blog: http://matthiaswessendorf.wordpress.com/ >>> twitter: http://twitter.com/mwessendorf >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160613/c96fd341/attachment-0001.html From edewit at redhat.com Mon Jun 13 10:58:38 2016 From: edewit at redhat.com (Erik Jan de Wit) Date: Mon, 13 Jun 2016 16:58:38 +0200 Subject: [aerogear-dev] Gradle help for Cordova (was: Re: Cordova-FCM issue (was: Re: Android Push: Firebase Cloud Messaging)) In-Reply-To: References: Message-ID: forgot to add my version numbers: /t/push-test *?**?**?* cordova -v 6.2.0 /t/push-test *?**?**?* cordova platform ls Installed platforms: android 5.1.1 On Mon, Jun 13, 2016 at 4:57 PM, Erik Jan de Wit wrote: > just tried your branch and it builds without problems, maybe I'm doing > something wrong: > > > cordova create push-test > > cd push-test > > cordova plugin add > https://github.com/matzew/aerogear-pushplugin-cordova.git\#fcm > > cordova platform add android > > cordova build > > > > On Mon, Jun 13, 2016 at 3:47 PM, Matthias Wessendorf > wrote: > >> So, we could add it to this branch: >> >> https://github.com/matzew/aerogear-pushplugin-cordova/blob/fcm/src/android/dependencies.gradle >> >> no? >> >> >> On Mon, Jun 13, 2016 at 3:46 PM, Matthias Wessendorf >> wrote: >> >>> hello, >>> >>> trying the fcm branch, I get this Gralde error. Should we add (dynamic) >>> applicationId in our file? >>> >>> like done here? >>> >>> https://github.com/phonegap/phonegap-plugin-push/blob/master/push.gradle#L19 >>> >>> Does that work ? Or are there some concerns ? >>> >>> >>> It looks like Firebase now does require this: >>> >>> >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: >>> java.lang.RuntimeException: Unable to get provider >>> com.google.firebase.provider.FirebaseInitProvider: >>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>> Most likely due to a missing applicationId variable in application's >>> build.gradle. >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.installProvider(ActivityThread.java:5156) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.-wrap1(ActivityThread.java) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.os.Handler.dispatchMessage(Handler.java:102) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.os.Looper.loop(Looper.java:148) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.main(ActivityThread.java:5417) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> java.lang.reflect.Method.invoke(Native Method) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: >>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>> Most likely due to a missing applicationId variable in application's >>> build.gradle. >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>> android.app.ActivityThread.installProvider(ActivityThread.java:5153) >>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more >>> 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing >>> activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity >>> >>> >>> On Fri, Jun 10, 2016 at 10:58 AM, Matthias Wessendorf >> > wrote: >>> >>>> Hi, >>>> >>>> I think I am running into the issue, that I am not having the >>>> google-service.json file present, in my app. >>>> >>>> >>>> My try to update our plugin is here: >>>> >>>> https://github.com/matzew/aerogear-pushplugin-cordova/commit/0f10a771a2d6a7eda64354583ff64abcb828d844 >>>> >>>> >>>> And I am using this app: >>>> >>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>> >>>> My "www/push-config.json" file content is here: >>>> https://gist.github.com/matzew/aebceece86f8ac5159ec7677a2fb347c >>>> >>>> After updating that, I did follow the instructions, on the readme, in >>>> the "cordova" folder of the helloworld: >>>> >>>> 1) cordova platform add android >>>> 2) cordova plugin add >>>> https://github.com/matzew/aerogear-pushplugin-cordova\#fcm >>>> 3) cordova run android >>>> >>>> >>>> But, when the app launches, it crashes >>>> >>>> >>>> >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: >>>> java.lang.RuntimeException: Unable to get provider >>>> com.google.firebase.provider.FirebaseInitProvider: >>>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>>> Most likely due to a missing applicationId variable in application's >>>> build.gradle. >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.installProvider(ActivityThread.java:5156) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.-wrap1(ActivityThread.java) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.os.Handler.dispatchMessage(Handler.java:102) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.os.Looper.loop(Looper.java:148) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.main(ActivityThread.java:5417) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> java.lang.reflect.Method.invoke(Native Method) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: >>>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>>> Most likely due to a missing applicationId variable in application's >>>> build.gradle. >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.installProvider(ActivityThread.java:5153) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more >>>> 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing >>>> activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity >>>> 06-10 10:52:52.129 23947 24146 I Icing : Indexing >>>> B96E309EB2416B4DBFAE0D6623436A2C7956B584 from com.google.android.gms >>>> 06-10 10:52:52.222 4996 6509 I OpenGLRenderer: Initialized EGL, >>>> version 1.4 >>>> 06-10 10:52:52.231 23947 24146 I Icing : Indexing done >>>> B96E309EB2416B4DBFAE0D6623436A2C7956B584 >>>> 06-10 10:52:52.236 23947 24146 I Icing : Indexing >>>> 209BD54564CA1E38C7343A8DD5819E6471F3968C from >>>> com.google.android.googlequicksearchbox >>>> 06-10 10:52:52.269 4996 5005 I art : Background partial >>>> concurrent mark sweep GC freed 22954(1750KB) AllocSpace objects, 0(0B) LOS >>>> objects, 26% free, 43MB/59MB, paused 1.180ms total 114.805ms >>>> 06-10 10:52:52.321 23947 24058 I Icing : Indexing done >>>> 209BD54564CA1E38C7343A8DD5819E6471F3968C >>>> 06-10 10:52:52.661 4996 5039 W ActivityManager: Activity pause >>>> timeout for ActivityRecord{16012ae u0 >>>> org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity t1391 f} >>>> >>>> On Fri, Jun 10, 2016 at 12:02 AM, Julio Cesar Sanchez Hernandez < >>>> jusanche at redhat.com> wrote: >>>> >>>>> My fork is here >>>>> https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM >>>>> >>>>> I didn't add the .json and I'm receiving push notifications >>>>> >>>>> Last time I read the GCM docs they were already talking about that >>>>> .json (I think it was on February or March), it's not a new thing on FCM. >>>>> >>>>> On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman >>>>> wrote: >>>>> >>>>>> >>>>>> >>>>>> On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < >>>>>> jusanche at redhat.com> wrote: >>>>>> >>>>>>> I don't think that file is really needed, the phonegap-plugin-push ( >>>>>>> https://github.com/phonegap/phonegap-plugin-push) doesn't use it >>>>>>> and push notifications work without it. The Sender ID is set on plugin >>>>>>> install passing it as a variable. Not sure what other values are included >>>>>>> on the google-services.json >>>>>>> >>>>>> >>>>>> This plugin isn't using Firebase. We didn't need >>>>>> google-services.json for GCM3. >>>>>> >>>>>> >>>>>>> >>>>>>> I forked the phonegap plugin to add FCM support and it works too >>>>>>> without the google-services.json file too. >>>>>>> >>>>>>> >>>>>>> Sauce? >>>>>> >>>>>> Firebase requires two variables, the application id and the sender >>>>>> id. Fortunately the senderId is embedded in the applicationId. >>>>>> >>>>>> I've made a PoC version of AGDroid-push here : >>>>>> https://github.com/secondsun/aerogear-android-push/tree/no_google_services >>>>>> and a Poc Puhs app here : >>>>>> https://github.com/secondsun/unified-push-helloworld/tree/no_google_services >>>>>> >>>>>> >>>>>> As you can see I've just overloaded the SenderId. >>>>>> >>>>>> >>>>>>> >>>>>>> On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman >>>>>> > wrote: >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit >>>>>>>> wrote: >>>>>>>> >>>>>>>>> >>>>>>>>>> I am now actually wondering, where to put the google-service.json >>>>>>>>>> file on Cordova (no I am not updating our plugin), but I have no clue what >>>>>>>>>> is matching the native 'app' folder in Crodova land, is it WWW foldeR? >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>>>>>>> >>>>>>>>>> hrm... >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> There is no native folder on a cordova project, but we can put >>>>>>>>> something in the plugin.xml that will install / copy it into the native >>>>>>>>> project: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>>>>>>>> >>>>>>>>> Don't know what the content is of this file seems the >>>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>>>>>>>> doesn't have this google-services.json >>>>>>>>> >>>>>>>> >>>>>>>> Correct. The documentation is being updated to cover the fact the >>>>>>>> developer needs to add the file. If the file is not present the developer >>>>>>>> gets a useful error message in his/her log when registration fails. If the >>>>>>>> file is present but incorrect (as say a stubbed file) then then developer >>>>>>>> gets a less useful message. We chose to leave it out because it is more >>>>>>>> clear what the problem is, and a quick google search for >>>>>>>> "google-services.json" takes the user exactly where they need to go. >>>>>>>> >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Cheers, >>>>>>>>> Erik Jan >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> aerogear-dev mailing list >>>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> aerogear-dev mailing list >>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> aerogear-dev mailing list >>>>>>> aerogear-dev at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> >>>> -- >>>> Matthias Wessendorf >>>> >>>> blog: http://matthiaswessendorf.wordpress.com/ >>>> twitter: http://twitter.com/mwessendorf >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> >>> -- >>> Matthias Wessendorf >>> >>> blog: http://matthiaswessendorf.wordpress.com/ >>> twitter: http://twitter.com/mwessendorf >>> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Cheers, > Erik Jan > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160613/0e2692eb/attachment-0001.html From matzew at apache.org Mon Jun 13 11:17:01 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 13 Jun 2016 17:17:01 +0200 Subject: [aerogear-dev] Gradle help for Cordova (was: Re: Cordova-FCM issue (was: Re: Android Push: Firebase Cloud Messaging)) In-Reply-To: References: Message-ID: cordova --version 5.2.0 cordova platform ls Installed platforms: android 4.1.1 Available platforms: amazon-fireos, blackberry10, browser, firefoxos, ios, webos On Mon, Jun 13, 2016 at 4:58 PM, Erik Jan de Wit wrote: > forgot to add my version numbers: > > /t/push-test *?**?**?* cordova -v > > 6.2.0 > > /t/push-test *?**?**?* cordova platform ls > > Installed platforms: > > android 5.1.1 > > On Mon, Jun 13, 2016 at 4:57 PM, Erik Jan de Wit > wrote: > >> just tried your branch and it builds without problems, maybe I'm doing >> something wrong: >> >> > cordova create push-test >> > cd push-test >> > cordova plugin add >> https://github.com/matzew/aerogear-pushplugin-cordova.git\#fcm >> > cordova platform add android >> > cordova build >> >> >> >> On Mon, Jun 13, 2016 at 3:47 PM, Matthias Wessendorf >> wrote: >> >>> So, we could add it to this branch: >>> >>> https://github.com/matzew/aerogear-pushplugin-cordova/blob/fcm/src/android/dependencies.gradle >>> >>> no? >>> >>> >>> On Mon, Jun 13, 2016 at 3:46 PM, Matthias Wessendorf >>> wrote: >>> >>>> hello, >>>> >>>> trying the fcm branch, I get this Gralde error. Should we add (dynamic) >>>> applicationId in our file? >>>> >>>> like done here? >>>> >>>> https://github.com/phonegap/phonegap-plugin-push/blob/master/push.gradle#L19 >>>> >>>> Does that work ? Or are there some concerns ? >>>> >>>> >>>> It looks like Firebase now does require this: >>>> >>>> >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: >>>> java.lang.RuntimeException: Unable to get provider >>>> com.google.firebase.provider.FirebaseInitProvider: >>>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>>> Most likely due to a missing applicationId variable in application's >>>> build.gradle. >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.installProvider(ActivityThread.java:5156) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.-wrap1(ActivityThread.java) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.os.Handler.dispatchMessage(Handler.java:102) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.os.Looper.loop(Looper.java:148) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.main(ActivityThread.java:5417) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> java.lang.reflect.Method.invoke(Native Method) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: >>>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>>> Most likely due to a missing applicationId variable in application's >>>> build.gradle. >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>> android.app.ActivityThread.installProvider(ActivityThread.java:5153) >>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more >>>> 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing >>>> activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity >>>> >>>> >>>> On Fri, Jun 10, 2016 at 10:58 AM, Matthias Wessendorf < >>>> matzew at apache.org> wrote: >>>> >>>>> Hi, >>>>> >>>>> I think I am running into the issue, that I am not having the >>>>> google-service.json file present, in my app. >>>>> >>>>> >>>>> My try to update our plugin is here: >>>>> >>>>> https://github.com/matzew/aerogear-pushplugin-cordova/commit/0f10a771a2d6a7eda64354583ff64abcb828d844 >>>>> >>>>> >>>>> And I am using this app: >>>>> >>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>> >>>>> My "www/push-config.json" file content is here: >>>>> https://gist.github.com/matzew/aebceece86f8ac5159ec7677a2fb347c >>>>> >>>>> After updating that, I did follow the instructions, on the readme, in >>>>> the "cordova" folder of the helloworld: >>>>> >>>>> 1) cordova platform add android >>>>> 2) cordova plugin add >>>>> https://github.com/matzew/aerogear-pushplugin-cordova\#fcm >>>>> 3) cordova run android >>>>> >>>>> >>>>> But, when the app launches, it crashes >>>>> >>>>> >>>>> >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: >>>>> java.lang.RuntimeException: Unable to get provider >>>>> com.google.firebase.provider.FirebaseInitProvider: >>>>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>>>> Most likely due to a missing applicationId variable in application's >>>>> build.gradle. >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.app.ActivityThread.installProvider(ActivityThread.java:5156) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.app.ActivityThread.installContentProviders(ActivityThread.java:4748) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.app.ActivityThread.handleBindApplication(ActivityThread.java:4688) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.app.ActivityThread.-wrap1(ActivityThread.java) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.os.Handler.dispatchMessage(Handler.java:102) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.os.Looper.loop(Looper.java:148) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.app.ActivityThread.main(ActivityThread.java:5417) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> java.lang.reflect.Method.invoke(Native Method) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: Caused by: >>>>> java.lang.IllegalStateException: Incorrect provider authority in manifest. >>>>> Most likely due to a missing applicationId variable in application's >>>>> build.gradle. >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> com.google.firebase.provider.FirebaseInitProvider.zza(Unknown Source) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: at >>>>> android.app.ActivityThread.installProvider(ActivityThread.java:5153) >>>>> 06-10 10:52:52.039 4894 4894 E AndroidRuntime: ... 10 more >>>>> 06-10 10:52:52.040 4996 2592 W ActivityManager: Force finishing >>>>> activity org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity >>>>> 06-10 10:52:52.129 23947 24146 I Icing : Indexing >>>>> B96E309EB2416B4DBFAE0D6623436A2C7956B584 from com.google.android.gms >>>>> 06-10 10:52:52.222 4996 6509 I OpenGLRenderer: Initialized EGL, >>>>> version 1.4 >>>>> 06-10 10:52:52.231 23947 24146 I Icing : Indexing done >>>>> B96E309EB2416B4DBFAE0D6623436A2C7956B584 >>>>> 06-10 10:52:52.236 23947 24146 I Icing : Indexing >>>>> 209BD54564CA1E38C7343A8DD5819E6471F3968C from >>>>> com.google.android.googlequicksearchbox >>>>> 06-10 10:52:52.269 4996 5005 I art : Background partial >>>>> concurrent mark sweep GC freed 22954(1750KB) AllocSpace objects, 0(0B) LOS >>>>> objects, 26% free, 43MB/59MB, paused 1.180ms total 114.805ms >>>>> 06-10 10:52:52.321 23947 24058 I Icing : Indexing done >>>>> 209BD54564CA1E38C7343A8DD5819E6471F3968C >>>>> 06-10 10:52:52.661 4996 5039 W ActivityManager: Activity pause >>>>> timeout for ActivityRecord{16012ae u0 >>>>> org.jboss.aerogear.unifiedpush.HelloWorld/.MainActivity t1391 f} >>>>> >>>>> On Fri, Jun 10, 2016 at 12:02 AM, Julio Cesar Sanchez Hernandez < >>>>> jusanche at redhat.com> wrote: >>>>> >>>>>> My fork is here >>>>>> https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM >>>>>> >>>>>> I didn't add the .json and I'm receiving push notifications >>>>>> >>>>>> Last time I read the GCM docs they were already talking about that >>>>>> .json (I think it was on February or March), it's not a new thing on FCM. >>>>>> >>>>>> On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman >>>>>> wrote: >>>>>> >>>>>>> >>>>>>> >>>>>>> On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez < >>>>>>> jusanche at redhat.com> wrote: >>>>>>> >>>>>>>> I don't think that file is really needed, the phonegap-plugin-push ( >>>>>>>> https://github.com/phonegap/phonegap-plugin-push) doesn't use it >>>>>>>> and push notifications work without it. The Sender ID is set on plugin >>>>>>>> install passing it as a variable. Not sure what other values are included >>>>>>>> on the google-services.json >>>>>>>> >>>>>>> >>>>>>> This plugin isn't using Firebase. We didn't need >>>>>>> google-services.json for GCM3. >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> I forked the phonegap plugin to add FCM support and it works too >>>>>>>> without the google-services.json file too. >>>>>>>> >>>>>>>> >>>>>>>> Sauce? >>>>>>> >>>>>>> Firebase requires two variables, the application id and the sender >>>>>>> id. Fortunately the senderId is embedded in the applicationId. >>>>>>> >>>>>>> I've made a PoC version of AGDroid-push here : >>>>>>> https://github.com/secondsun/aerogear-android-push/tree/no_google_services >>>>>>> and a Poc Puhs app here : >>>>>>> https://github.com/secondsun/unified-push-helloworld/tree/no_google_services >>>>>>> >>>>>>> >>>>>>> As you can see I've just overloaded the SenderId. >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman < >>>>>>>> supittma at redhat.com> wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit >>>>>>>> > wrote: >>>>>>>>> >>>>>>>>>> >>>>>>>>>>> I am now actually wondering, where to put the >>>>>>>>>>> google-service.json file on Cordova (no I am not updating our plugin), but >>>>>>>>>>> I have no clue what is matching the native 'app' folder in Crodova land, is >>>>>>>>>>> it WWW foldeR? >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova >>>>>>>>>>> >>>>>>>>>>> hrm... >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> There is no native folder on a cordova project, but we can put >>>>>>>>>> something in the plugin.xml that will install / copy it into the native >>>>>>>>>> project: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64 >>>>>>>>>> >>>>>>>>>> Don't know what the content is of this file seems the >>>>>>>>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo >>>>>>>>>> doesn't have this google-services.json >>>>>>>>>> >>>>>>>>> >>>>>>>>> Correct. The documentation is being updated to cover the fact the >>>>>>>>> developer needs to add the file. If the file is not present the developer >>>>>>>>> gets a useful error message in his/her log when registration fails. If the >>>>>>>>> file is present but incorrect (as say a stubbed file) then then developer >>>>>>>>> gets a less useful message. We chose to leave it out because it is more >>>>>>>>> clear what the problem is, and a quick google search for >>>>>>>>> "google-services.json" takes the user exactly where they need to go. >>>>>>>>> >>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Cheers, >>>>>>>>>> Erik Jan >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> aerogear-dev mailing list >>>>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> aerogear-dev mailing list >>>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> aerogear-dev mailing list >>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> aerogear-dev mailing list >>>>>>> aerogear-dev at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Matthias Wessendorf >>>>> >>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>> twitter: http://twitter.com/mwessendorf >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> >>>> -- >>>> Matthias Wessendorf >>>> >>>> blog: http://matthiaswessendorf.wordpress.com/ >>>> twitter: http://twitter.com/mwessendorf >>>> >>> >>> >>> >>> -- >>> Matthias Wessendorf >>> >>> blog: http://matthiaswessendorf.wordpress.com/ >>> twitter: http://twitter.com/mwessendorf >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Cheers, >> Erik Jan >> > > > > -- > Cheers, > Erik Jan > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160613/c6818c50/attachment-0001.html From idel.pivnitskiy at gmail.com Tue Jun 14 09:54:57 2016 From: idel.pivnitskiy at gmail.com (Idel Pivnitskiy) Date: Tue, 14 Jun 2016 16:54:57 +0300 Subject: [aerogear-dev] Web Push protocol WGLC In-Reply-To: References: Message-ID: Hi all, Update for the latest week: We discussed the questions, which I asked previously (follow previous links). Most of them are closed now. In addition here were a few new contributions/questions: - Discussion about "Prefer: wait=0 for Receiving Push Message Receipts": http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00607 - Fixing typo: https://github.com/webpush-wg/webpush-protocol/pull/118 - Replacing Push Messages just with Topic. Why? http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00618 Brian Raymor (one of the authors of Web Push protocol) added me to the Acknowledgements part of the draft :) Small achievement) https://webpush-wg.github.io/webpush-protocol/#rfc.section.10 https://github.com/webpush-wg/webpush-protocol/commit/319d3f6ee5e5741f22a2ed600b137c507e6b0b04 We are also trying to schedule a time slot with him for chatting to discuss some issues and he asked me about attendance on IETF96 this July: https://www.ietf.org/meeting/upcoming.html Best regards, Idel Pivnitskiy -- Twitter: @idelpivnitskiy GitHub: @idelpivnitskiy On Thu, Jun 9, 2016 at 8:12 AM, Matthias Wessendorf wrote: > Hi Idel, > > thanks a lot, this is good feedback on the status! > > On Thu, Jun 9, 2016 at 1:21 AM, Idel Pivnitskiy > wrote: > >> Community provides a good feedback and a lot of changes were merged. WG >> decided to postpone WGLC for a 2 weeks to resolve all issues. >> >> New discussion threads were initiated by me: >> >> 1. Define a list of headers, which must be transmitted to the UA: >> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00578 >> 2. Different status codes for negative Push Message Receipts: >> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00579 >> 3. When UA should send an acknowledgement? >> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00580 >> 4. 414 Request-URL Too Long: >> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00581 >> 5. Try to deliver receipt at least once, even if TTL expired: >> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00582 >> 6. Delivery receipt may be sent before AS request delivery: >> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00597 >> >> For some of them new GitHub issues was created. Also here is one issue >> without sending messages to the Web Push mailing list: >> >> Prefer: wait=0 for Receiving Push Message Receipts: >> https://github.com/webpush-wg/webpush-protocol/issues/113 >> >> Best regards, >> Idel Pivnitskiy >> -- >> Twitter: @idelpivnitskiy >> GitHub: @idelpivnitskiy >> >> On Tue, Jun 7, 2016 at 7:03 AM, Daniel Bevenius < >> daniel.bevenius at gmail.com> wrote: >> >>> > Daniel, could you review the current draft too, please? My suggestion >>> will be to read editor's copy [2], instead of IETF page [3], because they >>> merged a few changes this week [4]. >>> I'll try to catch up on the spec this week (hard to find the spare time >>> to do this at the moment). >>> >>> >>> >>> On 3 June 2016 at 12:51, Idel Pivnitskiy >>> wrote: >>> >>>> Hi all, >>>> >>>> Looks like Web Push WG ready for the WGLC [1]. They gathers feedback as >>>> soon as possible. >>>> >>>> I've initiated a few thread: >>>> >>>> 1. >>>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00549 >>>> 2. >>>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00559 >>>> >>>> Also I want to ask them some questions about not clear parts of the >>>> draft for me. >>>> >>>> Daniel, could you review the current draft too, please? My suggestion >>>> will be to read editor's copy [2], instead of IETF page [3], because they >>>> merged a few changes this week [4]. >>>> >>>> [1] >>>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00524 >>>> [2] https://webpush-wg.github.io/webpush-protocol/ >>>> [3] https://tools.ietf.org/html/draft-ietf-webpush-protocol-05 >>>> [4] https://github.com/webpush-wg/webpush-protocol/commits/master >>>> >>>> Best regards, >>>> Idel Pivnitskiy >>>> -- >>>> Twitter: @idelpivnitskiy >>>> GitHub: @idelpivnitskiy >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160614/32638993/attachment.html From matzew at apache.org Tue Jun 14 23:53:26 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Wed, 15 Jun 2016 05:53:26 +0200 Subject: [aerogear-dev] Web Push protocol WGLC In-Reply-To: References: Message-ID: On Tuesday, 14 June 2016, Idel Pivnitskiy wrote: > Hi all, > > Update for the latest week: > > We discussed the questions, which I asked previously (follow previous > links). Most of them are closed now. > > In addition here were a few new contributions/questions: > > - Discussion about "Prefer: wait=0 for Receiving Push Message > Receipts": > http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00607 > - Fixing typo: https://github.com/webpush-wg/webpush-protocol/pull/118 > - Replacing Push Messages just with Topic. Why? > http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00618 > > Brian Raymor (one of the authors of Web Push protocol) added me to the > Acknowledgements part of the draft :) Small achievement) > https://webpush-wg.github.io/webpush-protocol/#rfc.section.10 > > https://github.com/webpush-wg/webpush-protocol/commit/319d3f6ee5e5741f22a2ed600b137c507e6b0b04 > > wow! this is huge!! keep up the good work! Thanks for these updates, really appreciated! > We are also trying to schedule a time slot with him for chatting to > discuss some issues and he asked me about attendance on IETF96 this July: > https://www.ietf.org/meeting/upcoming.html > > Best regards, > Idel Pivnitskiy > -- > Twitter: @idelpivnitskiy > GitHub: @idelpivnitskiy > > On Thu, Jun 9, 2016 at 8:12 AM, Matthias Wessendorf > wrote: > >> Hi Idel, >> >> thanks a lot, this is good feedback on the status! >> >> On Thu, Jun 9, 2016 at 1:21 AM, Idel Pivnitskiy < >> idel.pivnitskiy at gmail.com >> > wrote: >> >>> Community provides a good feedback and a lot of changes were merged. WG >>> decided to postpone WGLC for a 2 weeks to resolve all issues. >>> >>> New discussion threads were initiated by me: >>> >>> 1. Define a list of headers, which must be transmitted to the UA: >>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00578 >>> 2. Different status codes for negative Push Message Receipts: >>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00579 >>> 3. When UA should send an acknowledgement? >>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00580 >>> 4. 414 Request-URL Too Long: >>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00581 >>> 5. Try to deliver receipt at least once, even if TTL expired: >>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00582 >>> 6. Delivery receipt may be sent before AS request delivery: >>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00597 >>> >>> For some of them new GitHub issues was created. Also here is one issue >>> without sending messages to the Web Push mailing list: >>> >>> Prefer: wait=0 for Receiving Push Message Receipts: >>> https://github.com/webpush-wg/webpush-protocol/issues/113 >>> >>> Best regards, >>> Idel Pivnitskiy >>> -- >>> Twitter: @idelpivnitskiy >>> GitHub: @idelpivnitskiy >>> >>> On Tue, Jun 7, 2016 at 7:03 AM, Daniel Bevenius < >>> daniel.bevenius at gmail.com >>> > wrote: >>> >>>> > Daniel, could you review the current draft too, please? My >>>> suggestion will be to read editor's copy [2], instead of IETF page [3], >>>> because they merged a few changes this week [4]. >>>> I'll try to catch up on the spec this week (hard to find the spare time >>>> to do this at the moment). >>>> >>>> >>>> >>>> On 3 June 2016 at 12:51, Idel Pivnitskiy >>> > wrote: >>>> >>>>> Hi all, >>>>> >>>>> Looks like Web Push WG ready for the WGLC [1]. They gathers feedback >>>>> as soon as possible. >>>>> >>>>> I've initiated a few thread: >>>>> >>>>> 1. >>>>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00549 >>>>> 2. >>>>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00559 >>>>> >>>>> Also I want to ask them some questions about not clear parts of the >>>>> draft for me. >>>>> >>>>> Daniel, could you review the current draft too, please? My suggestion >>>>> will be to read editor's copy [2], instead of IETF page [3], because they >>>>> merged a few changes this week [4]. >>>>> >>>>> [1] >>>>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00524 >>>>> [2] https://webpush-wg.github.io/webpush-protocol/ >>>>> [3] https://tools.ietf.org/html/draft-ietf-webpush-protocol-05 >>>>> [4] https://github.com/webpush-wg/webpush-protocol/commits/master >>>>> >>>>> Best regards, >>>>> Idel Pivnitskiy >>>>> -- >>>>> Twitter: @idelpivnitskiy >>>>> GitHub: @idelpivnitskiy >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160615/2f8462b7/attachment-0001.html From idel.pivnitskiy at gmail.com Wed Jun 15 03:18:10 2016 From: idel.pivnitskiy at gmail.com (Idel Pivnitskiy) Date: Wed, 15 Jun 2016 10:18:10 +0300 Subject: [aerogear-dev] Web Push protocol WGLC In-Reply-To: References: Message-ID: Thank you, Matthias! :) The 6th version released 3 hours ago: https://tools.ietf.org/html/draft-ietf-webpush-protocol-06 Best regards, Idel Pivnitskiy -- Twitter: @idelpivnitskiy GitHub: @idelpivnitskiy On Wed, Jun 15, 2016 at 6:53 AM, Matthias Wessendorf wrote: > > > On Tuesday, 14 June 2016, Idel Pivnitskiy > wrote: > >> Hi all, >> >> Update for the latest week: >> >> We discussed the questions, which I asked previously (follow previous >> links). Most of them are closed now. >> >> In addition here were a few new contributions/questions: >> >> - Discussion about "Prefer: wait=0 for Receiving Push Message >> Receipts": >> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00607 >> - Fixing typo: https://github.com/webpush-wg/webpush-protocol/pull/118 >> - Replacing Push Messages just with Topic. Why? >> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00618 >> >> Brian Raymor (one of the authors of Web Push protocol) added me to the >> Acknowledgements part of the draft :) Small achievement) >> https://webpush-wg.github.io/webpush-protocol/#rfc.section.10 >> >> https://github.com/webpush-wg/webpush-protocol/commit/319d3f6ee5e5741f22a2ed600b137c507e6b0b04 >> >> > wow! this is huge!! > > keep up the good work! > Thanks for these updates, really appreciated! > > > >> We are also trying to schedule a time slot with him for chatting to >> discuss some issues and he asked me about attendance on IETF96 this July: >> https://www.ietf.org/meeting/upcoming.html >> >> Best regards, >> Idel Pivnitskiy >> -- >> Twitter: @idelpivnitskiy >> GitHub: @idelpivnitskiy >> >> On Thu, Jun 9, 2016 at 8:12 AM, Matthias Wessendorf >> wrote: >> >>> Hi Idel, >>> >>> thanks a lot, this is good feedback on the status! >>> >>> On Thu, Jun 9, 2016 at 1:21 AM, Idel Pivnitskiy < >>> idel.pivnitskiy at gmail.com> wrote: >>> >>>> Community provides a good feedback and a lot of changes were merged. WG >>>> decided to postpone WGLC for a 2 weeks to resolve all issues. >>>> >>>> New discussion threads were initiated by me: >>>> >>>> 1. Define a list of headers, which must be transmitted to the UA: >>>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00578 >>>> 2. Different status codes for negative Push Message Receipts: >>>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00579 >>>> 3. When UA should send an acknowledgement? >>>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00580 >>>> 4. 414 Request-URL Too Long: >>>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00581 >>>> 5. Try to deliver receipt at least once, even if TTL expired: >>>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00582 >>>> 6. Delivery receipt may be sent before AS request delivery: >>>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00597 >>>> >>>> For some of them new GitHub issues was created. Also here is one issue >>>> without sending messages to the Web Push mailing list: >>>> >>>> Prefer: wait=0 for Receiving Push Message Receipts: >>>> https://github.com/webpush-wg/webpush-protocol/issues/113 >>>> >>>> Best regards, >>>> Idel Pivnitskiy >>>> -- >>>> Twitter: @idelpivnitskiy >>>> GitHub: @idelpivnitskiy >>>> >>>> On Tue, Jun 7, 2016 at 7:03 AM, Daniel Bevenius < >>>> daniel.bevenius at gmail.com> wrote: >>>> >>>>> > Daniel, could you review the current draft too, please? My >>>>> suggestion will be to read editor's copy [2], instead of IETF page [3], >>>>> because they merged a few changes this week [4]. >>>>> I'll try to catch up on the spec this week (hard to find the spare >>>>> time to do this at the moment). >>>>> >>>>> >>>>> >>>>> On 3 June 2016 at 12:51, Idel Pivnitskiy >>>>> wrote: >>>>> >>>>>> Hi all, >>>>>> >>>>>> Looks like Web Push WG ready for the WGLC [1]. They gathers feedback >>>>>> as soon as possible. >>>>>> >>>>>> I've initiated a few thread: >>>>>> >>>>>> 1. >>>>>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00549 >>>>>> 2. >>>>>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00559 >>>>>> >>>>>> Also I want to ask them some questions about not clear parts of the >>>>>> draft for me. >>>>>> >>>>>> Daniel, could you review the current draft too, please? My suggestion >>>>>> will be to read editor's copy [2], instead of IETF page [3], because they >>>>>> merged a few changes this week [4]. >>>>>> >>>>>> [1] >>>>>> http://www.ietf.org/mail-archive/web/webpush/current/threads.html#00524 >>>>>> [2] https://webpush-wg.github.io/webpush-protocol/ >>>>>> [3] https://tools.ietf.org/html/draft-ietf-webpush-protocol-05 >>>>>> [4] https://github.com/webpush-wg/webpush-protocol/commits/master >>>>>> >>>>>> Best regards, >>>>>> Idel Pivnitskiy >>>>>> -- >>>>>> Twitter: @idelpivnitskiy >>>>>> GitHub: @idelpivnitskiy >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> >>> -- >>> Matthias Wessendorf >>> >>> blog: http://matthiaswessendorf.wordpress.com/ >>> twitter: http://twitter.com/mwessendorf >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> > > -- > Sent from Gmail Mobile > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160615/e49a3fea/attachment.html From michael at 410labs.com Wed Jun 15 15:06:16 2016 From: michael at 410labs.com (Michael Doo) Date: Wed, 15 Jun 2016 15:06:16 -0400 Subject: [aerogear-dev] Targeting iOS 10 Message-ID: Hello, With WWDC and the release of Xcode 8 beta, it's probably a good time to take a look at necessary changes to support iOS 10 (and maybe even Swift 2.3). This applies to all of the Aerogear iOS tools. For example, there seems to be a bug in the embedded web view flow of the OAuth2 library, but I haven't fully traced it yet. Best, Michael Doo 410 Labs -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160615/aa13ecc9/attachment.html From corinnekrych at gmail.com Thu Jun 16 01:08:22 2016 From: corinnekrych at gmail.com (Corinne Krych) Date: Thu, 16 Jun 2016 07:08:22 +0200 Subject: [aerogear-dev] Targeting iOS 10 In-Reply-To: References: Message-ID: +1 Yeap time to prepare for iOS10 On 15 June 2016 at 21:06, Michael Doo wrote: > Hello, > > With WWDC and the release of Xcode 8 beta, it's probably a good time to > take a look at necessary changes to support iOS 10 (and maybe even Swift > 2.3). This applies to all of the Aerogear iOS tools. For example, there > seems to be a bug in the embedded web view flow of the OAuth2 library, but > I haven't fully traced it yet. > > Best, > Michael Doo > 410 Labs > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160616/b1284125/attachment-0001.html From matzew at apache.org Thu Jun 16 07:53:23 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Thu, 16 Jun 2016 13:53:23 +0200 Subject: [aerogear-dev] AeroGear Cordova release Message-ID: Hi Erik, now that FCM got merged, can you tag and release the 3.0.0 bits ? -Matthias -- 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-dev/attachments/20160616/5aabacd7/attachment.html From edewit at redhat.com Thu Jun 16 15:01:24 2016 From: edewit at redhat.com (Erik Jan de Wit) Date: Thu, 16 Jun 2016 21:01:24 +0200 Subject: [aerogear-dev] AeroGear Cordova release In-Reply-To: References: Message-ID: yeah, let's do that On Thu, Jun 16, 2016 at 1:53 PM, Matthias Wessendorf wrote: > Hi Erik, > > now that FCM got merged, can you tag and release the 3.0.0 bits ? > > -Matthias > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160616/b8304fb7/attachment.html From matzew at apache.org Fri Jun 17 04:49:41 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Fri, 17 Jun 2016 10:49:41 +0200 Subject: [aerogear-dev] AeroGear Cordova release In-Reply-To: References: Message-ID: cool! On Thu, Jun 16, 2016 at 9:01 PM, Erik Jan de Wit wrote: > yeah, let's do that > > On Thu, Jun 16, 2016 at 1:53 PM, Matthias Wessendorf > wrote: > >> Hi Erik, >> >> now that FCM got merged, can you tag and release the 3.0.0 bits ? >> >> -Matthias >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Cheers, > Erik Jan > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160617/30c6ae1f/attachment.html From edewit at redhat.com Fri Jun 17 08:18:28 2016 From: edewit at redhat.com (Erik Jan de Wit) Date: Fri, 17 Jun 2016 14:18:28 +0200 Subject: [aerogear-dev] AeroGear Cordova release In-Reply-To: References: Message-ID: Hi, We are going to release another version of the aerogear push plugin, as always I've created a branch for you to test. The biggest change it the use of FCM for google so be sure to test it against a compatible UPS. Add the plugin with the following command: $> cordova plugin add https://github.com/aerogear/aerogear-cordova-push.git\#release-3.0.0 ? Other changes are: [image: Major] [image: Bug] AGCORDOVA-133 Library Dependencies Conflict With Every Other Plugin Requiring The Same [image: Major] [image: Tracker] AGCORDOVA-134 geting problem in cordova build [image: Major] [image: Feature Request] AGCORDOVA-138 Update Cordova-Android to use AGDROID 3.0.0 for GCM and InstanceID [image: Major] [image: Task] AGCORDOVA-140 AeroGear Cookbook Updates [image: Major] [image: Sub-task] AGCORDOVA-141 Push Hello World update [image: Major] [image: Feature Request] AGCORDOVA-145 Update Cordova-Android to use FCM enabled AGDroid On Fri, Jun 17, 2016 at 10:49 AM, Matthias Wessendorf wrote: > cool! > > On Thu, Jun 16, 2016 at 9:01 PM, Erik Jan de Wit > wrote: > >> yeah, let's do that >> >> On Thu, Jun 16, 2016 at 1:53 PM, Matthias Wessendorf >> wrote: >> >>> Hi Erik, >>> >>> now that FCM got merged, can you tag and release the 3.0.0 bits ? >>> >>> -Matthias >>> >>> -- >>> Matthias Wessendorf >>> >>> blog: http://matthiaswessendorf.wordpress.com/ >>> twitter: http://twitter.com/mwessendorf >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Cheers, >> Erik Jan >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160617/da14e0f1/attachment-0001.html From matzew at apache.org Fri Jun 17 09:14:30 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Fri, 17 Jun 2016 15:14:30 +0200 Subject: [aerogear-dev] AeroGear Cordova release In-Reply-To: References: Message-ID: +1 On Fri, Jun 17, 2016 at 2:18 PM, Erik Jan de Wit wrote: > Hi, > > We are going to release another version of the aerogear push plugin, as > always I've created a branch for you to test. The biggest change it the use > of FCM for google so be sure to test it against a compatible UPS. > > Add the plugin with the following command: > > $> cordova plugin add https://github.com/aerogear/aerogear-cordova-push.git\#release-3.0.0 > > ? > > Other changes are: > > [image: Major] [image: Bug] AGCORDOVA-133 > Library Dependencies > Conflict With Every Other Plugin Requiring The Same > > > [image: Major] [image: Tracker] AGCORDOVA-134 > geting problem in cordova > build > > [image: Major] [image: Feature Request] AGCORDOVA-138 > Update Cordova-Android to > use AGDROID 3.0.0 for GCM and InstanceID > > > > [image: Major] [image: Task] AGCORDOVA-140 > AeroGear Cookbook Updates > > > > [image: Major] [image: Sub-task] AGCORDOVA-141 > Push Hello World update > > > > [image: Major] [image: Feature Request] AGCORDOVA-145 > Update Cordova-Android to > use FCM enabled AGDroid > > On Fri, Jun 17, 2016 at 10:49 AM, Matthias Wessendorf > wrote: > >> cool! >> >> On Thu, Jun 16, 2016 at 9:01 PM, Erik Jan de Wit >> wrote: >> >>> yeah, let's do that >>> >>> On Thu, Jun 16, 2016 at 1:53 PM, Matthias Wessendorf >>> wrote: >>> >>>> Hi Erik, >>>> >>>> now that FCM got merged, can you tag and release the 3.0.0 bits ? >>>> >>>> -Matthias >>>> >>>> -- >>>> Matthias Wessendorf >>>> >>>> blog: http://matthiaswessendorf.wordpress.com/ >>>> twitter: http://twitter.com/mwessendorf >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> >>> -- >>> Cheers, >>> Erik Jan >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Cheers, > Erik Jan > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160617/44f36457/attachment.html From matzew at apache.org Sat Jun 18 09:17:23 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Sat, 18 Jun 2016 15:17:23 +0200 Subject: [aerogear-dev] FCM: Cordova/Android bug ? Message-ID: Hi, when I launch a fresh and clean Cordova app (I am unable to reproduce this on our native Android HelloWorld), and open it the first time for registration, I am receiving a 400 status code from the server. Uninstalling the app, and launching it again, show the the problem again, ONLY on Cordova... This means either the deviceToken from Android is null or invalid (according to the pattern): https://github.com/aerogear/aerogear-unifiedpush-server/blob/1.1.x-dev/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L166-L170 Doing some debugging, on the server, I see the provided token is actually null. Is there a race condition or so on the client, for the initial launch of the app ? I added some logging on the client (see [1]), and indeed, it looks like, on Cordova, it is actually null: https://gist.github.com/matzew/e66fa3e2bda6c4dd4655fbe5d63ed755#file-gistfile1-txt-L12 Now... a few lines above... I see 'outdated' c2dm packages/permissions, and a GCM: "Missmatched messenger", it looks like something is still not correct. Any thoughts ? -Matthias [1] https://github.com/matzew/aerogear-android-push/commit/1fa6aad53da4e1b9c44c59edd3086025b32a12d5 -- 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-dev/attachments/20160618/6ccb16bc/attachment-0001.html From matzew at apache.org Sun Jun 19 14:39:12 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Sun, 19 Jun 2016 20:39:12 +0200 Subject: [aerogear-dev] FCM: Cordova/Android bug ? In-Reply-To: References: Message-ID: Looking at the JavaDoc for the getToken(): https://developers.google.com/android/reference/com/google/firebase/iid/FirebaseInstanceId.html#public-methods "the master token or null if the token is not yet available" looks like on the android lib we should not have it return null ? On Sat, Jun 18, 2016 at 3:17 PM, Matthias Wessendorf wrote: > Hi, > > when I launch a fresh and clean Cordova app (I am unable to reproduce this > on our native Android HelloWorld), and open it the first time for > registration, I am receiving a 400 status code from the server. > > Uninstalling the app, and launching it again, show the the problem again, > ONLY on Cordova... > > This means either the deviceToken from Android is null or invalid > (according to the pattern): > > https://github.com/aerogear/aerogear-unifiedpush-server/blob/1.1.x-dev/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L166-L170 > > Doing some debugging, on the server, I see the provided token is actually > null. > > Is there a race condition or so on the client, for the initial launch of > the app ? > > I added some logging on the client (see [1]), and indeed, it looks like, > on Cordova, it is actually null: > > https://gist.github.com/matzew/e66fa3e2bda6c4dd4655fbe5d63ed755#file-gistfile1-txt-L12 > > Now... a few lines above... I see 'outdated' c2dm packages/permissions, > and a GCM: "Missmatched messenger", it looks like something is still not > correct. > > Any thoughts ? > > -Matthias > > [1] > https://github.com/matzew/aerogear-android-push/commit/1fa6aad53da4e1b9c44c59edd3086025b32a12d5 > > -- > 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-dev/attachments/20160619/058d25a5/attachment.html From matzew at apache.org Mon Jun 20 02:49:34 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 20 Jun 2016 08:49:34 +0200 Subject: [aerogear-dev] AeroGear Cordova release In-Reply-To: References: Message-ID: Actually, see other thread. -1 on releasing On Fri, Jun 17, 2016 at 3:14 PM, Matthias Wessendorf wrote: > +1 > > On Fri, Jun 17, 2016 at 2:18 PM, Erik Jan de Wit > wrote: > >> Hi, >> >> We are going to release another version of the aerogear push plugin, as >> always I've created a branch for you to test. The biggest change it the use >> of FCM for google so be sure to test it against a compatible UPS. >> >> Add the plugin with the following command: >> >> $> cordova plugin add https://github.com/aerogear/aerogear-cordova-push.git\#release-3.0.0 >> >> ? >> >> Other changes are: >> >> [image: Major] [image: Bug] AGCORDOVA-133 >> Library Dependencies >> Conflict With Every Other Plugin Requiring The Same >> >> >> [image: Major] [image: Tracker] AGCORDOVA-134 >> geting problem in >> cordova build >> >> [image: Major] [image: Feature Request] AGCORDOVA-138 >> Update Cordova-Android >> to use AGDROID 3.0.0 for GCM and InstanceID >> >> >> >> [image: Major] [image: Task] AGCORDOVA-140 >> AeroGear Cookbook Updates >> >> >> >> [image: Major] [image: Sub-task] AGCORDOVA-141 >> Push Hello World update >> >> >> >> [image: Major] [image: Feature Request] AGCORDOVA-145 >> Update Cordova-Android >> to use FCM enabled AGDroid >> >> >> On Fri, Jun 17, 2016 at 10:49 AM, Matthias Wessendorf >> wrote: >> >>> cool! >>> >>> On Thu, Jun 16, 2016 at 9:01 PM, Erik Jan de Wit >>> wrote: >>> >>>> yeah, let's do that >>>> >>>> On Thu, Jun 16, 2016 at 1:53 PM, Matthias Wessendorf >>> > wrote: >>>> >>>>> Hi Erik, >>>>> >>>>> now that FCM got merged, can you tag and release the 3.0.0 bits ? >>>>> >>>>> -Matthias >>>>> >>>>> -- >>>>> Matthias Wessendorf >>>>> >>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>> twitter: http://twitter.com/mwessendorf >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> >>>> -- >>>> Cheers, >>>> Erik Jan >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> >>> -- >>> Matthias Wessendorf >>> >>> blog: http://matthiaswessendorf.wordpress.com/ >>> twitter: http://twitter.com/mwessendorf >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Cheers, >> Erik Jan >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > 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-dev/attachments/20160620/40b44db5/attachment-0001.html From matzew at apache.org Mon Jun 20 03:06:31 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 20 Jun 2016 09:06:31 +0200 Subject: [aerogear-dev] FCM: Cordova/Android bug ? In-Reply-To: References: Message-ID: I looked here: https://developers.google.com/cloud-messaging/android/android-migrate-fcm#remove_registration It says that we no longer need, but this: https://github.com/aerogear/aerogear-android-push/blob/3.0.1/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/gcm/AeroGearGCMPushRegistrar.java#L144-L148 was replace with explicit FCM getToken() call: https://github.com/aerogear/aerogear-android-push/blob/4.0.0/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/fcm/AeroGearFCMPushRegistrar.java#L143-L147 I think I am a bit over asked here, on the Android internals... Also, looks like we are not the only ones, seeing that problem :) http://stackoverflow.com/questions/37836383/android-firebase-token-is-null-on-first-run On Sun, Jun 19, 2016 at 8:39 PM, Matthias Wessendorf wrote: > Looking at the JavaDoc for the getToken(): > > https://developers.google.com/android/reference/com/google/firebase/iid/FirebaseInstanceId.html#public-methods > > "the master token or null if the token is not yet available" > > looks like on the android lib we should not have it return null ? > > On Sat, Jun 18, 2016 at 3:17 PM, Matthias Wessendorf > wrote: > >> Hi, >> >> when I launch a fresh and clean Cordova app (I am unable to reproduce >> this on our native Android HelloWorld), and open it the first time for >> registration, I am receiving a 400 status code from the server. >> >> Uninstalling the app, and launching it again, show the the problem again, >> ONLY on Cordova... >> >> This means either the deviceToken from Android is null or invalid >> (according to the pattern): >> >> https://github.com/aerogear/aerogear-unifiedpush-server/blob/1.1.x-dev/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L166-L170 >> >> Doing some debugging, on the server, I see the provided token is actually >> null. >> >> Is there a race condition or so on the client, for the initial launch of >> the app ? >> >> I added some logging on the client (see [1]), and indeed, it looks like, >> on Cordova, it is actually null: >> >> https://gist.github.com/matzew/e66fa3e2bda6c4dd4655fbe5d63ed755#file-gistfile1-txt-L12 >> >> Now... a few lines above... I see 'outdated' c2dm packages/permissions, >> and a GCM: "Missmatched messenger", it looks like something is still not >> correct. >> >> Any thoughts ? >> >> -Matthias >> >> [1] >> https://github.com/matzew/aerogear-android-push/commit/1fa6aad53da4e1b9c44c59edd3086025b32a12d5 >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> > > > > -- > 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-dev/attachments/20160620/890fb066/attachment.html From jusanche at redhat.com Mon Jun 20 03:46:09 2016 From: jusanche at redhat.com (Julio Cesar Sanchez Hernandez) Date: Mon, 20 Jun 2016 09:46:09 +0200 Subject: [aerogear-dev] FCM: Cordova/Android bug ? In-Reply-To: References: Message-ID: Yes, getToken will return null until onTokenRefresh is called the first time when it gets the real value. On Mon, Jun 20, 2016 at 9:06 AM, Matthias Wessendorf wrote: > I looked here: > > https://developers.google.com/cloud-messaging/android/android-migrate-fcm#remove_registration > > It says that we no longer need, but this: > > https://github.com/aerogear/aerogear-android-push/blob/3.0.1/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/gcm/AeroGearGCMPushRegistrar.java#L144-L148 > > was replace with explicit FCM getToken() call: > > https://github.com/aerogear/aerogear-android-push/blob/4.0.0/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/fcm/AeroGearFCMPushRegistrar.java#L143-L147 > > I think I am a bit over asked here, on the Android internals... > > Also, looks like we are not the only ones, seeing that problem :) > > http://stackoverflow.com/questions/37836383/android-firebase-token-is-null-on-first-run > > > > > > On Sun, Jun 19, 2016 at 8:39 PM, Matthias Wessendorf > wrote: > >> Looking at the JavaDoc for the getToken(): >> >> https://developers.google.com/android/reference/com/google/firebase/iid/FirebaseInstanceId.html#public-methods >> >> "the master token or null if the token is not yet available" >> >> looks like on the android lib we should not have it return null ? >> >> On Sat, Jun 18, 2016 at 3:17 PM, Matthias Wessendorf >> wrote: >> >>> Hi, >>> >>> when I launch a fresh and clean Cordova app (I am unable to reproduce >>> this on our native Android HelloWorld), and open it the first time for >>> registration, I am receiving a 400 status code from the server. >>> >>> Uninstalling the app, and launching it again, show the the problem >>> again, ONLY on Cordova... >>> >>> This means either the deviceToken from Android is null or invalid >>> (according to the pattern): >>> >>> https://github.com/aerogear/aerogear-unifiedpush-server/blob/1.1.x-dev/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L166-L170 >>> >>> Doing some debugging, on the server, I see the provided token is >>> actually null. >>> >>> Is there a race condition or so on the client, for the initial launch of >>> the app ? >>> >>> I added some logging on the client (see [1]), and indeed, it looks like, >>> on Cordova, it is actually null: >>> >>> https://gist.github.com/matzew/e66fa3e2bda6c4dd4655fbe5d63ed755#file-gistfile1-txt-L12 >>> >>> Now... a few lines above... I see 'outdated' c2dm packages/permissions, >>> and a GCM: "Missmatched messenger", it looks like something is still not >>> correct. >>> >>> Any thoughts ? >>> >>> -Matthias >>> >>> [1] >>> https://github.com/matzew/aerogear-android-push/commit/1fa6aad53da4e1b9c44c59edd3086025b32a12d5 >>> >>> -- >>> Matthias Wessendorf >>> >>> blog: http://matthiaswessendorf.wordpress.com/ >>> twitter: http://twitter.com/mwessendorf >>> >> >> >> >> -- >> 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-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160620/271a02e0/attachment.html From matzew at apache.org Mon Jun 20 04:02:52 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 20 Jun 2016 10:02:52 +0200 Subject: [aerogear-dev] FCM: Cordova/Android bug ? In-Reply-To: References: Message-ID: Ok, so IMO that sounds like a bug in the Android lib, so the UPS registration should be fired after 'onTokenRefresh' is called Also, cordova question. Do we need to define our "UnifiedPushInstanceIDListenerService" in the plugin's config section for the manifest? Or is this, inside the AGPush lib good enough ? https://github.com/aerogear/aerogear-android-push/blob/master/aerogear-android-push/src/main/AndroidManifest.xml#L24-L28 Thanks, Matthias On Mon, Jun 20, 2016 at 9:46 AM, Julio Cesar Sanchez Hernandez < jusanche at redhat.com> wrote: > Yes, getToken will return null until onTokenRefresh is called the first > time when it gets the real value. > > On Mon, Jun 20, 2016 at 9:06 AM, Matthias Wessendorf > wrote: > >> I looked here: >> >> https://developers.google.com/cloud-messaging/android/android-migrate-fcm#remove_registration >> >> It says that we no longer need, but this: >> >> https://github.com/aerogear/aerogear-android-push/blob/3.0.1/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/gcm/AeroGearGCMPushRegistrar.java#L144-L148 >> >> was replace with explicit FCM getToken() call: >> >> https://github.com/aerogear/aerogear-android-push/blob/4.0.0/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/fcm/AeroGearFCMPushRegistrar.java#L143-L147 >> >> I think I am a bit over asked here, on the Android internals... >> >> Also, looks like we are not the only ones, seeing that problem :) >> >> http://stackoverflow.com/questions/37836383/android-firebase-token-is-null-on-first-run >> >> >> >> >> >> On Sun, Jun 19, 2016 at 8:39 PM, Matthias Wessendorf >> wrote: >> >>> Looking at the JavaDoc for the getToken(): >>> >>> https://developers.google.com/android/reference/com/google/firebase/iid/FirebaseInstanceId.html#public-methods >>> >>> "the master token or null if the token is not yet available" >>> >>> looks like on the android lib we should not have it return null ? >>> >>> On Sat, Jun 18, 2016 at 3:17 PM, Matthias Wessendorf >>> wrote: >>> >>>> Hi, >>>> >>>> when I launch a fresh and clean Cordova app (I am unable to reproduce >>>> this on our native Android HelloWorld), and open it the first time for >>>> registration, I am receiving a 400 status code from the server. >>>> >>>> Uninstalling the app, and launching it again, show the the problem >>>> again, ONLY on Cordova... >>>> >>>> This means either the deviceToken from Android is null or invalid >>>> (according to the pattern): >>>> >>>> https://github.com/aerogear/aerogear-unifiedpush-server/blob/1.1.x-dev/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L166-L170 >>>> >>>> Doing some debugging, on the server, I see the provided token is >>>> actually null. >>>> >>>> Is there a race condition or so on the client, for the initial launch >>>> of the app ? >>>> >>>> I added some logging on the client (see [1]), and indeed, it looks >>>> like, on Cordova, it is actually null: >>>> >>>> https://gist.github.com/matzew/e66fa3e2bda6c4dd4655fbe5d63ed755#file-gistfile1-txt-L12 >>>> >>>> Now... a few lines above... I see 'outdated' c2dm packages/permissions, >>>> and a GCM: "Missmatched messenger", it looks like something is still not >>>> correct. >>>> >>>> Any thoughts ? >>>> >>>> -Matthias >>>> >>>> [1] >>>> https://github.com/matzew/aerogear-android-push/commit/1fa6aad53da4e1b9c44c59edd3086025b32a12d5 >>>> >>>> -- >>>> Matthias Wessendorf >>>> >>>> blog: http://matthiaswessendorf.wordpress.com/ >>>> twitter: http://twitter.com/mwessendorf >>>> >>> >>> >>> >>> -- >>> 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-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160620/bbf3e350/attachment-0001.html From jusanche at redhat.com Mon Jun 20 04:28:04 2016 From: jusanche at redhat.com (Julio Cesar Sanchez Hernandez) Date: Mon, 20 Jun 2016 10:28:04 +0200 Subject: [aerogear-dev] FCM: Cordova/Android bug ? In-Reply-To: References: Message-ID: I think that should be enough, if the plugin uses the AGPush lib and the lib has that on the AndroidManifest, it should be merged with the app AndroidManifest. In the end a Cordova app is an Android app, it should work the same way the Android app works On Mon, Jun 20, 2016 at 10:02 AM, Matthias Wessendorf wrote: > Ok, so IMO that sounds like a bug in the Android lib, so the UPS > registration should be fired after 'onTokenRefresh' is called > > Also, cordova question. Do we need to define our > "UnifiedPushInstanceIDListenerService" in the plugin's config section for > the manifest? Or is this, inside the AGPush lib good enough ? > > https://github.com/aerogear/aerogear-android-push/blob/master/aerogear-android-push/src/main/AndroidManifest.xml#L24-L28 > > Thanks, > Matthias > > On Mon, Jun 20, 2016 at 9:46 AM, Julio Cesar Sanchez Hernandez < > jusanche at redhat.com> wrote: > >> Yes, getToken will return null until onTokenRefresh is called the first >> time when it gets the real value. >> >> On Mon, Jun 20, 2016 at 9:06 AM, Matthias Wessendorf >> wrote: >> >>> I looked here: >>> >>> https://developers.google.com/cloud-messaging/android/android-migrate-fcm#remove_registration >>> >>> It says that we no longer need, but this: >>> >>> https://github.com/aerogear/aerogear-android-push/blob/3.0.1/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/gcm/AeroGearGCMPushRegistrar.java#L144-L148 >>> >>> was replace with explicit FCM getToken() call: >>> >>> https://github.com/aerogear/aerogear-android-push/blob/4.0.0/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/fcm/AeroGearFCMPushRegistrar.java#L143-L147 >>> >>> I think I am a bit over asked here, on the Android internals... >>> >>> Also, looks like we are not the only ones, seeing that problem :) >>> >>> http://stackoverflow.com/questions/37836383/android-firebase-token-is-null-on-first-run >>> >>> >>> >>> >>> >>> On Sun, Jun 19, 2016 at 8:39 PM, Matthias Wessendorf >>> wrote: >>> >>>> Looking at the JavaDoc for the getToken(): >>>> >>>> https://developers.google.com/android/reference/com/google/firebase/iid/FirebaseInstanceId.html#public-methods >>>> >>>> "the master token or null if the token is not yet available" >>>> >>>> looks like on the android lib we should not have it return null ? >>>> >>>> On Sat, Jun 18, 2016 at 3:17 PM, Matthias Wessendorf >>> > wrote: >>>> >>>>> Hi, >>>>> >>>>> when I launch a fresh and clean Cordova app (I am unable to reproduce >>>>> this on our native Android HelloWorld), and open it the first time for >>>>> registration, I am receiving a 400 status code from the server. >>>>> >>>>> Uninstalling the app, and launching it again, show the the problem >>>>> again, ONLY on Cordova... >>>>> >>>>> This means either the deviceToken from Android is null or invalid >>>>> (according to the pattern): >>>>> >>>>> https://github.com/aerogear/aerogear-unifiedpush-server/blob/1.1.x-dev/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L166-L170 >>>>> >>>>> Doing some debugging, on the server, I see the provided token is >>>>> actually null. >>>>> >>>>> Is there a race condition or so on the client, for the initial launch >>>>> of the app ? >>>>> >>>>> I added some logging on the client (see [1]), and indeed, it looks >>>>> like, on Cordova, it is actually null: >>>>> >>>>> https://gist.github.com/matzew/e66fa3e2bda6c4dd4655fbe5d63ed755#file-gistfile1-txt-L12 >>>>> >>>>> Now... a few lines above... I see 'outdated' c2dm >>>>> packages/permissions, and a GCM: "Missmatched messenger", it looks like >>>>> something is still not correct. >>>>> >>>>> Any thoughts ? >>>>> >>>>> -Matthias >>>>> >>>>> [1] >>>>> https://github.com/matzew/aerogear-android-push/commit/1fa6aad53da4e1b9c44c59edd3086025b32a12d5 >>>>> >>>>> -- >>>>> Matthias Wessendorf >>>>> >>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>> twitter: http://twitter.com/mwessendorf >>>>> >>>> >>>> >>>> >>>> -- >>>> 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-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160620/c7aa75af/attachment.html From omatskiv at redhat.com Mon Jun 20 04:40:18 2016 From: omatskiv at redhat.com (Oleg Matskiv) Date: Mon, 20 Jun 2016 10:40:18 +0200 Subject: [aerogear-dev] FCM: Cordova/Android bug ? In-Reply-To: References: Message-ID: Hi, I had very similar problem with native app (unified-push-helloworld), 400 code on first registration. I'll check getToken() return value to verify that its actually same issue. On Mon, Jun 20, 2016 at 10:28 AM, Julio Cesar Sanchez Hernandez < jusanche at redhat.com> wrote: > I think that should be enough, if the plugin uses the AGPush lib and the > lib has that on the AndroidManifest, it should be merged with the app > AndroidManifest. In the end a Cordova app is an Android app, it should work > the same way the Android app works > > On Mon, Jun 20, 2016 at 10:02 AM, Matthias Wessendorf > wrote: > >> Ok, so IMO that sounds like a bug in the Android lib, so the UPS >> registration should be fired after 'onTokenRefresh' is called >> >> Also, cordova question. Do we need to define our >> "UnifiedPushInstanceIDListenerService" in the plugin's config section for >> the manifest? Or is this, inside the AGPush lib good enough ? >> >> https://github.com/aerogear/aerogear-android-push/blob/master/aerogear-android-push/src/main/AndroidManifest.xml#L24-L28 >> >> Thanks, >> Matthias >> >> On Mon, Jun 20, 2016 at 9:46 AM, Julio Cesar Sanchez Hernandez < >> jusanche at redhat.com> wrote: >> >>> Yes, getToken will return null until onTokenRefresh is called the first >>> time when it gets the real value. >>> >>> On Mon, Jun 20, 2016 at 9:06 AM, Matthias Wessendorf >>> wrote: >>> >>>> I looked here: >>>> >>>> https://developers.google.com/cloud-messaging/android/android-migrate-fcm#remove_registration >>>> >>>> It says that we no longer need, but this: >>>> >>>> https://github.com/aerogear/aerogear-android-push/blob/3.0.1/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/gcm/AeroGearGCMPushRegistrar.java#L144-L148 >>>> >>>> was replace with explicit FCM getToken() call: >>>> >>>> https://github.com/aerogear/aerogear-android-push/blob/4.0.0/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/fcm/AeroGearFCMPushRegistrar.java#L143-L147 >>>> >>>> I think I am a bit over asked here, on the Android internals... >>>> >>>> Also, looks like we are not the only ones, seeing that problem :) >>>> >>>> http://stackoverflow.com/questions/37836383/android-firebase-token-is-null-on-first-run >>>> >>>> >>>> >>>> >>>> >>>> On Sun, Jun 19, 2016 at 8:39 PM, Matthias Wessendorf >>> > wrote: >>>> >>>>> Looking at the JavaDoc for the getToken(): >>>>> >>>>> https://developers.google.com/android/reference/com/google/firebase/iid/FirebaseInstanceId.html#public-methods >>>>> >>>>> "the master token or null if the token is not yet available" >>>>> >>>>> looks like on the android lib we should not have it return null ? >>>>> >>>>> On Sat, Jun 18, 2016 at 3:17 PM, Matthias Wessendorf < >>>>> matzew at apache.org> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> when I launch a fresh and clean Cordova app (I am unable to reproduce >>>>>> this on our native Android HelloWorld), and open it the first time for >>>>>> registration, I am receiving a 400 status code from the server. >>>>>> >>>>>> Uninstalling the app, and launching it again, show the the problem >>>>>> again, ONLY on Cordova... >>>>>> >>>>>> This means either the deviceToken from Android is null or invalid >>>>>> (according to the pattern): >>>>>> >>>>>> https://github.com/aerogear/aerogear-unifiedpush-server/blob/1.1.x-dev/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L166-L170 >>>>>> >>>>>> Doing some debugging, on the server, I see the provided token is >>>>>> actually null. >>>>>> >>>>>> Is there a race condition or so on the client, for the initial launch >>>>>> of the app ? >>>>>> >>>>>> I added some logging on the client (see [1]), and indeed, it looks >>>>>> like, on Cordova, it is actually null: >>>>>> >>>>>> https://gist.github.com/matzew/e66fa3e2bda6c4dd4655fbe5d63ed755#file-gistfile1-txt-L12 >>>>>> >>>>>> Now... a few lines above... I see 'outdated' c2dm >>>>>> packages/permissions, and a GCM: "Missmatched messenger", it looks like >>>>>> something is still not correct. >>>>>> >>>>>> Any thoughts ? >>>>>> >>>>>> -Matthias >>>>>> >>>>>> [1] >>>>>> https://github.com/matzew/aerogear-android-push/commit/1fa6aad53da4e1b9c44c59edd3086025b32a12d5 >>>>>> >>>>>> -- >>>>>> Matthias Wessendorf >>>>>> >>>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>>> twitter: http://twitter.com/mwessendorf >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> 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-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Oleg Matskiv Associate Quality Engineer Red Hat Mobile Application Platform omatskiv at redhat.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160620/b6952eef/attachment-0001.html From omatskiv at redhat.com Mon Jun 20 05:01:30 2016 From: omatskiv at redhat.com (Oleg Matskiv) Date: Mon, 20 Jun 2016 11:01:30 +0200 Subject: [aerogear-dev] FCM: Cordova/Android bug ? In-Reply-To: References: Message-ID: And instanceId.getToken() indeed returned null on first registration. So native unified-push-helloworld app [1] can be used to reproduce this issue. [1] https://github.com/jboss-mobile/unified-push-helloworld On Mon, Jun 20, 2016 at 10:40 AM, Oleg Matskiv wrote: > Hi, > > I had very similar problem with native app (unified-push-helloworld), 400 > code on first registration. > I'll check getToken() return value to verify that its actually same issue. > > On Mon, Jun 20, 2016 at 10:28 AM, Julio Cesar Sanchez Hernandez < > jusanche at redhat.com> wrote: > >> I think that should be enough, if the plugin uses the AGPush lib and the >> lib has that on the AndroidManifest, it should be merged with the app >> AndroidManifest. In the end a Cordova app is an Android app, it should work >> the same way the Android app works >> >> On Mon, Jun 20, 2016 at 10:02 AM, Matthias Wessendorf >> wrote: >> >>> Ok, so IMO that sounds like a bug in the Android lib, so the UPS >>> registration should be fired after 'onTokenRefresh' is called >>> >>> Also, cordova question. Do we need to define our >>> "UnifiedPushInstanceIDListenerService" in the plugin's config section for >>> the manifest? Or is this, inside the AGPush lib good enough ? >>> >>> https://github.com/aerogear/aerogear-android-push/blob/master/aerogear-android-push/src/main/AndroidManifest.xml#L24-L28 >>> >>> Thanks, >>> Matthias >>> >>> On Mon, Jun 20, 2016 at 9:46 AM, Julio Cesar Sanchez Hernandez < >>> jusanche at redhat.com> wrote: >>> >>>> Yes, getToken will return null until onTokenRefresh is called the first >>>> time when it gets the real value. >>>> >>>> On Mon, Jun 20, 2016 at 9:06 AM, Matthias Wessendorf >>> > wrote: >>>> >>>>> I looked here: >>>>> >>>>> https://developers.google.com/cloud-messaging/android/android-migrate-fcm#remove_registration >>>>> >>>>> It says that we no longer need, but this: >>>>> >>>>> https://github.com/aerogear/aerogear-android-push/blob/3.0.1/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/gcm/AeroGearGCMPushRegistrar.java#L144-L148 >>>>> >>>>> was replace with explicit FCM getToken() call: >>>>> >>>>> https://github.com/aerogear/aerogear-android-push/blob/4.0.0/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/fcm/AeroGearFCMPushRegistrar.java#L143-L147 >>>>> >>>>> I think I am a bit over asked here, on the Android internals... >>>>> >>>>> Also, looks like we are not the only ones, seeing that problem :) >>>>> >>>>> http://stackoverflow.com/questions/37836383/android-firebase-token-is-null-on-first-run >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Sun, Jun 19, 2016 at 8:39 PM, Matthias Wessendorf < >>>>> matzew at apache.org> wrote: >>>>> >>>>>> Looking at the JavaDoc for the getToken(): >>>>>> >>>>>> https://developers.google.com/android/reference/com/google/firebase/iid/FirebaseInstanceId.html#public-methods >>>>>> >>>>>> "the master token or null if the token is not yet available" >>>>>> >>>>>> looks like on the android lib we should not have it return null ? >>>>>> >>>>>> On Sat, Jun 18, 2016 at 3:17 PM, Matthias Wessendorf < >>>>>> matzew at apache.org> wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> when I launch a fresh and clean Cordova app (I am unable to >>>>>>> reproduce this on our native Android HelloWorld), and open it the first >>>>>>> time for registration, I am receiving a 400 status code from the server. >>>>>>> >>>>>>> Uninstalling the app, and launching it again, show the the problem >>>>>>> again, ONLY on Cordova... >>>>>>> >>>>>>> This means either the deviceToken from Android is null or invalid >>>>>>> (according to the pattern): >>>>>>> >>>>>>> https://github.com/aerogear/aerogear-unifiedpush-server/blob/1.1.x-dev/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L166-L170 >>>>>>> >>>>>>> Doing some debugging, on the server, I see the provided token is >>>>>>> actually null. >>>>>>> >>>>>>> Is there a race condition or so on the client, for the initial >>>>>>> launch of the app ? >>>>>>> >>>>>>> I added some logging on the client (see [1]), and indeed, it looks >>>>>>> like, on Cordova, it is actually null: >>>>>>> >>>>>>> https://gist.github.com/matzew/e66fa3e2bda6c4dd4655fbe5d63ed755#file-gistfile1-txt-L12 >>>>>>> >>>>>>> Now... a few lines above... I see 'outdated' c2dm >>>>>>> packages/permissions, and a GCM: "Missmatched messenger", it looks like >>>>>>> something is still not correct. >>>>>>> >>>>>>> Any thoughts ? >>>>>>> >>>>>>> -Matthias >>>>>>> >>>>>>> [1] >>>>>>> https://github.com/matzew/aerogear-android-push/commit/1fa6aad53da4e1b9c44c59edd3086025b32a12d5 >>>>>>> >>>>>>> -- >>>>>>> Matthias Wessendorf >>>>>>> >>>>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>>>> twitter: http://twitter.com/mwessendorf >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> 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-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> >>> -- >>> Matthias Wessendorf >>> >>> blog: http://matthiaswessendorf.wordpress.com/ >>> twitter: http://twitter.com/mwessendorf >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Oleg Matskiv > Associate Quality Engineer > Red Hat Mobile Application Platform > omatskiv at redhat.com > -- Oleg Matskiv Associate Quality Engineer Red Hat Mobile Application Platform omatskiv at redhat.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160620/6748ac94/attachment.html From matzew at apache.org Mon Jun 20 07:27:43 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 20 Jun 2016 13:27:43 +0200 Subject: [aerogear-dev] FCM: Cordova/Android bug ? In-Reply-To: References: Message-ID: I have seen that with a native app now too. I will create a JIRA On Mon, Jun 20, 2016 at 11:01 AM, Oleg Matskiv wrote: > And instanceId.getToken() indeed returned null on first registration. > So native unified-push-helloworld app [1] can be used to reproduce this > issue. > > [1] https://github.com/jboss-mobile/unified-push-helloworld > > On Mon, Jun 20, 2016 at 10:40 AM, Oleg Matskiv > wrote: > >> Hi, >> >> I had very similar problem with native app (unified-push-helloworld), 400 >> code on first registration. >> I'll check getToken() return value to verify that its actually same issue. >> >> On Mon, Jun 20, 2016 at 10:28 AM, Julio Cesar Sanchez Hernandez < >> jusanche at redhat.com> wrote: >> >>> I think that should be enough, if the plugin uses the AGPush lib and the >>> lib has that on the AndroidManifest, it should be merged with the app >>> AndroidManifest. In the end a Cordova app is an Android app, it should work >>> the same way the Android app works >>> >>> On Mon, Jun 20, 2016 at 10:02 AM, Matthias Wessendorf >> > wrote: >>> >>>> Ok, so IMO that sounds like a bug in the Android lib, so the UPS >>>> registration should be fired after 'onTokenRefresh' is called >>>> >>>> Also, cordova question. Do we need to define our >>>> "UnifiedPushInstanceIDListenerService" in the plugin's config section for >>>> the manifest? Or is this, inside the AGPush lib good enough ? >>>> >>>> https://github.com/aerogear/aerogear-android-push/blob/master/aerogear-android-push/src/main/AndroidManifest.xml#L24-L28 >>>> >>>> Thanks, >>>> Matthias >>>> >>>> On Mon, Jun 20, 2016 at 9:46 AM, Julio Cesar Sanchez Hernandez < >>>> jusanche at redhat.com> wrote: >>>> >>>>> Yes, getToken will return null until onTokenRefresh is called the >>>>> first time when it gets the real value. >>>>> >>>>> On Mon, Jun 20, 2016 at 9:06 AM, Matthias Wessendorf < >>>>> matzew at apache.org> wrote: >>>>> >>>>>> I looked here: >>>>>> >>>>>> https://developers.google.com/cloud-messaging/android/android-migrate-fcm#remove_registration >>>>>> >>>>>> It says that we no longer need, but this: >>>>>> >>>>>> https://github.com/aerogear/aerogear-android-push/blob/3.0.1/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/gcm/AeroGearGCMPushRegistrar.java#L144-L148 >>>>>> >>>>>> was replace with explicit FCM getToken() call: >>>>>> >>>>>> https://github.com/aerogear/aerogear-android-push/blob/4.0.0/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/fcm/AeroGearFCMPushRegistrar.java#L143-L147 >>>>>> >>>>>> I think I am a bit over asked here, on the Android internals... >>>>>> >>>>>> Also, looks like we are not the only ones, seeing that problem :) >>>>>> >>>>>> http://stackoverflow.com/questions/37836383/android-firebase-token-is-null-on-first-run >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Sun, Jun 19, 2016 at 8:39 PM, Matthias Wessendorf < >>>>>> matzew at apache.org> wrote: >>>>>> >>>>>>> Looking at the JavaDoc for the getToken(): >>>>>>> >>>>>>> https://developers.google.com/android/reference/com/google/firebase/iid/FirebaseInstanceId.html#public-methods >>>>>>> >>>>>>> "the master token or null if the token is not yet available" >>>>>>> >>>>>>> looks like on the android lib we should not have it return null ? >>>>>>> >>>>>>> On Sat, Jun 18, 2016 at 3:17 PM, Matthias Wessendorf < >>>>>>> matzew at apache.org> wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> when I launch a fresh and clean Cordova app (I am unable to >>>>>>>> reproduce this on our native Android HelloWorld), and open it the first >>>>>>>> time for registration, I am receiving a 400 status code from the server. >>>>>>>> >>>>>>>> Uninstalling the app, and launching it again, show the the problem >>>>>>>> again, ONLY on Cordova... >>>>>>>> >>>>>>>> This means either the deviceToken from Android is null or invalid >>>>>>>> (according to the pattern): >>>>>>>> >>>>>>>> https://github.com/aerogear/aerogear-unifiedpush-server/blob/1.1.x-dev/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L166-L170 >>>>>>>> >>>>>>>> Doing some debugging, on the server, I see the provided token is >>>>>>>> actually null. >>>>>>>> >>>>>>>> Is there a race condition or so on the client, for the initial >>>>>>>> launch of the app ? >>>>>>>> >>>>>>>> I added some logging on the client (see [1]), and indeed, it looks >>>>>>>> like, on Cordova, it is actually null: >>>>>>>> >>>>>>>> https://gist.github.com/matzew/e66fa3e2bda6c4dd4655fbe5d63ed755#file-gistfile1-txt-L12 >>>>>>>> >>>>>>>> Now... a few lines above... I see 'outdated' c2dm >>>>>>>> packages/permissions, and a GCM: "Missmatched messenger", it looks like >>>>>>>> something is still not correct. >>>>>>>> >>>>>>>> Any thoughts ? >>>>>>>> >>>>>>>> -Matthias >>>>>>>> >>>>>>>> [1] >>>>>>>> https://github.com/matzew/aerogear-android-push/commit/1fa6aad53da4e1b9c44c59edd3086025b32a12d5 >>>>>>>> >>>>>>>> -- >>>>>>>> Matthias Wessendorf >>>>>>>> >>>>>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>>>>> twitter: http://twitter.com/mwessendorf >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> 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-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> >>>> -- >>>> Matthias Wessendorf >>>> >>>> blog: http://matthiaswessendorf.wordpress.com/ >>>> twitter: http://twitter.com/mwessendorf >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Oleg Matskiv >> Associate Quality Engineer >> Red Hat Mobile Application Platform >> omatskiv at redhat.com >> > > > > -- > Oleg Matskiv > Associate Quality Engineer > Red Hat Mobile Application Platform > omatskiv at redhat.com > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160620/dcc464cc/attachment-0001.html From matzew at apache.org Mon Jun 20 07:31:19 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 20 Jun 2016 13:31:19 +0200 Subject: [aerogear-dev] FCM: Cordova/Android bug ? In-Reply-To: References: Message-ID: https://issues.jboss.org/browse/AGDROID-560 On Mon, Jun 20, 2016 at 1:27 PM, Matthias Wessendorf wrote: > I have seen that with a native app now too. > > I will create a JIRA > > On Mon, Jun 20, 2016 at 11:01 AM, Oleg Matskiv > wrote: > >> And instanceId.getToken() indeed returned null on first registration. >> So native unified-push-helloworld app [1] can be used to reproduce this >> issue. >> >> [1] https://github.com/jboss-mobile/unified-push-helloworld >> >> On Mon, Jun 20, 2016 at 10:40 AM, Oleg Matskiv >> wrote: >> >>> Hi, >>> >>> I had very similar problem with native app (unified-push-helloworld), >>> 400 code on first registration. >>> I'll check getToken() return value to verify that its actually same >>> issue. >>> >>> On Mon, Jun 20, 2016 at 10:28 AM, Julio Cesar Sanchez Hernandez < >>> jusanche at redhat.com> wrote: >>> >>>> I think that should be enough, if the plugin uses the AGPush lib and >>>> the lib has that on the AndroidManifest, it should be merged with the app >>>> AndroidManifest. In the end a Cordova app is an Android app, it should work >>>> the same way the Android app works >>>> >>>> On Mon, Jun 20, 2016 at 10:02 AM, Matthias Wessendorf < >>>> matzew at apache.org> wrote: >>>> >>>>> Ok, so IMO that sounds like a bug in the Android lib, so the UPS >>>>> registration should be fired after 'onTokenRefresh' is called >>>>> >>>>> Also, cordova question. Do we need to define our >>>>> "UnifiedPushInstanceIDListenerService" in the plugin's config section for >>>>> the manifest? Or is this, inside the AGPush lib good enough ? >>>>> >>>>> https://github.com/aerogear/aerogear-android-push/blob/master/aerogear-android-push/src/main/AndroidManifest.xml#L24-L28 >>>>> >>>>> Thanks, >>>>> Matthias >>>>> >>>>> On Mon, Jun 20, 2016 at 9:46 AM, Julio Cesar Sanchez Hernandez < >>>>> jusanche at redhat.com> wrote: >>>>> >>>>>> Yes, getToken will return null until onTokenRefresh is called the >>>>>> first time when it gets the real value. >>>>>> >>>>>> On Mon, Jun 20, 2016 at 9:06 AM, Matthias Wessendorf < >>>>>> matzew at apache.org> wrote: >>>>>> >>>>>>> I looked here: >>>>>>> >>>>>>> https://developers.google.com/cloud-messaging/android/android-migrate-fcm#remove_registration >>>>>>> >>>>>>> It says that we no longer need, but this: >>>>>>> >>>>>>> https://github.com/aerogear/aerogear-android-push/blob/3.0.1/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/gcm/AeroGearGCMPushRegistrar.java#L144-L148 >>>>>>> >>>>>>> was replace with explicit FCM getToken() call: >>>>>>> >>>>>>> https://github.com/aerogear/aerogear-android-push/blob/4.0.0/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/fcm/AeroGearFCMPushRegistrar.java#L143-L147 >>>>>>> >>>>>>> I think I am a bit over asked here, on the Android internals... >>>>>>> >>>>>>> Also, looks like we are not the only ones, seeing that problem :) >>>>>>> >>>>>>> http://stackoverflow.com/questions/37836383/android-firebase-token-is-null-on-first-run >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Sun, Jun 19, 2016 at 8:39 PM, Matthias Wessendorf < >>>>>>> matzew at apache.org> wrote: >>>>>>> >>>>>>>> Looking at the JavaDoc for the getToken(): >>>>>>>> >>>>>>>> https://developers.google.com/android/reference/com/google/firebase/iid/FirebaseInstanceId.html#public-methods >>>>>>>> >>>>>>>> "the master token or null if the token is not yet available" >>>>>>>> >>>>>>>> looks like on the android lib we should not have it return null ? >>>>>>>> >>>>>>>> On Sat, Jun 18, 2016 at 3:17 PM, Matthias Wessendorf < >>>>>>>> matzew at apache.org> wrote: >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> when I launch a fresh and clean Cordova app (I am unable to >>>>>>>>> reproduce this on our native Android HelloWorld), and open it the first >>>>>>>>> time for registration, I am receiving a 400 status code from the server. >>>>>>>>> >>>>>>>>> Uninstalling the app, and launching it again, show the the problem >>>>>>>>> again, ONLY on Cordova... >>>>>>>>> >>>>>>>>> This means either the deviceToken from Android is null or invalid >>>>>>>>> (according to the pattern): >>>>>>>>> >>>>>>>>> https://github.com/aerogear/aerogear-unifiedpush-server/blob/1.1.x-dev/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L166-L170 >>>>>>>>> >>>>>>>>> Doing some debugging, on the server, I see the provided token is >>>>>>>>> actually null. >>>>>>>>> >>>>>>>>> Is there a race condition or so on the client, for the initial >>>>>>>>> launch of the app ? >>>>>>>>> >>>>>>>>> I added some logging on the client (see [1]), and indeed, it looks >>>>>>>>> like, on Cordova, it is actually null: >>>>>>>>> >>>>>>>>> https://gist.github.com/matzew/e66fa3e2bda6c4dd4655fbe5d63ed755#file-gistfile1-txt-L12 >>>>>>>>> >>>>>>>>> Now... a few lines above... I see 'outdated' c2dm >>>>>>>>> packages/permissions, and a GCM: "Missmatched messenger", it looks like >>>>>>>>> something is still not correct. >>>>>>>>> >>>>>>>>> Any thoughts ? >>>>>>>>> >>>>>>>>> -Matthias >>>>>>>>> >>>>>>>>> [1] >>>>>>>>> https://github.com/matzew/aerogear-android-push/commit/1fa6aad53da4e1b9c44c59edd3086025b32a12d5 >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Matthias Wessendorf >>>>>>>>> >>>>>>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>>>>>> twitter: http://twitter.com/mwessendorf >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> 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-dev mailing list >>>>>>> aerogear-dev at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Matthias Wessendorf >>>>> >>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>> twitter: http://twitter.com/mwessendorf >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> >>> -- >>> Oleg Matskiv >>> Associate Quality Engineer >>> Red Hat Mobile Application Platform >>> omatskiv at redhat.com >>> >> >> >> >> -- >> Oleg Matskiv >> Associate Quality Engineer >> Red Hat Mobile Application Platform >> omatskiv at redhat.com >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > 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-dev/attachments/20160620/d0113b63/attachment.html From matzew at apache.org Mon Jun 20 11:57:02 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 20 Jun 2016 17:57:02 +0200 Subject: [aerogear-dev] AGDroid-Push:4.0.1 release (was Re: FCM: Cordova/Android bug ?) Message-ID: Hello, this little bug was fixed, and a 4.0.1 will hit Maven Central soon. The staging repo for the update is here: https://repository.jboss.org/nexus/content/repositories/jboss_releases_staging_profile-8446/ I've already update our Android HelloWorld demo: https://github.com/jboss-mobile/unified-push-helloworld/pull/34 as well the Cordova plugin: https://github.com/aerogear/aerogear-cordova-push/pull/99 Happy testing :) On Mon, Jun 20, 2016 at 1:31 PM, Matthias Wessendorf wrote: > https://issues.jboss.org/browse/AGDROID-560 > > On Mon, Jun 20, 2016 at 1:27 PM, Matthias Wessendorf > wrote: > >> I have seen that with a native app now too. >> >> I will create a JIRA >> >> On Mon, Jun 20, 2016 at 11:01 AM, Oleg Matskiv >> wrote: >> >>> And instanceId.getToken() indeed returned null on first registration. >>> So native unified-push-helloworld app [1] can be used to reproduce this >>> issue. >>> >>> [1] https://github.com/jboss-mobile/unified-push-helloworld >>> >>> On Mon, Jun 20, 2016 at 10:40 AM, Oleg Matskiv >>> wrote: >>> >>>> Hi, >>>> >>>> I had very similar problem with native app (unified-push-helloworld), >>>> 400 code on first registration. >>>> I'll check getToken() return value to verify that its actually same >>>> issue. >>>> >>>> On Mon, Jun 20, 2016 at 10:28 AM, Julio Cesar Sanchez Hernandez < >>>> jusanche at redhat.com> wrote: >>>> >>>>> I think that should be enough, if the plugin uses the AGPush lib and >>>>> the lib has that on the AndroidManifest, it should be merged with the app >>>>> AndroidManifest. In the end a Cordova app is an Android app, it should work >>>>> the same way the Android app works >>>>> >>>>> On Mon, Jun 20, 2016 at 10:02 AM, Matthias Wessendorf < >>>>> matzew at apache.org> wrote: >>>>> >>>>>> Ok, so IMO that sounds like a bug in the Android lib, so the UPS >>>>>> registration should be fired after 'onTokenRefresh' is called >>>>>> >>>>>> Also, cordova question. Do we need to define our >>>>>> "UnifiedPushInstanceIDListenerService" in the plugin's config section for >>>>>> the manifest? Or is this, inside the AGPush lib good enough ? >>>>>> >>>>>> https://github.com/aerogear/aerogear-android-push/blob/master/aerogear-android-push/src/main/AndroidManifest.xml#L24-L28 >>>>>> >>>>>> Thanks, >>>>>> Matthias >>>>>> >>>>>> On Mon, Jun 20, 2016 at 9:46 AM, Julio Cesar Sanchez Hernandez < >>>>>> jusanche at redhat.com> wrote: >>>>>> >>>>>>> Yes, getToken will return null until onTokenRefresh is called the >>>>>>> first time when it gets the real value. >>>>>>> >>>>>>> On Mon, Jun 20, 2016 at 9:06 AM, Matthias Wessendorf < >>>>>>> matzew at apache.org> wrote: >>>>>>> >>>>>>>> I looked here: >>>>>>>> >>>>>>>> https://developers.google.com/cloud-messaging/android/android-migrate-fcm#remove_registration >>>>>>>> >>>>>>>> It says that we no longer need, but this: >>>>>>>> >>>>>>>> https://github.com/aerogear/aerogear-android-push/blob/3.0.1/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/gcm/AeroGearGCMPushRegistrar.java#L144-L148 >>>>>>>> >>>>>>>> was replace with explicit FCM getToken() call: >>>>>>>> >>>>>>>> https://github.com/aerogear/aerogear-android-push/blob/4.0.0/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/fcm/AeroGearFCMPushRegistrar.java#L143-L147 >>>>>>>> >>>>>>>> I think I am a bit over asked here, on the Android internals... >>>>>>>> >>>>>>>> Also, looks like we are not the only ones, seeing that problem :) >>>>>>>> >>>>>>>> http://stackoverflow.com/questions/37836383/android-firebase-token-is-null-on-first-run >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Sun, Jun 19, 2016 at 8:39 PM, Matthias Wessendorf < >>>>>>>> matzew at apache.org> wrote: >>>>>>>> >>>>>>>>> Looking at the JavaDoc for the getToken(): >>>>>>>>> >>>>>>>>> https://developers.google.com/android/reference/com/google/firebase/iid/FirebaseInstanceId.html#public-methods >>>>>>>>> >>>>>>>>> "the master token or null if the token is not yet available" >>>>>>>>> >>>>>>>>> looks like on the android lib we should not have it return null ? >>>>>>>>> >>>>>>>>> On Sat, Jun 18, 2016 at 3:17 PM, Matthias Wessendorf < >>>>>>>>> matzew at apache.org> wrote: >>>>>>>>> >>>>>>>>>> Hi, >>>>>>>>>> >>>>>>>>>> when I launch a fresh and clean Cordova app (I am unable to >>>>>>>>>> reproduce this on our native Android HelloWorld), and open it the first >>>>>>>>>> time for registration, I am receiving a 400 status code from the server. >>>>>>>>>> >>>>>>>>>> Uninstalling the app, and launching it again, show the the >>>>>>>>>> problem again, ONLY on Cordova... >>>>>>>>>> >>>>>>>>>> This means either the deviceToken from Android is null or invalid >>>>>>>>>> (according to the pattern): >>>>>>>>>> >>>>>>>>>> https://github.com/aerogear/aerogear-unifiedpush-server/blob/1.1.x-dev/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L166-L170 >>>>>>>>>> >>>>>>>>>> Doing some debugging, on the server, I see the provided token is >>>>>>>>>> actually null. >>>>>>>>>> >>>>>>>>>> Is there a race condition or so on the client, for the initial >>>>>>>>>> launch of the app ? >>>>>>>>>> >>>>>>>>>> I added some logging on the client (see [1]), and indeed, it >>>>>>>>>> looks like, on Cordova, it is actually null: >>>>>>>>>> >>>>>>>>>> https://gist.github.com/matzew/e66fa3e2bda6c4dd4655fbe5d63ed755#file-gistfile1-txt-L12 >>>>>>>>>> >>>>>>>>>> Now... a few lines above... I see 'outdated' c2dm >>>>>>>>>> packages/permissions, and a GCM: "Missmatched messenger", it looks like >>>>>>>>>> something is still not correct. >>>>>>>>>> >>>>>>>>>> Any thoughts ? >>>>>>>>>> >>>>>>>>>> -Matthias >>>>>>>>>> >>>>>>>>>> [1] >>>>>>>>>> https://github.com/matzew/aerogear-android-push/commit/1fa6aad53da4e1b9c44c59edd3086025b32a12d5 >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Matthias Wessendorf >>>>>>>>>> >>>>>>>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>>>>>>> twitter: http://twitter.com/mwessendorf >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> 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-dev mailing list >>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> aerogear-dev mailing list >>>>>>> aerogear-dev at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Matthias Wessendorf >>>>>> >>>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>>> twitter: http://twitter.com/mwessendorf >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> >>>> -- >>>> Oleg Matskiv >>>> Associate Quality Engineer >>>> Red Hat Mobile Application Platform >>>> omatskiv at redhat.com >>>> >>> >>> >>> >>> -- >>> Oleg Matskiv >>> Associate Quality Engineer >>> Red Hat Mobile Application Platform >>> omatskiv at redhat.com >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> > > > > -- > 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-dev/attachments/20160620/0a61f8bd/attachment-0001.html From omatskiv at redhat.com Tue Jun 21 05:00:55 2016 From: omatskiv at redhat.com (Oleg Matskiv) Date: Tue, 21 Jun 2016 11:00:55 +0200 Subject: [aerogear-dev] AGDroid-Push:4.0.1 release (was Re: FCM: Cordova/Android bug ?) In-Reply-To: References: Message-ID: Hello, I have just tested it with native app and it worked perfectly. *thumbs-up* On Mon, Jun 20, 2016 at 5:57 PM, Matthias Wessendorf wrote: > Hello, > > this little bug was fixed, and a 4.0.1 will hit Maven Central soon. > > The staging repo for the update is here: > https://repository.jboss.org/nexus/content/repositories/jboss_releases_staging_profile-8446/ > > I've already update our Android HelloWorld demo: > https://github.com/jboss-mobile/unified-push-helloworld/pull/34 > > as well the Cordova plugin: > https://github.com/aerogear/aerogear-cordova-push/pull/99 > > Happy testing :) > > > On Mon, Jun 20, 2016 at 1:31 PM, Matthias Wessendorf > wrote: > >> https://issues.jboss.org/browse/AGDROID-560 >> >> On Mon, Jun 20, 2016 at 1:27 PM, Matthias Wessendorf >> wrote: >> >>> I have seen that with a native app now too. >>> >>> I will create a JIRA >>> >>> On Mon, Jun 20, 2016 at 11:01 AM, Oleg Matskiv >>> wrote: >>> >>>> And instanceId.getToken() indeed returned null on first registration. >>>> So native unified-push-helloworld app [1] can be used to reproduce this >>>> issue. >>>> >>>> [1] https://github.com/jboss-mobile/unified-push-helloworld >>>> >>>> On Mon, Jun 20, 2016 at 10:40 AM, Oleg Matskiv >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> I had very similar problem with native app (unified-push-helloworld), >>>>> 400 code on first registration. >>>>> I'll check getToken() return value to verify that its actually same >>>>> issue. >>>>> >>>>> On Mon, Jun 20, 2016 at 10:28 AM, Julio Cesar Sanchez Hernandez < >>>>> jusanche at redhat.com> wrote: >>>>> >>>>>> I think that should be enough, if the plugin uses the AGPush lib and >>>>>> the lib has that on the AndroidManifest, it should be merged with the app >>>>>> AndroidManifest. In the end a Cordova app is an Android app, it should work >>>>>> the same way the Android app works >>>>>> >>>>>> On Mon, Jun 20, 2016 at 10:02 AM, Matthias Wessendorf < >>>>>> matzew at apache.org> wrote: >>>>>> >>>>>>> Ok, so IMO that sounds like a bug in the Android lib, so the UPS >>>>>>> registration should be fired after 'onTokenRefresh' is called >>>>>>> >>>>>>> Also, cordova question. Do we need to define our >>>>>>> "UnifiedPushInstanceIDListenerService" in the plugin's config section for >>>>>>> the manifest? Or is this, inside the AGPush lib good enough ? >>>>>>> >>>>>>> https://github.com/aerogear/aerogear-android-push/blob/master/aerogear-android-push/src/main/AndroidManifest.xml#L24-L28 >>>>>>> >>>>>>> Thanks, >>>>>>> Matthias >>>>>>> >>>>>>> On Mon, Jun 20, 2016 at 9:46 AM, Julio Cesar Sanchez Hernandez < >>>>>>> jusanche at redhat.com> wrote: >>>>>>> >>>>>>>> Yes, getToken will return null until onTokenRefresh is called the >>>>>>>> first time when it gets the real value. >>>>>>>> >>>>>>>> On Mon, Jun 20, 2016 at 9:06 AM, Matthias Wessendorf < >>>>>>>> matzew at apache.org> wrote: >>>>>>>> >>>>>>>>> I looked here: >>>>>>>>> >>>>>>>>> https://developers.google.com/cloud-messaging/android/android-migrate-fcm#remove_registration >>>>>>>>> >>>>>>>>> It says that we no longer need, but this: >>>>>>>>> >>>>>>>>> https://github.com/aerogear/aerogear-android-push/blob/3.0.1/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/gcm/AeroGearGCMPushRegistrar.java#L144-L148 >>>>>>>>> >>>>>>>>> was replace with explicit FCM getToken() call: >>>>>>>>> >>>>>>>>> https://github.com/aerogear/aerogear-android-push/blob/4.0.0/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/fcm/AeroGearFCMPushRegistrar.java#L143-L147 >>>>>>>>> >>>>>>>>> I think I am a bit over asked here, on the Android internals... >>>>>>>>> >>>>>>>>> Also, looks like we are not the only ones, seeing that problem :) >>>>>>>>> >>>>>>>>> http://stackoverflow.com/questions/37836383/android-firebase-token-is-null-on-first-run >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Sun, Jun 19, 2016 at 8:39 PM, Matthias Wessendorf < >>>>>>>>> matzew at apache.org> wrote: >>>>>>>>> >>>>>>>>>> Looking at the JavaDoc for the getToken(): >>>>>>>>>> >>>>>>>>>> https://developers.google.com/android/reference/com/google/firebase/iid/FirebaseInstanceId.html#public-methods >>>>>>>>>> >>>>>>>>>> "the master token or null if the token is not yet available" >>>>>>>>>> >>>>>>>>>> looks like on the android lib we should not have it return null ? >>>>>>>>>> >>>>>>>>>> On Sat, Jun 18, 2016 at 3:17 PM, Matthias Wessendorf < >>>>>>>>>> matzew at apache.org> wrote: >>>>>>>>>> >>>>>>>>>>> Hi, >>>>>>>>>>> >>>>>>>>>>> when I launch a fresh and clean Cordova app (I am unable to >>>>>>>>>>> reproduce this on our native Android HelloWorld), and open it the first >>>>>>>>>>> time for registration, I am receiving a 400 status code from the server. >>>>>>>>>>> >>>>>>>>>>> Uninstalling the app, and launching it again, show the the >>>>>>>>>>> problem again, ONLY on Cordova... >>>>>>>>>>> >>>>>>>>>>> This means either the deviceToken from Android is null or >>>>>>>>>>> invalid (according to the pattern): >>>>>>>>>>> >>>>>>>>>>> https://github.com/aerogear/aerogear-unifiedpush-server/blob/1.1.x-dev/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L166-L170 >>>>>>>>>>> >>>>>>>>>>> Doing some debugging, on the server, I see the provided token is >>>>>>>>>>> actually null. >>>>>>>>>>> >>>>>>>>>>> Is there a race condition or so on the client, for the initial >>>>>>>>>>> launch of the app ? >>>>>>>>>>> >>>>>>>>>>> I added some logging on the client (see [1]), and indeed, it >>>>>>>>>>> looks like, on Cordova, it is actually null: >>>>>>>>>>> >>>>>>>>>>> https://gist.github.com/matzew/e66fa3e2bda6c4dd4655fbe5d63ed755#file-gistfile1-txt-L12 >>>>>>>>>>> >>>>>>>>>>> Now... a few lines above... I see 'outdated' c2dm >>>>>>>>>>> packages/permissions, and a GCM: "Missmatched messenger", it looks like >>>>>>>>>>> something is still not correct. >>>>>>>>>>> >>>>>>>>>>> Any thoughts ? >>>>>>>>>>> >>>>>>>>>>> -Matthias >>>>>>>>>>> >>>>>>>>>>> [1] >>>>>>>>>>> https://github.com/matzew/aerogear-android-push/commit/1fa6aad53da4e1b9c44c59edd3086025b32a12d5 >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Matthias Wessendorf >>>>>>>>>>> >>>>>>>>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>>>>>>>> twitter: http://twitter.com/mwessendorf >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> 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-dev mailing list >>>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> aerogear-dev mailing list >>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Matthias Wessendorf >>>>>>> >>>>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>>>> twitter: http://twitter.com/mwessendorf >>>>>>> >>>>>>> _______________________________________________ >>>>>>> aerogear-dev mailing list >>>>>>> aerogear-dev at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Oleg Matskiv >>>>> Associate Quality Engineer >>>>> Red Hat Mobile Application Platform >>>>> omatskiv at redhat.com >>>>> >>>> >>>> >>>> >>>> -- >>>> Oleg Matskiv >>>> Associate Quality Engineer >>>> Red Hat Mobile Application Platform >>>> omatskiv at redhat.com >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> >>> -- >>> Matthias Wessendorf >>> >>> blog: http://matthiaswessendorf.wordpress.com/ >>> twitter: http://twitter.com/mwessendorf >>> >> >> >> >> -- >> 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-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Oleg Matskiv Associate Quality Engineer Red Hat Mobile Application Platform omatskiv at redhat.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160621/81531ef0/attachment-0001.html From matzew at apache.org Tue Jun 21 08:15:07 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Tue, 21 Jun 2016 14:15:07 +0200 Subject: [aerogear-dev] AGDroid-Push:4.0.1 release (was Re: FCM: Cordova/Android bug ?) In-Reply-To: References: Message-ID: Ok, shipping to maven central On Tue, Jun 21, 2016 at 11:00 AM, Oleg Matskiv wrote: > Hello, > > I have just tested it with native app and it worked perfectly. *thumbs-up* > > > On Mon, Jun 20, 2016 at 5:57 PM, Matthias Wessendorf > wrote: > >> Hello, >> >> this little bug was fixed, and a 4.0.1 will hit Maven Central soon. >> >> The staging repo for the update is here: >> https://repository.jboss.org/nexus/content/repositories/jboss_releases_staging_profile-8446/ >> >> I've already update our Android HelloWorld demo: >> https://github.com/jboss-mobile/unified-push-helloworld/pull/34 >> >> as well the Cordova plugin: >> https://github.com/aerogear/aerogear-cordova-push/pull/99 >> >> Happy testing :) >> >> >> On Mon, Jun 20, 2016 at 1:31 PM, Matthias Wessendorf >> wrote: >> >>> https://issues.jboss.org/browse/AGDROID-560 >>> >>> On Mon, Jun 20, 2016 at 1:27 PM, Matthias Wessendorf >>> wrote: >>> >>>> I have seen that with a native app now too. >>>> >>>> I will create a JIRA >>>> >>>> On Mon, Jun 20, 2016 at 11:01 AM, Oleg Matskiv >>>> wrote: >>>> >>>>> And instanceId.getToken() indeed returned null on first registration. >>>>> So native unified-push-helloworld app [1] can be used to reproduce >>>>> this issue. >>>>> >>>>> [1] https://github.com/jboss-mobile/unified-push-helloworld >>>>> >>>>> On Mon, Jun 20, 2016 at 10:40 AM, Oleg Matskiv >>>>> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I had very similar problem with native app (unified-push-helloworld), >>>>>> 400 code on first registration. >>>>>> I'll check getToken() return value to verify that its actually same >>>>>> issue. >>>>>> >>>>>> On Mon, Jun 20, 2016 at 10:28 AM, Julio Cesar Sanchez Hernandez < >>>>>> jusanche at redhat.com> wrote: >>>>>> >>>>>>> I think that should be enough, if the plugin uses the AGPush lib and >>>>>>> the lib has that on the AndroidManifest, it should be merged with the app >>>>>>> AndroidManifest. In the end a Cordova app is an Android app, it should work >>>>>>> the same way the Android app works >>>>>>> >>>>>>> On Mon, Jun 20, 2016 at 10:02 AM, Matthias Wessendorf < >>>>>>> matzew at apache.org> wrote: >>>>>>> >>>>>>>> Ok, so IMO that sounds like a bug in the Android lib, so the UPS >>>>>>>> registration should be fired after 'onTokenRefresh' is called >>>>>>>> >>>>>>>> Also, cordova question. Do we need to define our >>>>>>>> "UnifiedPushInstanceIDListenerService" in the plugin's config section for >>>>>>>> the manifest? Or is this, inside the AGPush lib good enough ? >>>>>>>> >>>>>>>> https://github.com/aerogear/aerogear-android-push/blob/master/aerogear-android-push/src/main/AndroidManifest.xml#L24-L28 >>>>>>>> >>>>>>>> Thanks, >>>>>>>> Matthias >>>>>>>> >>>>>>>> On Mon, Jun 20, 2016 at 9:46 AM, Julio Cesar Sanchez Hernandez < >>>>>>>> jusanche at redhat.com> wrote: >>>>>>>> >>>>>>>>> Yes, getToken will return null until onTokenRefresh is called the >>>>>>>>> first time when it gets the real value. >>>>>>>>> >>>>>>>>> On Mon, Jun 20, 2016 at 9:06 AM, Matthias Wessendorf < >>>>>>>>> matzew at apache.org> wrote: >>>>>>>>> >>>>>>>>>> I looked here: >>>>>>>>>> >>>>>>>>>> https://developers.google.com/cloud-messaging/android/android-migrate-fcm#remove_registration >>>>>>>>>> >>>>>>>>>> It says that we no longer need, but this: >>>>>>>>>> >>>>>>>>>> https://github.com/aerogear/aerogear-android-push/blob/3.0.1/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/gcm/AeroGearGCMPushRegistrar.java#L144-L148 >>>>>>>>>> >>>>>>>>>> was replace with explicit FCM getToken() call: >>>>>>>>>> >>>>>>>>>> https://github.com/aerogear/aerogear-android-push/blob/4.0.0/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/fcm/AeroGearFCMPushRegistrar.java#L143-L147 >>>>>>>>>> >>>>>>>>>> I think I am a bit over asked here, on the Android internals... >>>>>>>>>> >>>>>>>>>> Also, looks like we are not the only ones, seeing that problem :) >>>>>>>>>> >>>>>>>>>> http://stackoverflow.com/questions/37836383/android-firebase-token-is-null-on-first-run >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Sun, Jun 19, 2016 at 8:39 PM, Matthias Wessendorf < >>>>>>>>>> matzew at apache.org> wrote: >>>>>>>>>> >>>>>>>>>>> Looking at the JavaDoc for the getToken(): >>>>>>>>>>> >>>>>>>>>>> https://developers.google.com/android/reference/com/google/firebase/iid/FirebaseInstanceId.html#public-methods >>>>>>>>>>> >>>>>>>>>>> "the master token or null if the token is not yet available" >>>>>>>>>>> >>>>>>>>>>> looks like on the android lib we should not have it return null ? >>>>>>>>>>> >>>>>>>>>>> On Sat, Jun 18, 2016 at 3:17 PM, Matthias Wessendorf < >>>>>>>>>>> matzew at apache.org> wrote: >>>>>>>>>>> >>>>>>>>>>>> Hi, >>>>>>>>>>>> >>>>>>>>>>>> when I launch a fresh and clean Cordova app (I am unable to >>>>>>>>>>>> reproduce this on our native Android HelloWorld), and open it the first >>>>>>>>>>>> time for registration, I am receiving a 400 status code from the server. >>>>>>>>>>>> >>>>>>>>>>>> Uninstalling the app, and launching it again, show the the >>>>>>>>>>>> problem again, ONLY on Cordova... >>>>>>>>>>>> >>>>>>>>>>>> This means either the deviceToken from Android is null or >>>>>>>>>>>> invalid (according to the pattern): >>>>>>>>>>>> >>>>>>>>>>>> https://github.com/aerogear/aerogear-unifiedpush-server/blob/1.1.x-dev/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/registry/installations/InstallationRegistrationEndpoint.java#L166-L170 >>>>>>>>>>>> >>>>>>>>>>>> Doing some debugging, on the server, I see the provided token >>>>>>>>>>>> is actually null. >>>>>>>>>>>> >>>>>>>>>>>> Is there a race condition or so on the client, for the initial >>>>>>>>>>>> launch of the app ? >>>>>>>>>>>> >>>>>>>>>>>> I added some logging on the client (see [1]), and indeed, it >>>>>>>>>>>> looks like, on Cordova, it is actually null: >>>>>>>>>>>> >>>>>>>>>>>> https://gist.github.com/matzew/e66fa3e2bda6c4dd4655fbe5d63ed755#file-gistfile1-txt-L12 >>>>>>>>>>>> >>>>>>>>>>>> Now... a few lines above... I see 'outdated' c2dm >>>>>>>>>>>> packages/permissions, and a GCM: "Missmatched messenger", it looks like >>>>>>>>>>>> something is still not correct. >>>>>>>>>>>> >>>>>>>>>>>> Any thoughts ? >>>>>>>>>>>> >>>>>>>>>>>> -Matthias >>>>>>>>>>>> >>>>>>>>>>>> [1] >>>>>>>>>>>> https://github.com/matzew/aerogear-android-push/commit/1fa6aad53da4e1b9c44c59edd3086025b32a12d5 >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Matthias Wessendorf >>>>>>>>>>>> >>>>>>>>>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>>>>>>>>> twitter: http://twitter.com/mwessendorf >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> 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-dev mailing list >>>>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> aerogear-dev mailing list >>>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Matthias Wessendorf >>>>>>>> >>>>>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>>>>> twitter: http://twitter.com/mwessendorf >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> aerogear-dev mailing list >>>>>>>> aerogear-dev at lists.jboss.org >>>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> aerogear-dev mailing list >>>>>>> aerogear-dev at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Oleg Matskiv >>>>>> Associate Quality Engineer >>>>>> Red Hat Mobile Application Platform >>>>>> omatskiv at redhat.com >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Oleg Matskiv >>>>> Associate Quality Engineer >>>>> Red Hat Mobile Application Platform >>>>> omatskiv at redhat.com >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> >>>> -- >>>> Matthias Wessendorf >>>> >>>> blog: http://matthiaswessendorf.wordpress.com/ >>>> twitter: http://twitter.com/mwessendorf >>>> >>> >>> >>> >>> -- >>> 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-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Oleg Matskiv > Associate Quality Engineer > Red Hat Mobile Application Platform > omatskiv at redhat.com > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160621/2dbd2f10/attachment-0001.html From lukas.fryc at gmail.com Thu Jun 23 07:44:52 2016 From: lukas.fryc at gmail.com (=?UTF-8?B?THVrw6HFoSBGcnnEjQ==?=) Date: Thu, 23 Jun 2016 13:44:52 +0200 Subject: [aerogear-dev] UPS FCM issues Message-ID: Hey guys! I have some problems getting FCM to work on current UPS master, running on Openshift WF10. I'm trying to send a push message to one successfully registered Android device. Had you someone seen such an issue as well? https://gist.github.com/lfryc/7c104be1db1117b100bef3f2a7345ac8#file-gistfile1-txt-L7 Cheers! ~ Lukas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160623/77186bac/attachment.html From supittma at redhat.com Thu Jun 23 07:59:37 2016 From: supittma at redhat.com (Summers Pittman) Date: Thu, 23 Jun 2016 07:59:37 -0400 Subject: [aerogear-dev] UPS FCM issues In-Reply-To: References: Message-ID: Howdy Stranger! 401 implies an authorization error. Have you ported your project to the Firebase console and are all of your api keys / tokens set up correctly? I'm free for a Hangsouts session at some point to help debug this. On Thu, Jun 23, 2016 at 7:44 AM, Luk?? Fry? wrote: > Hey guys! > > I have some problems getting FCM to work on current UPS master, running on > Openshift WF10. > > I'm trying to send a push message to one successfully registered > Android device. > > Had you someone seen such an issue as well? > > > https://gist.github.com/lfryc/7c104be1db1117b100bef3f2a7345ac8#file-gistfile1-txt-L7 > > > Cheers! > > ~ Lukas > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160623/92bc78ba/attachment.html From matzew at apache.org Thu Jun 23 08:09:58 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Thu, 23 Jun 2016 14:09:58 +0200 Subject: [aerogear-dev] UPS FCM issues In-Reply-To: References: Message-ID: Hi Lukas, make sure this key matches the one in UPS: https://www.dropbox.com/s/n4t86tavqwjxkhi/FirebaseInfo.png?dl=0 On Thu, Jun 23, 2016 at 1:59 PM, Summers Pittman wrote: > Howdy Stranger! > > 401 implies an authorization error. Have you ported your project to the > Firebase console and are all of your api keys / tokens set up correctly? > I'm free for a Hangsouts session at some point to help debug this. > > On Thu, Jun 23, 2016 at 7:44 AM, Luk?? Fry? wrote: > >> Hey guys! >> >> I have some problems getting FCM to work on current UPS master, running >> on Openshift WF10. >> >> I'm trying to send a push message to one successfully registered >> Android device. >> >> Had you someone seen such an issue as well? >> >> >> https://gist.github.com/lfryc/7c104be1db1117b100bef3f2a7345ac8#file-gistfile1-txt-L7 >> >> >> Cheers! >> >> ~ Lukas >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160623/0b16fa63/attachment.html From matzew at apache.org Thu Jun 23 11:58:28 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Thu, 23 Jun 2016 17:58:28 +0200 Subject: [aerogear-dev] AeroGear Cordova release In-Reply-To: References: Message-ID: since this is fixed, I am fine in tagging master to 3.0.0 On Mon, Jun 20, 2016 at 8:49 AM, Matthias Wessendorf wrote: > Actually, see other thread. > -1 on releasing > > On Fri, Jun 17, 2016 at 3:14 PM, Matthias Wessendorf > wrote: > >> +1 >> >> On Fri, Jun 17, 2016 at 2:18 PM, Erik Jan de Wit >> wrote: >> >>> Hi, >>> >>> We are going to release another version of the aerogear push plugin, as >>> always I've created a branch for you to test. The biggest change it the use >>> of FCM for google so be sure to test it against a compatible UPS. >>> >>> Add the plugin with the following command: >>> >>> $> cordova plugin add https://github.com/aerogear/aerogear-cordova-push.git\#release-3.0.0 >>> >>> ? >>> >>> Other changes are: >>> >>> [image: Major] [image: Bug] AGCORDOVA-133 >>> Library Dependencies >>> Conflict With Every Other Plugin Requiring The Same >>> >>> >>> [image: Major] [image: Tracker] AGCORDOVA-134 >>> geting problem in >>> cordova build >>> >>> [image: Major] [image: Feature Request] AGCORDOVA-138 >>> Update Cordova-Android >>> to use AGDROID 3.0.0 for GCM and InstanceID >>> >>> >>> >>> [image: Major] [image: Task] AGCORDOVA-140 >>> AeroGear Cookbook >>> Updates >>> >>> >>> [image: Major] [image: Sub-task] AGCORDOVA-141 >>> Push Hello World update >>> >>> >>> >>> [image: Major] [image: Feature Request] AGCORDOVA-145 >>> Update Cordova-Android >>> to use FCM enabled AGDroid >>> >>> >>> On Fri, Jun 17, 2016 at 10:49 AM, Matthias Wessendorf >> > wrote: >>> >>>> cool! >>>> >>>> On Thu, Jun 16, 2016 at 9:01 PM, Erik Jan de Wit >>>> wrote: >>>> >>>>> yeah, let's do that >>>>> >>>>> On Thu, Jun 16, 2016 at 1:53 PM, Matthias Wessendorf < >>>>> matzew at apache.org> wrote: >>>>> >>>>>> Hi Erik, >>>>>> >>>>>> now that FCM got merged, can you tag and release the 3.0.0 bits ? >>>>>> >>>>>> -Matthias >>>>>> >>>>>> -- >>>>>> Matthias Wessendorf >>>>>> >>>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>>> twitter: http://twitter.com/mwessendorf >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Cheers, >>>>> Erik Jan >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> >>>> -- >>>> Matthias Wessendorf >>>> >>>> blog: http://matthiaswessendorf.wordpress.com/ >>>> twitter: http://twitter.com/mwessendorf >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> >>> -- >>> Cheers, >>> Erik Jan >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Matthias Wessendorf >> >> blog: http://matthiaswessendorf.wordpress.com/ >> twitter: http://twitter.com/mwessendorf >> > > > > -- > 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-dev/attachments/20160623/f6bbb271/attachment-0001.html From edewit at redhat.com Thu Jun 23 12:23:14 2016 From: edewit at redhat.com (Erik Jan de Wit) Date: Thu, 23 Jun 2016 18:23:14 +0200 Subject: [aerogear-dev] AeroGear Cordova release In-Reply-To: References: Message-ID: The release 3.0.0 has been published to npm thanks to everyone involved. On Thu, Jun 23, 2016 at 5:58 PM, Matthias Wessendorf wrote: > since this is fixed, I am fine in tagging master to 3.0.0 > > On Mon, Jun 20, 2016 at 8:49 AM, Matthias Wessendorf > wrote: > >> Actually, see other thread. >> -1 on releasing >> >> On Fri, Jun 17, 2016 at 3:14 PM, Matthias Wessendorf >> wrote: >> >>> +1 >>> >>> On Fri, Jun 17, 2016 at 2:18 PM, Erik Jan de Wit >>> wrote: >>> >>>> Hi, >>>> >>>> We are going to release another version of the aerogear push plugin, as >>>> always I've created a branch for you to test. The biggest change it the use >>>> of FCM for google so be sure to test it against a compatible UPS. >>>> >>>> Add the plugin with the following command: >>>> >>>> $> cordova plugin add https://github.com/aerogear/aerogear-cordova-push.git\#release-3.0.0 >>>> >>>> ? >>>> >>>> Other changes are: >>>> >>>> [image: Major] [image: Bug] AGCORDOVA-133 >>>> Library Dependencies >>>> Conflict With Every Other Plugin Requiring The Same >>>> >>>> >>>> [image: Major] [image: Tracker] AGCORDOVA-134 >>>> geting problem in >>>> cordova build >>>> >>>> [image: Major] [image: Feature Request] AGCORDOVA-138 >>>> Update Cordova-Android >>>> to use AGDROID 3.0.0 for GCM and InstanceID >>>> >>>> >>>> >>>> [image: Major] [image: Task] AGCORDOVA-140 >>>> AeroGear Cookbook >>>> Updates >>>> >>>> >>>> [image: Major] [image: Sub-task] AGCORDOVA-141 >>>> Push Hello World update >>>> >>>> >>>> >>>> [image: Major] [image: Feature Request] AGCORDOVA-145 >>>> Update Cordova-Android >>>> to use FCM enabled AGDroid >>>> >>>> >>>> On Fri, Jun 17, 2016 at 10:49 AM, Matthias Wessendorf < >>>> matzew at apache.org> wrote: >>>> >>>>> cool! >>>>> >>>>> On Thu, Jun 16, 2016 at 9:01 PM, Erik Jan de Wit >>>>> wrote: >>>>> >>>>>> yeah, let's do that >>>>>> >>>>>> On Thu, Jun 16, 2016 at 1:53 PM, Matthias Wessendorf < >>>>>> matzew at apache.org> wrote: >>>>>> >>>>>>> Hi Erik, >>>>>>> >>>>>>> now that FCM got merged, can you tag and release the 3.0.0 bits ? >>>>>>> >>>>>>> -Matthias >>>>>>> >>>>>>> -- >>>>>>> Matthias Wessendorf >>>>>>> >>>>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>>>> twitter: http://twitter.com/mwessendorf >>>>>>> >>>>>>> _______________________________________________ >>>>>>> aerogear-dev mailing list >>>>>>> aerogear-dev at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Cheers, >>>>>> Erik Jan >>>>>> >>>>>> _______________________________________________ >>>>>> aerogear-dev mailing list >>>>>> aerogear-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Matthias Wessendorf >>>>> >>>>> blog: http://matthiaswessendorf.wordpress.com/ >>>>> twitter: http://twitter.com/mwessendorf >>>>> >>>>> _______________________________________________ >>>>> aerogear-dev mailing list >>>>> aerogear-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>>> >>>> >>>> >>>> >>>> -- >>>> Cheers, >>>> Erik Jan >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> >>> -- >>> Matthias Wessendorf >>> >>> blog: http://matthiaswessendorf.wordpress.com/ >>> twitter: http://twitter.com/mwessendorf >>> >> >> >> >> -- >> 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-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Cheers, Erik Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160623/0d667a9b/attachment.html From michael at 410labs.com Thu Jun 23 12:37:09 2016 From: michael at 410labs.com (Michael Doo) Date: Thu, 23 Jun 2016 12:37:09 -0400 Subject: [aerogear-dev] iOS OAuth2 library PRs & future tasks Message-ID: Hello, There are three pending pull requests on the iOS OAuth2 project. They are as follows: #45 - Update to CocoaPods 1.0.1 This makes the update from CP 0.39.0 to CP 1.0.1. The main changes are in the project file as well as the Podfile. #46 - Make the OAuth2Module webview public In the project I'm working on, we're using different logic to detect a redirect to the OAuth2 callback URL. To integrate this into the Aerogear library, we override the OAuth2Module's webview. This PR simply makes that part of the code public. #49 - Update Travis CI to use latest CocoaPods The Travis build is still breaking (an error regarding the Aerogear Http library). Nonetheless, if the project is going to use CP 1.0.1, Travis CI needs to switch over as well. Not sure what to do about the consistent CI failures though... Please let me know if there are any questions/concerns regarding these PRs. Some things on my to-do list that probably won't get done very soon, but likely in the next couple of months: * Beginning the conversion to Swift 2.3. This release of Swift is a sort of bridge between 2.2 and 3.0. However, the challenge here is that if the OAuth2 library is built with 2.3, all it's dependencies must also be in 2.3. I will probably do this work on a branch until such time that the dependencies catch up. * Making the library iOS 10.0 / Xcode 8 ready. iOS 10 will most likely be released this fall and the OAuth2 library should support it. As part of this, the library will also need some changes to support Xcode 8 (Xcode 7.x won't build for an iOS 10 target). Again, this will probably be done on a separate branch until the library's dependencies also support iOS 10. Best, Michael Doo 410 Labs -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160623/4950e29e/attachment-0001.html From corinnekrych at gmail.com Thu Jun 23 15:55:23 2016 From: corinnekrych at gmail.com (Corinne Krych) Date: Thu, 23 Jun 2016 21:55:23 +0200 Subject: [aerogear-dev] iOS OAuth2 library PRs & future tasks In-Reply-To: References: Message-ID: On 23 June 2016 at 18:37, Michael Doo wrote: > Hello, > > There are three pending pull requests on the iOS OAuth2 project. They are > as follows: > > #45 - Update to CocoaPods 1.0.1 > This makes the update from CP 0.39.0 to CP 1.0.1. The main changes are in > the project file as well as the Podfile. > > #46 - Make the OAuth2Module webview public > In the project I'm working on, we're using different logic to detect a > redirect to the OAuth2 callback URL. To integrate this into the Aerogear > library, we override the OAuth2Module's webview. This PR simply makes that > part of the code public. > > Both merged! Thanks for your contribution. > #49 - Update Travis CI to use latest CocoaPods > The Travis build is still breaking (an error regarding the Aerogear Http > library). Nonetheless, if the project is going to use CP 1.0.1, Travis CI > needs to switch over as well. Not sure what to do about the consistent CI > failures though... > I'm looking into this one... Travis can be quite a mystery from time to time ;) > Please let me know if there are any questions/concerns regarding these > PRs. > > Some things on my to-do list that probably won't get done very soon, but > likely in the next couple of months: > > * Beginning the conversion to Swift 2.3. This release of Swift is a sort > of bridge between 2.2 and 3.0. However, the challenge here is that if the > OAuth2 library is built with 2.3, all it's dependencies must also be in > 2.3. I will probably do this work on a branch until such time that the > dependencies catch up. > +1 for a swift2.3 branch For the dependencies, we have AeroGearHttp (I can help on that one) and OHHTTPStubs (for test pod only, this one already have a PR for swift2.3: https://github.com/AliSoftware/OHHTTPStubs/pull/184). I like the idea of having it compatible for both Swift 2.2/Xcode 7.3 and Swift 2.3/Xcode 8. * Making the library iOS 10.0 / Xcode 8 ready. iOS 10 will most likely be > released this fall and the OAuth2 library should support it. As part of > this, the library will also need some changes to support Xcode 8 (Xcode 7.x > won't build for an iOS 10 target). Again, this will probably be done on a > separate branch until the library's dependencies also support iOS 10. > +1 for a separate branch Thanks for your contributions, I'm looking forward seeing the next ones ;) > > > Best, > Michael Doo > 410 Labs > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160623/6e7dfdab/attachment.html From lukas.fryc at gmail.com Thu Jun 23 16:23:12 2016 From: lukas.fryc at gmail.com (=?UTF-8?B?THVrw6HFoSBGcnnEjQ==?=) Date: Thu, 23 Jun 2016 22:23:12 +0200 Subject: [aerogear-dev] UPS FCM issues In-Reply-To: References: Message-ID: Hi guys, thanks guys, and thanks for nice screenshot, Matthias :-) I've double-checked credentials, but it isn't the issue regrettably. Finally recreating everything from scratch (new app in UPS and Firebase Console) made it work, (I made it work in panic just before the Unified Push presentation for a meetup) Cool stuff. Cheers, ~ Lukas On Thu, Jun 23, 2016 at 2:09 PM, Matthias Wessendorf wrote: > Hi Lukas, > > make sure this key matches the one in UPS: > > https://www.dropbox.com/s/n4t86tavqwjxkhi/FirebaseInfo.png?dl=0 > > On Thu, Jun 23, 2016 at 1:59 PM, Summers Pittman > wrote: > >> Howdy Stranger! >> >> 401 implies an authorization error. Have you ported your project to the >> Firebase console and are all of your api keys / tokens set up correctly? >> I'm free for a Hangsouts session at some point to help debug this. >> >> On Thu, Jun 23, 2016 at 7:44 AM, Luk?? Fry? wrote: >> >>> Hey guys! >>> >>> I have some problems getting FCM to work on current UPS master, running >>> on Openshift WF10. >>> >>> I'm trying to send a push message to one successfully registered >>> Android device. >>> >>> Had you someone seen such an issue as well? >>> >>> >>> https://gist.github.com/lfryc/7c104be1db1117b100bef3f2a7345ac8#file-gistfile1-txt-L7 >>> >>> >>> Cheers! >>> >>> ~ Lukas >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > twitter: http://twitter.com/mwessendorf > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160623/2cc43302/attachment.html From idel.pivnitskiy at gmail.com Sun Jun 26 20:25:14 2016 From: idel.pivnitskiy at gmail.com (Idel Pivnitskiy) Date: Mon, 27 Jun 2016 03:25:14 +0300 Subject: [aerogear-dev] Chrome Push API with AeroGear Unified Push Example Message-ID: Hi all, I've created an example, which shows how Chrome Push API could work with AeroGear Unified Push. It works without any changes to the UPS code base! Here is a sample app: https://github.com/aerogear/aerogear-js-cookbook/pull/13 And here is a demo: https://youtu.be/o6FdbJm-47Y Hope you will enjoy! :) Best regards, Idel Pivnitskiy -- Twitter: @idelpivnitskiy GitHub: @idelpivnitskiy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160627/91e99bd8/attachment.html From matzew at apache.org Mon Jun 27 02:55:26 2016 From: matzew at apache.org (Matthias Wessendorf) Date: Mon, 27 Jun 2016 08:55:26 +0200 Subject: [aerogear-dev] Chrome Push API with AeroGear Unified Push Example In-Reply-To: References: Message-ID: Hi Idel! this is great stuff! Thanks for putting together such a nice video! On Mon, Jun 27, 2016 at 2:25 AM, Idel Pivnitskiy wrote: > Hi all, > > I've created an example, which shows how Chrome Push API could work with > AeroGear Unified Push. It works without any changes to the UPS code base! > > Here is a sample app: > https://github.com/aerogear/aerogear-js-cookbook/pull/13 > And here is a demo: https://youtu.be/o6FdbJm-47Y > > Hope you will enjoy! :) > > Best regards, > Idel Pivnitskiy > -- > Twitter: @idelpivnitskiy > GitHub: @idelpivnitskiy > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ twitter: http://twitter.com/mwessendorf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160627/78127f84/attachment-0001.html From omatskiv at redhat.com Mon Jun 27 04:45:30 2016 From: omatskiv at redhat.com (Oleg Matskiv) Date: Mon, 27 Jun 2016 10:45:30 +0200 Subject: [aerogear-dev] Chrome Push API with AeroGear Unified Push Example In-Reply-To: References: Message-ID: Hello Idel, Great demo ! Thank you for sharing. On Mon, Jun 27, 2016 at 2:25 AM, Idel Pivnitskiy wrote: > Hi all, > > I've created an example, which shows how Chrome Push API could work with > AeroGear Unified Push. It works without any changes to the UPS code base! > > Here is a sample app: > https://github.com/aerogear/aerogear-js-cookbook/pull/13 > And here is a demo: https://youtu.be/o6FdbJm-47Y > > Hope you will enjoy! :) > > Best regards, > Idel Pivnitskiy > -- > Twitter: @idelpivnitskiy > GitHub: @idelpivnitskiy > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -- Oleg Matskiv Associate Quality Engineer Red Hat Mobile Application Platform omatskiv at redhat.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160627/07420c52/attachment.html From lholmqui at redhat.com Mon Jun 27 08:47:01 2016 From: lholmqui at redhat.com (Luke Holmquist) Date: Mon, 27 Jun 2016 08:47:01 -0400 Subject: [aerogear-dev] Chrome Push API with AeroGear Unified Push Example In-Reply-To: References: Message-ID: Awesome. i remember writing a blog post on using the Android variant for chrome, but i don't think i ever created an example for it. And i think it was only for packaged apps at that time. So this is really nice. I've actually been looking at Web Push a little lately and i noticed that to send a payload, there are some extra bits of info, that are attached to the subscription object that would probably need to be stored on the UPS somehow. I believe this is the same for FF too. I wonder if we should start looking at a "WebPush" variant. If only Safari would follow suit. On Mon, Jun 27, 2016 at 4:45 AM, Oleg Matskiv wrote: > Hello Idel, > Great demo ! > > Thank you for sharing. > > On Mon, Jun 27, 2016 at 2:25 AM, Idel Pivnitskiy < > idel.pivnitskiy at gmail.com> wrote: > >> Hi all, >> >> I've created an example, which shows how Chrome Push API could work with >> AeroGear Unified Push. It works without any changes to the UPS code base! >> >> Here is a sample app: >> https://github.com/aerogear/aerogear-js-cookbook/pull/13 >> And here is a demo: https://youtu.be/o6FdbJm-47Y >> >> Hope you will enjoy! :) >> >> Best regards, >> Idel Pivnitskiy >> -- >> Twitter: @idelpivnitskiy >> GitHub: @idelpivnitskiy >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > > -- > Oleg Matskiv > Associate Quality Engineer > Red Hat Mobile Application Platform > omatskiv at redhat.com > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160627/e57af89a/attachment.html From idel.pivnitskiy at gmail.com Mon Jun 27 17:56:03 2016 From: idel.pivnitskiy at gmail.com (Idel Pivnitskiy) Date: Tue, 28 Jun 2016 00:56:03 +0300 Subject: [aerogear-dev] Chrome Push API with AeroGear Unified Push Example In-Reply-To: References: Message-ID: Thank you, guys! > i remember writing a blog post on using the Android variant for chrome, > but i don't think i ever created an example for it. And i think it was > only for packaged apps at that time. > Yes, previously it worked just with chrome extensions and applications. > I've actually been looking at Web Push a little lately and i noticed that > to send a payload, there are some extra bits of info, that are attached to > the subscription object that would probably need to be stored on the UPS > somehow. I believe this is the same for FF too. Chrome does not support payload in push notifications because they haven't implemented encryption yet. Encryption of push messages is mandatory. That's why they decided to keep it null. But according to the MDN, FF should support it [1]. I will check. I also want to notice, that FCM/GCM does not support Web Push protocol now. Googlers just implemented a Push API [2] in Chrome (browser part of WebPush) and use their proprietary protocol for push message delivering. [1] https://developer.mozilla.org/ru/docs/Web/API/PushEvent [2] https://www.w3.org/TR/push-api/ Best regards, Idel Pivnitskiy -- Twitter: @idelpivnitskiy GitHub: @idelpivnitskiy On Mon, Jun 27, 2016 at 3:47 PM, Luke Holmquist wrote: > Awesome. > > i remember writing a blog post on using the Android variant for chrome, > but i don't think i ever created an example for it. And i think it was > only for packaged apps at that time. So this is really nice. > > > I've actually been looking at Web Push a little lately and i noticed that > to send a payload, there are some extra bits of info, that are attached to > the subscription object that would probably need to be stored on the UPS > somehow. I believe this is the same for FF too. > > I wonder if we should start looking at a "WebPush" variant. If only > Safari would follow suit. > > > > On Mon, Jun 27, 2016 at 4:45 AM, Oleg Matskiv wrote: > >> Hello Idel, >> Great demo ! >> >> Thank you for sharing. >> >> On Mon, Jun 27, 2016 at 2:25 AM, Idel Pivnitskiy < >> idel.pivnitskiy at gmail.com> wrote: >> >>> Hi all, >>> >>> I've created an example, which shows how Chrome Push API could work with >>> AeroGear Unified Push. It works without any changes to the UPS code base! >>> >>> Here is a sample app: >>> https://github.com/aerogear/aerogear-js-cookbook/pull/13 >>> And here is a demo: https://youtu.be/o6FdbJm-47Y >>> >>> Hope you will enjoy! :) >>> >>> Best regards, >>> Idel Pivnitskiy >>> -- >>> Twitter: @idelpivnitskiy >>> GitHub: @idelpivnitskiy >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> >> -- >> Oleg Matskiv >> Associate Quality Engineer >> Red Hat Mobile Application Platform >> omatskiv at redhat.com >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160628/173c1e43/attachment.html From lholmqui at redhat.com Tue Jun 28 08:43:10 2016 From: lholmqui at redhat.com (Luke Holmquist) Date: Tue, 28 Jun 2016 08:43:10 -0400 Subject: [aerogear-dev] Chrome Push API with AeroGear Unified Push Example In-Reply-To: References: Message-ID: On Mon, Jun 27, 2016 at 5:56 PM, Idel Pivnitskiy wrote: > Thank you, guys! > > >> i remember writing a blog post on using the Android variant for chrome, >> but i don't think i ever created an example for it. And i think it was >> only for packaged apps at that time. >> > > Yes, previously it worked just with chrome extensions and applications. > > >> I've actually been looking at Web Push a little lately and i noticed that >> to send a payload, there are some extra bits of info, that are attached to >> the subscription object that would probably need to be stored on the UPS >> somehow. I believe this is the same for FF too. > > > Chrome does not support payload in push notifications because they haven't > implemented encryption yet. Encryption of push messages is mandatory. > That's why they decided to keep it null. But according to the MDN, FF > should support it [1]. I will check. > check out the Service Workers Cookbook, for the Push With Payload example, https://serviceworke.rs/push-payload.html . It works in Firefox > > I also want to notice, that FCM/GCM does not support Web Push protocol > now. Googlers just implemented a Push API [2] in Chrome (browser part of > WebPush) and use their proprietary protocol for push message delivering. > > [1] https://developer.mozilla.org/ru/docs/Web/API/PushEvent > [2] https://www.w3.org/TR/push-api/ > > Best regards, > Idel Pivnitskiy > -- > Twitter: @idelpivnitskiy > GitHub: @idelpivnitskiy > > On Mon, Jun 27, 2016 at 3:47 PM, Luke Holmquist > wrote: > >> Awesome. >> >> i remember writing a blog post on using the Android variant for chrome, >> but i don't think i ever created an example for it. And i think it was >> only for packaged apps at that time. So this is really nice. >> >> >> I've actually been looking at Web Push a little lately and i noticed that >> to send a payload, there are some extra bits of info, that are attached to >> the subscription object that would probably need to be stored on the UPS >> somehow. I believe this is the same for FF too. >> >> I wonder if we should start looking at a "WebPush" variant. If only >> Safari would follow suit. >> >> >> >> On Mon, Jun 27, 2016 at 4:45 AM, Oleg Matskiv >> wrote: >> >>> Hello Idel, >>> Great demo ! >>> >>> Thank you for sharing. >>> >>> On Mon, Jun 27, 2016 at 2:25 AM, Idel Pivnitskiy < >>> idel.pivnitskiy at gmail.com> wrote: >>> >>>> Hi all, >>>> >>>> I've created an example, which shows how Chrome Push API could work >>>> with AeroGear Unified Push. It works without any changes to the UPS code >>>> base! >>>> >>>> Here is a sample app: >>>> https://github.com/aerogear/aerogear-js-cookbook/pull/13 >>>> And here is a demo: https://youtu.be/o6FdbJm-47Y >>>> >>>> Hope you will enjoy! :) >>>> >>>> Best regards, >>>> Idel Pivnitskiy >>>> -- >>>> Twitter: @idelpivnitskiy >>>> GitHub: @idelpivnitskiy >>>> >>>> _______________________________________________ >>>> aerogear-dev mailing list >>>> aerogear-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>>> >>> >>> >>> >>> -- >>> Oleg Matskiv >>> Associate Quality Engineer >>> Red Hat Mobile Application Platform >>> omatskiv at redhat.com >>> >>> _______________________________________________ >>> aerogear-dev mailing list >>> aerogear-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/aerogear-dev >>> >> >> >> _______________________________________________ >> aerogear-dev mailing list >> aerogear-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/aerogear-dev >> > > > _______________________________________________ > aerogear-dev mailing list > aerogear-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/aerogear-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160628/15aa9cd5/attachment-0001.html