Ejecta icon indicating copy to clipboard operation
Ejecta copied to clipboard

webview ?

Open matrixreal opened this issue 9 years ago • 9 comments

@finscn hi i would like to try webview in order to test some multiplayer plugin can you provide me an example ? how to lunch a webview

matrixreal avatar May 12 '15 05:05 matrixreal

it's here : https://github.com/finscn/Ejecta/blob/master/example/index.js

the key of the code :

if (Ejecta.WebView) {

    window.webview = new Ejecta.WebView();
    webview.hide();
    webview.src = "webview.html";

    webview.addEventListener("load", function() {
        webview.show();
    });

}

finscn avatar May 12 '15 05:05 finscn

i'm sorry i don't understand well i have an game with index.js so i have to add the lines of your index.js to mine ? that is ?

matrixreal avatar May 12 '15 05:05 matrixreal

@finscn its okay i did it but i got message "exported games won't work until you upload them on protocol ..... for security reason

matrixreal avatar May 12 '15 15:05 matrixreal

@finscn is it possible to use full screen with webview and set the width and height to screen widht and height ? i mean that foe example when i lunch my app and i move by touch to up or down it scroll to up or down i would like that it lock to full screen and do'nt move see the picture attached thanks ejecta

matrixreal avatar Jul 14 '15 21:07 matrixreal

@matrixreal do it via script in your html page.

window.addEventListener("touchmove", function(event) {
    event.preventDefault();
}, false);

finscn avatar Jul 15 '15 16:07 finscn

@finscn this not work but this work perfectly

matrixreal avatar Jul 22 '15 21:07 matrixreal

@finscn just one question please ... iAd and admob don't work on web view?

matrixreal avatar Jul 22 '15 21:07 matrixreal

@finscn any news ?i just have one question ? does admob and iad work on webview ? thanks for reply

matrixreal avatar Jul 23 '15 08:07 matrixreal

I've no idea ...
I think iAd doesn't support web , Admob may could , but I don't know how to do

finscn avatar Jul 23 '15 08:07 finscn