Can Cordova’s platform WWW available?

Apache Cordova support – besides iOS and Android – there are some other Cordova platforms.

I want to know if anyone knows Cordova’s platform www.

Use Android build just like us

cordova build android

I want to build for the web:

cordova build web

Therefore, the platform folder of the Cordova project should have a subfolder Web. There, the application can be launched using any browser on the desktop PC or Deploy to the web server.

Cordova has no platform www.

You can use your app in the browser, but unless you make some changes to the code, some errors will occur.

For example, all plugins for other platforms (ios, android) you have are Useless.

Open your application in the browser by visiting your_workspace/project_name/www.

It can work but depending on the complexity of the application, if some plugins Or the function is not available, you may receive an error (the Cordova core will actually be useless at this time)

You also need to use document.addEventListener(‘DOMContentLoaded’, function()()) to change your device_ready Event; if you choose to make the application browser ready, please add support for both.

Conclusion:

Through additional work and code, you can make your application The program is used as a website in a desktop/mobile browser. The functionality provided by Cordova is of no use in this case, so most events/listeners should have a wrapper, depending on the platform, it will use Cordova or Browser function.

Apache Cordova support-in addition to iOS and Android-there are other Cordova platforms.

I want to know, If anyone knows Cor dova’s platform www.

Build with Android just like us

cordova build android

I want to build for the web:< /p>

cordova build web

Therefore, the platform folder of the Cordova project should have a subfolder Web. There, the application can use the Any browser is launched or deployed to the web server.

Cordova does not have a platform www.

You can use it in the browser Your application, but unless you make some changes to the code, there will be some errors.

For example, all plugins for other platforms (ios, android) you have are useless.

Open your application in the browser by visiting your_workspace/project_name/www.

It can work but depending on the complexity of the application, if some plugins or features are not available, you may You will receive an error (the Cordova core will actually be useless at this time)

You also need to use document.addEventListener(‘DOMContentLoaded’, function()()) to change your device_ready event; if you choose to make the app The program browser is ready, please add support for both.

Conclusion:

With additional work and code, you can make your application in the desktop/mobile browser Use it as a website. The functionality provided by Cordova is of no use in this case, so most events/listeners should have a wrapper, and depending on the platform, it will use Cordova or browser functionality.

Leave a Comment

Your email address will not be published.