Comments (5)
Found it . The problem is that the web view is starting to quickly and the node.js has not started yet .
I added an alert in the web view before everything and waited for a while , when i closed the alert Everything worked.
from capacitor-nodejs.
Hey @sce9sc,
thanks for the report.
This is indeed an issue that the nodejs engine takes longer to load than the web view on some devices. I'll add an event that fires after the nodejs engine is fully started.
from capacitor-nodejs.
You may not need to add anything . when node starts node will send the event to the webview .
channel.send("start", "start");
This is what I did.
from capacitor-nodejs.
You're right, that would be a simple workaround. But i think it's better to integrate something like this directly into the plugin and add it to the docs and qickstart guide to generally avoid such issues in future.
from capacitor-nodejs.
Fixed in v1.0.0-beta.1 which adds whenReady()
method.
from capacitor-nodejs.
Related Issues (20)
- Separate example projects in a new repo HOT 2
- npm install failed HOT 2
- Cannot find module 'bridge' on Android HOT 1
- Upgrade to CapacitorJS v5
- Rewrite the Bridge package in TypeScript
- Start the node.js runtime as child process on ElectronJS
- support for native node modules build HOT 5
- Did you rebase the main branch? HOT 1
- How does one use the new builtin bridge package from the node project? HOT 6
- Add a method to stop nodejs HOT 1
- How to use manual mode start? HOT 4
- iOS support? HOT 13
- How do I use this plugin in Quasar's capacitor. HOT 3
- Any way of debugging the nodejs code? HOT 5
- Execution failed for task ':capacitor-nodejs:compileDebugJavaWithJavac'. > error: invalid source release: 17 HOT 4
- node.js upgrade HOT 10
- Add TypeScript Declaration File for Bridge Package HOT 1
- Example Project HOT 8
- Allow manual startup of the node.js runtime and pass environment variables HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capacitor-nodejs.