<div dir="ltr">and be sure to have cordova.js in your index.html like so:<div><br></div><div></div><div><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container" style="box-sizing:border-box;border-collapse:collapse;color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="gmail-LC52" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line" style="box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre"><<span class="gmail-pl-ent" style="box-sizing:border-box;color:rgb(99,163,92)">script</span> <span class="gmail-pl-e" style="box-sizing:border-box;color:rgb(121,93,163)">type</span>=<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>text/javascript<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span> <span class="gmail-pl-e" style="box-sizing:border-box;color:rgb(121,93,163)">src</span>=<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(24,54,145)"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>cordova.js<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span>></<span class="gmail-pl-ent" style="box-sizing:border-box;color:rgb(99,163,92)">script</span>></td></tr></tbody></table></div><div><br></div><div>This will load the plugins, but it will only work in a simulator or on a device.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 11, 2016 at 7:13 PM, Julio Cesar Sanchez Hernandez <span dir="ltr"><<a href="mailto:jusanche@redhat.com" target="_blank">jusanche@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi.<div><br></div><div>You don't have to reference any of the plugin .js files in your index.html, they are loaded by Cordova. </div><div>Remove them from the index.html and try again.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 11, 2016 at 7:08 PM, lumaruma <span dir="ltr"><<a href="mailto:martin-h.gross@hpe.com" target="_blank">martin-h.gross@hpe.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Aerogear team,<br>
<br>
I am trying to get your Cordova demo example with Plugin<br>
Aerogear-cordova-push (3.0.1) running in my app. But got back following<br>
exception:<br>
-->"Uncaught ReferenceError: push is not defined"<br>
<br>
If referencing the java scripts "aerogear.ajax.js" and "aerogear-push.js"<br>
directly in index.html, i got following error message:<br>
--> "Uncaught TypeError: Cannot read property 'register' of undefined"<br>
<br>
Please could you help me here?!<br>
<br>
Thanks and best regards<br>
Martin Gross<br>
<br>
<br>
<br>
<br><span class="HOEnZb"><font color="#888888">
<br>
--<br>
View this message in context: <a href="http://aerogear-users.1116366.n5.nabble.com/aerogear-cordova-push-tp925.html" rel="noreferrer" target="_blank">http://aerogear-users.1116366.<wbr>n5.nabble.com/aerogear-cordova<wbr>-push-tp925.html</a><br>
Sent from the aerogear-users mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/aerogear-users</a><br>
</font></span></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/aerogear-<wbr>users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px">Cheers,</span><br></div><div dir="ltr"><div> Erik Jan</div></div></div></div></div></div>
</div>