question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to make apk for Vue-Storefront? Is there any straight forward way to make it?

See original GitHub issue

What is the motivation for adding / enhancing this feature?

I have tried to convert it by using ‘Native-Vue’ and got success 90% as Current Version of Native-Vue(2.0) only support manual routing so I have changed the vue storefront routing section. so is there any straight forward way then it will be much easy to convert to apk and time saving also

What are the acceptance criteria

  • [
  1. Maintain single version of code for web, apk
  2. single command build ] …

Can you complete this feature request by yourself?

  • YES
  • NO

Which Release Cycle state this refers to? Info for developer.

Pick one option.

  • This is a normal feature request. This should be available on https://test.storefrontcloud.io and then after tests this can be added to next Vue Storefront version. In this case Developer should create branch from develop branch and create Pull Request 2. Feature / Improvement back to develop.
  • (Pick this option only if you’re sure) This is an important improvement request for current Release Candidate version on https://next.storefrontcloud.io and should be placed in next RC version. In this case Developer should create branch from release branch and create Pull Request 3. Stabilisation fix back to release.
  • (Pick this option only if you’re sure) This is a critical improvement request for current Stable version on https://demo.storefrontcloud.io and should be placed in next stable version. In this case Developer should create branch from hotfix or master branch and create Pull Request 4. Hotfix back to hotfix.

Additional information

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

0reactions
mkastanedacommented, Jun 25, 2020

Would like to share our experience with this.

We have deployed a Magento 1/VueStrorefront instance for a large eCommerce retailer México under an Apache Cordova mobile app (Android/IOs) . The PWA is traditionally mounted on a web server (node/yarn) which the app basically fetches the PWA content on a WebView iframe and the native Cordova side interacts directly with the PWA through postMessages for features like: bar code scanner and push notifications with Firebase. Works fine, except that if the PWA is down, the app is down too. (we loaded an offline static version of the PWA with wget, which is loaded in case server conection fails, workaround …)

We are considering moving the PWA within the apk bundle, meaning a serverless PWA emdeded in the app’s WebView. The only chalenge here is to get the PWA to build locally and generate all the required assets under the cordova project so it can be rendered locally.

This is the architecture so far (sorry but it’s in Spanish):

image

During my research, found these:

CordoVue: https://vuejsfeed.com/blog/cordovue-apache-cordova-app-with-vue-js

Cordava + Vue + Webpack: https://itnext.io/make-hybrid-platform-cordova-vue-webpack-2fb7031c4f9b

Before making further tests, do you guys think this is possible ?

From a theoretical point of view, I think it is. Would these tools correctly build the PWA ? Any risks that you see here ? at the end is about the generate the required HTML/Javascript/CSS files so you can bundle it on the Cordova project and get executed by the browser. Which is what basically cross-env/yarn/webpack do.

I guess PM2 is out of the game on this case, isnt it ? As you only need node/webpack/yarn to build the HTML assets/service worker. Would not run under a server anymore.

Any ideas are well appreciated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make apk for Vue-Storefront? Is there any straight ...
I have tried to convert it by using 'Native-Vue' and got success 90% as ... storefront routing section. so is there any straight...
Read more >
Application context | Vue Storefront 2
The best and most straightforward way of extending the Application context is to use the integrationPlugin helper. It gives access to the integration...
Read more >
Key Concepts | Vue Storefront Next
The first thing you usually want to do after setting up a new project is some configuration. No matter if you want to...
Read more >
Progressive Web Apps: the Best of Mobile and Web - Codica
The cost to build a Progressive Web App . . ... This way, visitors access a web application at a ... straightforward, a...
Read more >
Emplois et concours freelance | Freelancer - Page 6
We are looking for a MS Word expert, who can create a Word document and write ... Developing a straight-forward python scraper for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found