Page 1 of 1

google is not defined

Posted: Thu Oct 31, 2013 10:53 pm
by Corinne

Logcat from eclipse Error .

code
10-31 15:36:43.388: D/CordovaLog(10250): file:///android_asset/www/Splash.html: Line 1 : Uncaught ReferenceError: google is not defined

/code

This only happens when App is run in flight mode(No Network).
Otherwise the App functions perfectly w/o network.

Is there a way to prevent this error?
I'm assuming its due to a script failing to load. This one..
code
<script type="text&#47;javascript" src="http:&#47;&#47;maps&#46;google&#46;com&#47;maps&#47;api&#47;js?sensor=true">
<&#47;script>
/code

Obviously I don't need the mapping to work if there is no cel service.

Should I just Ignore this ?

Thanks


google is not defined

Posted: Thu Oct 31, 2013 11:18 pm
by Illya Stepanov

Hello Corinne,

I think you can ignore this error.
And if you test with network connection does it appears in Logcat?


google is not defined

Posted: Thu Oct 31, 2013 11:51 pm
by Corinne

[quote:]
And if you test with network connection does it appears in Logcat?
[/quote]

No It does not.
Just want to make sure it does not affect the code in some way..
Or if its preventable by dynamically loading if network connection true.


google is not defined

Posted: Fri Nov 01, 2013 12:25 pm
by Kateryna Grynko

Hi,

Add http://maps.google.com/maps/api/js?se... as a custom JS code.


google is not defined

Posted: Tue Nov 19, 2013 7:21 pm
by Corinne

I took the returned results of http://maps.google.com/maps/api/js?se...
and added it as js text in page header.
But throws errors on load.

So not sure how to deal with this..

Thanks


google is not defined

Posted: Tue Nov 19, 2013 10:26 pm
by Alena Prykhodko

Hi,

Go App Settings - External rosources - User-defined resources, paste link there and press Add.