语言

Menu
Sites
Language
Is it need privilege to open the page in new window?

Do privilege to open the app browser page (Google maps)  in the new window?
  I make the app for gear s - geolocation.
 I tested it with PQ device. Emulator and Remote lab can not help me yet.

I open in a new window,  i see google map - everything fine, but the app window( button back) is grayed  and  the button back in this grey window- does not work.

 I don't know how do screenshoots on PQ device. I think it can make with sdb command, but i don't find instructions.

响应

4 回复
AVSukhov

Hello,

About screenshoot:

https://developer.tizen.org/node/2098?langredirect=1

it would be better if you gave an example of the code.

Kilim A
[
    			1,
				cr.plugins_.Geolocation.prototype.acts.StopWatching,
				null,
				6428122168445654,
				false
			]
,			[
				3,
				cr.plugins_.Button.prototype.acts.SetEnabled,
				null,
				9530856092376893,
				false
				,[
				[
					3,
					1
				]
				]
			]
,			[
				4,
				cr.plugins_.Button.prototype.acts.SetEnabled,
				null,
				2714133210399219,
				false
				,[
				[
					3,
					0
				]
				]
			]
			]
		]
,		[
			0,
			null,
			false,
			null,
			6711281659041338,
			[
			[
				30,
				cr.plugins_.Touch.prototype.cnds.IsTouchingObject,
				null,
				0,
				false,
				false,
				false,
				4199297091847213,
				false
				,[
				[
					4,
					27
				]
				]
			]
			],
			[
			[
				7,
				cr.plugins_.Browser.prototype.acts.GoToURLWindow,
				null,
				5034994316249111,
				false
				,[
				[
					1,
					[
						10,
						[
							10,
							[
								10,
								[
									2,
									"http://maps.google.co.uk/maps?q="
								]
								,[
									20,
									1,
									cr.plugins_.Geolocation.prototype.exps.Latitude,
									false,
									null
								]
							]
							,[
								2,
								","
							]
						]
						,[
							20,
							1,
							cr.plugins_.Geolocation.prototype.exps.Longitude,
							false,
							null
						]
					]
				]
,				[
					1,
					[
						2,
						"NewWindow"
					]
				]
				]
			]
			]
		]
,		[
			0,
			null,
			false,
			null,
			1522454760475327,
			[
			],
			[
			]
		]
,		[
			0,
			null,
			false,
			null,
			8651618546852463,
			[
			[
				30,
				cr.plugins_.Touch.prototype.cnds.IsTouchingObject,
				null,
				0,
				false,
				false,
				false,
				5387693796917735,
				false
				,

 Main windows

 

Click button Map  and the New Window with google opening

When click on back  button to return in Main  app Window we see this

AVSukhov

Helllo,

You want open Intenet app better to use AppControl functionality

Alex Dem

Hi,
On Tizen Kiran devices window.open behaviour depends from required version (2.2. 2.3) and from 'access origin' tag in config.xml.
If 'access origin' has been missed Tizen launches browser for url. If you did not load remote page via browser I suppose you will have problem to return back to prev screen (remote page could not manage your app logic).
imo better use appcontrol (to launch browser) as recommended above.
Alexey.