[Plugin] Windows Phone Updated - New Tutorial!

Post your completed addons to share with the community

Post » Thu May 30, 2013 12:06 pm

@thehen I received this warning in Visual Studio:

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

The highlighted method is Browser_ScriptNotify. I notice that inside the method, you check if (valueArr[0] == "gameLoaded") then set the browser.opacity to 1 to hide the splash screen. Maybe that leads to my previous issue of not being able to launch the game directly except by long-pressing the back button?

The game seems to work fine if I remove the Grid.Background and remove the Opacity line inside Phone:WebBrowser
B
12
S
4
G
1
Posts: 104
Reputation: 1,512

Post » Fri May 31, 2013 12:29 pm

Plugin has been updated:

- Fixed it sometimes getting stuck on splash screen
- Added a solid splash screen background colour (it was using white or black depending on phone settings before)
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Mon Jun 03, 2013 2:47 am

Hi, need help, for exported in Windows Phone 8,Is there anyone who can help me?
Thanks
B
2
Posts: 1
Reputation: 152

Post » Mon Jun 03, 2013 9:09 am

@ian200 yep, I can. What seems to be the problem?
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Thu Jun 06, 2013 11:47 am

Hello

http://www.youtube.com/watch?feature=player_embedded&v=VQb5caeSo00

Windows 8.1 will bring user-selectable wallpaper and also live background (like Androids Live Wallpapers) to Windows 8

and my question is..

will this be possible with construct 2/html5 ? (too early for questions? maybe ;))
B
27
S
8
G
3
Posts: 77
Reputation: 2,883

Post » Thu Jun 06, 2013 1:04 pm

@thehen Question about vibration.

I have a vibration pattern for browser as "100,50,100" (100 milliseconds on, 50 milliseconds pause then 100 milliseconds back on.)

Does the winphone plugin support the pattern and pause parameters?

Update:

ok, followed instructions and I have it working :D Haven't tried the vibration pauses yet.

My project uses portrait mode. When I test in device it's landscape. How do I set the orientation fixed to portrait? I changed the values of 800 x 480 to 480 x 800 in the index.html but it didn't work.


bon4ire2013-06-07 05:54:07
B
31
S
6
G
4
Posts: 160
Reputation: 5,998

Post » Thu Jun 06, 2013 3:37 pm

Thanks for the plugin it help me pass the certification due to the back button best practices of WP8.
B
17
S
5
Posts: 2
Reputation: 1,294

Post » Fri Jun 07, 2013 9:07 am

@stefanos @Ashley is probably a good person to ask regarding Windows 8 functionality.

@bon4ire the vibration just works for a single duration, though you could use the 'wait' action to do a sequence.

@andresteves cool!

Just a heads up to everyone, some of my async C# is causing crashes when using the action 'request store listing' with a poor internet connection. I'm working on a fix at the moment, but I'd recommend not submitting a game with IAP until this is resolved.
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Fri Jun 07, 2013 3:38 pm

@thehen Is there a portrait version of the template available? I tried swapping the 800 by 480 values around in the index.html but it didn't work.
B
31
S
6
G
4
Posts: 160
Reputation: 5,998

Post » Sat Jun 08, 2013 1:34 am

@bon4ire change the orientation from landscape to portrait in the mainpage.xaml file
B
12
S
4
G
1
Posts: 104
Reputation: 1,512

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests