<div dir="ltr">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&#39;s not there say that they need to create / generate it before they can use the plugin.<div><br></div><div>WDYT?<br><div><br></div><div><br></div><div>[1] <a href="https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/#plugin-hooks-pluginxml">https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/#plugin-hooks-pluginxml</a></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">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><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 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:0 0 0 .8ex;border-left:1px #ccc solid;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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><span><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888"><div><br></div></font></span></font></span></div><span class="HOEnZb"><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 class="">
<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">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><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Cheers,<div>       Erik Jan</div></div></div>
</div>