and be sure to have cordova.js in your index.html like so:
<script type="text/javascript" src="cordova.js"></script>
This will load the plugins, but it will only work in a simulator or on a
device.
On Tue, Oct 11, 2016 at 7:13 PM, Julio Cesar Sanchez Hernandez <
jusanche(a)redhat.com> wrote:
Hi.
You don't have to reference any of the plugin .js files in your
index.html, they are loaded by Cordova.
Remove them from the index.html and try again.
On Tue, Oct 11, 2016 at 7:08 PM, lumaruma <martin-h.gross(a)hpe.com> wrote:
> Hi Aerogear team,
>
> I am trying to get your Cordova demo example with Plugin
> Aerogear-cordova-push (3.0.1) running in my app. But got back following
> exception:
> -->"Uncaught ReferenceError: push is not defined"
>
> If referencing the java scripts "aerogear.ajax.js" and
"aerogear-push.js"
> directly in index.html, i got following error message:
> --> "Uncaught TypeError: Cannot read property 'register' of
undefined"
>
> Please could you help me here?!
>
> Thanks and best regards
> Martin Gross
>
>
>
>
>
> --
> View this message in context:
http://aerogear-users.1116366.
>
n5.nabble.com/aerogear-cordova-push-tp925.html
> Sent from the aerogear-users mailing list archive at
Nabble.com.
> _______________________________________________
> Aerogear-users mailing list
> Aerogear-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/aerogear-users
>
_______________________________________________
Aerogear-users mailing list
Aerogear-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users
--
Cheers,
Erik Jan