[iOS & Android] WebViews (in-app browser) [OBSOLETE]

Abliblablobla

  • *
  • Posts: 524
Webviews for iOS and Android (in-app browser)


Introduction
This is a new extension for Stencyl 3.x that lets you create webviews for both iOS and Android devices. Now you can open a new link inside your game (for example you want to show something cool on your website: a new game, some news, future updates) without leaving the game and open the browser application.

UPDATE: As of July 20th (2014) there is a new version of this extension (1.1) with a lot of bug fixes and support for different screen sizes and ratios! If you are using this extension, I strongly recommend to update it to the latest version. You can download the new version of this extension below (it is attached at the end of the post).

Click here to learn how to Install or Update an engine extension.

Blocks:
 - Create webview with url: [ ] width: [ ] height: [ ] at (x: [ ] y: [ ]).
 - Hide webview.

Works on:
 - iOS 6.x and 7.x (iPhone and iPad)
 - Android 2.3.x (Gingerbread), 4.0.x (Ice Cream Sandwich), 4.1.x - 4.3.x (Jelly Bean), 4.4.x (KitKat)

Suggestions
Feel free to post your suggestions!

Support me!
This is a completely free extension and it will always be free!
If you feel like you want to thank me with a cup of tea click on the button below to donate. I want to remind you that this is a completely free extension, so you can download and use it for commercial purposes without any donation!


(NOTE: Payments are processed through PayPal. You can use your PayPal account or your credit card to make a donation.)

Let me know if everything works as expected!

« Last Edit: February 15, 2015, 10:51:56 am by Jon »
.: BuruBuru :.

Gintonic

  • Posts: 69
Hello Abliblablobla,

does this extension works also with Stencyl's openFL version?

[edit]

...oh, I see... it does :)

« Last Edit: December 09, 2013, 07:42:17 am by Gintonic »

Gintonic

  • Posts: 69
I have a problem setting the webview to the screen width/height.

This works on Android and iPad:


width: [screen [width]] * [Code: [Engine.SCALE]]


On iPhone (3.5'', 4'') the width is twice as large as the screen width.

so, for iPhone

width: [screen [width]]

works.


Is it a bug in the extension or a problem with the simulator?
Unfortunately I can not test on a real iPhone.


Any idea, what's wrong here?

Dont work on stencyl3 nme final. Any advice?

the following error


[LOG] Called from a C function
[LOG] Called from [InstallTool.hx,119]
[LOG] Uncaught exception - [file_contents,/Users/kjhkjh/Desktop/stencyl-nme-mac-final/plaf/haxe/extensions/webviews]

Stevetheipad

  • Posts: 1304
You're a god. I'm going to try this but if it works that's going to be super useful. :)

Does it really works?

Stevetheipad

  • Posts: 1304
Tried but I don't think I installed it in the right place. I think I have an older version of 3.0 because I can't find the plafs or haxe folder.

Abliblablobla

  • *
  • Posts: 524
I have just updated this extension to 1.1.

Changelog:
 - This extension now supports different screen sizes and ratios.
 - Minor fixes.

Let me know if everything works well and feel free to post your suggestions!
.: BuruBuru :.

Minimo

  • Posts: 201
Hi.

I tried to use your extension recently.
It doesn't seem to support zoom in iOS... 

Is there a way to enable zoom ?
I enabled 'multi-touch' in the mobile settings...



Abliblablobla

  • *
  • Posts: 524
Hi.

I tried to use your extension recently.
It doesn't seem to support zoom in iOS... 

Is there a way to enable zoom ?
I enabled 'multi-touch' in the mobile settings...

I will add zoom support as soon as I have some spare time!
.: BuruBuru :.

leogallardo

  • *
  • Posts: 28
This is so awesome to get user's feedback without sending them to a web or email if the review is bad or if they found a bug!

Will this app add a different permission to install my game?

Jon

  • *
  • Posts: 17524
Starting February 1st, Apple requires all iOS apps to include 64-bit support. We've added this support to the core toolset and extensions, but users using your extension will need an updated version from you to continue using your extension in their games.

Please see the following forum topic for instructions on how to update your extension. All questions regarding the upgrade should be posted on that topic. Thanks!

http://community.stencyl.com/index.php/topic,38276.0.html

panda84

  • Posts: 28
Hi Abliblablobla,

Thanks for this extension I really appreciate the work you put in! Do you have any plans to update it to support 64-bit on iOS? When I went to do it myself I couldn't find any build.xml file in the project folder. Any advice would be appreciated.

Thanks again!

Jon

  • *
  • Posts: 17524
A new, rewritten version of this extension can be found here.
http://community.stencyl.com/index.php/topic,38900.0.html