Corinne
Posts: 0
Joined: Thu Sep 19, 2013 2:43 pm

google is not defined

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

google is not defined

Hello Corinne,

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

Corinne
Posts: 0
Joined: Thu Sep 19, 2013 2:43 pm

google is not defined

[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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

google is not defined

Hi,

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

Corinne
Posts: 0
Joined: Thu Sep 19, 2013 2:43 pm

google is not defined

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

google is not defined

Hi,

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

Return to “Issues”