<div dir="ltr">My fork is here<div><a href="https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM">https://github.com/jcesarmobile/phonegap-plugin-push/tree/FCM</a><br></div><div><br></div><div>I didn&#39;t add the .json and I&#39;m receiving push notifications</div><div><br></div><div>Last time I read the GCM docs they were already talking about that .json (I think it was on February or March), it&#39;s not a new thing on FCM.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 9, 2016 at 6:38 PM, Summers Pittman <span dir="ltr">&lt;<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Jun 9, 2016 at 11:00 AM, Julio Cesar Sanchez Hernandez <span dir="ltr">&lt;<a href="mailto:jusanche@redhat.com" target="_blank">jusanche@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">I don&#39;t think that file is really needed, the phonegap-plugin-push (<a href="https://github.com/phonegap/phonegap-plugin-push" target="_blank">https://github.com/phonegap/phonegap-plugin-push</a>) doesn&#39;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</div></blockquote><div><br></div></span><div>This plugin isn&#39;t using Firebase.  We didn&#39;t need google-services.json for GCM3.</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>I forked the phonegap plugin to add FCM support and it works too without the google-services.json file too.</div><div><br></div><div><br></div></div></blockquote></span><div>Sauce?</div><div><br></div><div>Firebase requires two variables, the application id and the sender id.  Fortunately the senderId is embedded in the applicationId.</div><div><br></div><div>I&#39;ve made a PoC version of AGDroid-push here : <a href="https://github.com/secondsun/aerogear-android-push/tree/no_google_services" target="_blank">https://github.com/secondsun/aerogear-android-push/tree/no_google_services</a></div><div>and a Poc Puhs app here : <a href="https://github.com/secondsun/unified-push-helloworld/tree/no_google_services" target="_blank">https://github.com/secondsun/unified-push-helloworld/tree/no_google_services</a></div><div> </div><div><br></div><div>As you can see I&#39;ve just overloaded the SenderId.</div><div><div class="h5"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><span>On Thu, Jun 9, 2016 at 2:04 PM, Summers Pittman <span dir="ltr">&lt;<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>&gt;</span> wrote:<br></span><div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Thu, Jun 9, 2016 at 2:19 AM, Erik Jan de Wit <span dir="ltr">&lt;<a href="mailto:edewit@redhat.com" target="_blank">edewit@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><div><br></div></span><div>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 &#39;app&#39; folder in Crodova land, is it WWW foldeR? </div><div><br></div><div><a href="https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova" target="_blank">https://github.com/jboss-mobile/unified-push-helloworld/tree/master/cordova</a><br></div><div><br></div><div>hrm...</div><div><div><div> </div></div></div></div></div></div></blockquote><div><br></div></span><div>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:</div><div><br></div><div><pre style="margin-top:0px;margin-bottom:1em;padding:5px;border:0px;font-size:13px;width:auto;max-height:600px;overflow:auto;font-family:Consolas,Menlo,Monaco,&quot;Lucida Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier New&quot;,monospace,sans-serif;color:rgb(57,51,24);word-wrap:normal;background-color:rgb(239,240,241)"><code style="margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,&quot;Lucida Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier New&quot;,monospace,sans-serif;white-space:inherit"><span style="margin:0px;padding:0px;border:0px;color:rgb(125,39,39)">&lt;resource-file</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> </span><span style="margin:0px;padding:0px;border:0px;color:rgb(230,67,32)">src</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">=</span><span style="margin:0px;padding:0px;border:0px;color:rgb(15,116,189)">&quot;src/android/google-services.json&quot;</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> </span><span style="margin:0px;padding:0px;border:0px;color:rgb(230,67,32)">target</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)">=</span><span style="margin:0px;padding:0px;border:0px;color:rgb(15,116,189)">&quot;google-services.json&quot;</span><span style="margin:0px;padding:0px;border:0px;color:rgb(48,51,54)"> </span><span style="margin:0px;padding:0px;border:0px;color:rgb(125,39,39)">/&gt;</span></code></pre></div><div><a href="https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64" target="_blank">https://github.com/aerogear/aerogear-cordova-push/blob/master/plugin.xml#L64</a></div><div><br></div><div>Don&#39;t know what the content is of this file seems the <a href="https://github.com/jboss-mobile/unified-push-helloworld/pull/31" style="font-size:12.8px" target="_blank">https://github.com/jboss-mobile/unified-push-helloworld/pull/31</a> demo doesn&#39;t have this google-services.json</div></div></div></div></blockquote><div><br></div></span><div>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 &quot;google-services.json&quot; takes the user exactly where they need to go.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><span><font color="#888888"><br></font></span></div><span><font color="#888888"><span><font color="#888888"><div><br></div></font></span></font></span></div><span><font color="#888888"><span><font color="#888888">-- <br><div data-smartmail="gmail_signature"><div dir="ltr">Cheers,<div>       Erik Jan</div></div></div>
</font></span></font></span></div></div><span>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></span></blockquote></div><br></div></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div></div></div><br></div></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>