语言

Menu
Sites
Language
Google Map API- Emulator - BlackScreen

Hello,

 I have a problem with integrating Google or OSM API in Web Tizen project  ( mobil 2.3).

1. I have Google API   or http://pastebin.com/BAQz1ebv

 

2. Config file with only location  and internet privilege

3. Index. html  or http://pastebin.com/QF8ApN6d

4. The Result on Simulator and Emulator

On Emulator and PQ-device we see only black screen

File Logs on Emulator 

What's wrong?

 I have see info about OSM Map in Help SDK. There are only information  for native app :

 P.S.

SORRY  but spam-filter not alow post js and another code, i don't know why

编辑者为: Kilim A 07 2月, 2015
查看选择的答案

响应

13 回复
Mark as answer
Marco Buettner

Do you setup access to googleapis.com? You can also use * to allow very http connection

Kilim A

When i run simply in Chrome - i don't need ane access

 

 And when we use OSM Map - we see  the same ( see Emul and Simul screenshoots). In OSM - we don't need any access.

 The problem  is not there

 

Kilim A

How add "to allow very http connection"?

 Where? In config file or not?

AVSukhov

In config.xml add <access origin="*" subdomains="true" />

John Ixion

You should be able to post a link to pastebin.com without an issue.

Kilim A

Sorry but i don't understand.For what post link to pastebin.com?
 

Kilim A

Ok, Thank you. I edit it in main post

Marco Buettner

how looks your config.xml?

Kilim A
Marco Buettner
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/GeoPoint" version="1.0.0" viewmodes="maximized">
    <access origin="*" subdomains="true"/>
    <tizen:application id="FbdXxOsAZq.GeoPoint" package="FbdXxOsAZq" required_version="2.3"/>
    <content src="index.html"/>
    <feature name="http://tizen.org/feature/screen.size.all"/>
    <icon src="icon.png"/>
    <name>GeoPoint</name>
    <tizen:privilege name="http://tizen.org/privilege/internet"/>
    <tizen:privilege name="http://tizen.org/privilege/location"/>
    <tizen:profile name="mobile"/>
</widget>

 

Kilim A

Yes. Thank you. I'm afraid post code - very ofen i see spam list from Mollom.

 Everything right in config file, Marco?
 

Kilim A

How about another type of policy?

 SDK 2.3 -Help-Tizen Mobile Web App Programming > Application Development Process > Creating the Application Project > Setting Widget Configuration-Policy

 I don't see  the difference between  allow-navigation and access.

Kilim A

The problem was in incorrect minification js

 Anyone know how turn wi fi on in Emulator ?