How can I make a Webview project?

Hello there.

I just started the Framework7 engine, made a web-based application. It works great.

I want to make an android application for this. I have to present it as webview from the remote server via URL.

The standard Android Webview cannot run the project. I’m getting a javascript error.

Cordova xwalk works great, but lazyload does not work and no longer supports.

What should I do?

Have you tried creating a project using the Framework7 CLI?

My project is on the web (F7 Core based). It works without problems. When I want to view it with Webview (without xwalk), I get the following error;

D/SystemWebChromeClient: (weburl) : Line 1 : Uncaught TypeError: Property ‘$$’ of object [object Object] is not a function
I/chromium: [INFO:CONSOLE(1)] “Uncaught TypeError: Property ‘$$’ of object [object Object] is not a function”, source: (weburl) (1)

I did not install Framework7 CLI. Let me try, thank you.

Did you run the initialisation code correctly?

And are you including F7 Javascript/CSS files locally, or loaded remotely?

loaded remotely bcs my app on web, not local hybird app.

yes initialisation code correctly It works on the web without problems.

sorry my bad.

chrome based webview work fine with android 7+
crosswalk work fine with android 4.4 => 7
my emulator was set for android 4.1 :frowning: