cordova-plugin-meteor-webapp | Cordova plugin that serves a Meteor web app | Mobile Application library
kandi X-RAY | cordova-plugin-meteor-webapp Summary
kandi X-RAY | cordova-plugin-meteor-webapp Summary
Cordova apps don’t load web content over the network, but rely on locally stored HTML, CSS, JavaScript code and other assets.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cordova-plugin-meteor-webapp
cordova-plugin-meteor-webapp Key Features
cordova-plugin-meteor-webapp Examples and Code Snippets
Community Discussions
Trending Discussions on cordova-plugin-meteor-webapp
QUESTION
I’ve noticed for a long time that Hot Code Push works unreliably in our production app. It only works about half of the time. Reproducing on Android, when Hot Code Push fails, it is always with the below error.
Meteor 1.10.2, cordova-plugin-meteor-webapp 1.9.1.
As far as I can tell the error is thrown in AssetBundleDownloader.java and passed on by webapp-local-server.js
What might cause this?
...ANSWER
Answered 2020-Aug-11 at 12:32I ended up moving the files from one subfolder in my public
folder to S3, halving the size of public
. It seems this solved it 100%.
I'm guessing cordova-plugin-meteor-webapp
was more or less consistently failing to download the largest file, but for some reason ended up reporting errors on other files.
Edit: this is now mentioned in the official Meteor guide: https://guide.meteor.com/hot-code-push.html
QUESTION
basically i can't get my local or hosted mongo to connect to my app when running on meteor run android-device
. both local and hosted work fine with just meteor run
. i'm also unable to get this to run on the app published for testing to the play store but i assume once i'm able to run my hosted mongo locally i should be able to apply those fixes to the published version. i'm running ubuntu 18.04.
connecting to my local mongo when testing locally on my android phone:
so from what i’ve read online, the device and computer need to be on the same wifi network and i need to declare --mobile-server.
i’ve got my phone on airplane mode connected to the wifi network and plugged into my laptop for testing. i don’t believe this is a firewall issue because i have other hardware i’m connecting to this way for work.
these are the various scripts i’ve tried but none work. i’m at a complete loss! i’m running the latest meteor. anything in bold i’ve also tried on an emulator.
"android-device-local": "MONGO_URL=mongodb://:@localhost:27017/dbName meteor run android-device --mobile-server 192.168.0.102"
<-- ip address of my laptop on my wifi network
"android-device-local": "MONGO_URL=mongodb://:@localhost:27017/dbName meteor run android-device --mobile-server 192.168.0.102:3000"
"android-device-local": "MONGO_URL=mongodb://:@localhost:27017/dbName meteor run android-device --mobile-server locahost:3000"
“android-device-local”: “MONGO_URL=mongodb://:@localhost:27017/dbName meteor run android-device --mobile-server locahost:27017”
“android-device-local”: “MONGO_URL=mongodb://:@localhost:27017/dbName meteor run android-device --mobile-server 127.0.0.1”
“android-device-local”: “MONGO_URL=mongodb://:@localhost:27017/dbName meteor run android-device --mobile-server 127.0.0.1:27017”
“android-device-local”: “MONGO_URL=mongodb://:@localhost:27017/dbName meteor run android-device --mobile-server 127.0.0.1:3000”
“android-device-local”: “MONGO_URL=mongodb://:@localhost:27017/dbName meteor run android-device --mobile-server 192.168.0.109” <-- ip address of my phone on my wifi network
“android-device-local”: “MONGO_URL=mongodb://:@localhost:27017/dbName meteor run android-device --mobile-server 192.168.0.109:3000”
“android-device-local”: “MONGO_URL=mongodb://:@localhost:27017/dbName meteor run android-device --mobile-server localhost:12816” <-- chrome’s remote debugging url
connecting to my hosted mongo (mongodb.com)
i do understand that the --mobile-server
here would be an online server that hosts your app, but this is where i get confused… if it’s hosted on the play store, what does this mean exactly? i have a personal website (domain registered on google, hosted on aws amplify) that i'm using a subdomain on for this purpose.
i’ve completed this guide https://sergelobatch.com/beginners-guide-to-deploying-a-meteor-app-to-an-aws-server-with-meteor-up/ and am able to access the app via the ec2 public ipv4 address and the subdomain through my web browser and it’s pulling data from the db as expected. i've allowed the public ipv4 of my ec2 access to my mongodb network. (sidenote, it's not https, does that matter?)
again running locally i’ve tried these, still with no luck:
“MONGO_URL= meteor run android-device --mobile-server :80”
“MONGO_URL= meteor run android-device --mobile-server :3000”
“MONGO_URL= meteor run android-device --mobile-server http://:80”
^^^ i've tried all the above with also ROOT_URL=sub.domain.com
“MONGO_URL= meteor run android-device --mobile-server sub.domain.com”
“MONGO_URL= meteor run android-device --mobile-server sub.domain.com:80”
UPDATE:
i do see that i'm getting not found for some cordova assets. even after adding these packages manually these persist.
ANSWER
Answered 2020-Jun-30 at 00:07for future reference: the fix was adding autoupdate and the necessary config via https://docs.meteor.com/packages/autoupdate.html and running dev with the flag --mobile server :80
and running build with --server :80
QUESTION
I'm running meteor run ios-device ...
and watching the logs in Xcode. I'm using hot code push on localhost to make css changes that show up immediately in the iOS Simulator device. I add user_white.png to the images folder and in css point a url(...) to it. I get this error, which I don't understand, because user_white.png did not "already exist". Even if I stop-start the simulator in Xcode, this error persists. Any ideas what this error means?
ANSWER
Answered 2018-Aug-28 at 14:36Update: This is a bug in Meteor -- see https://github.com/meteor/meteor/issues/10181 for details, specifically https://github.com/meteor/cordova-plugin-meteor-webapp/issues/56. This problem causes iOS Meteor Cordova hot code push to fail. In the cases in which it is causing HCP to fail, the answer below is not sufficient, but the problem also occurs in Xcode debugging in ways that are solved by stop/start as described below.
For the record, the answer to this problem is that the error message is a very misleading sounding one, user_white.png is not already existing in a way that's meaningful to the user. The solution is simple enough: stop Xcode/iOS Simulator, stop the Meteor server running on localhost, then rerun meteor run ios-device ...
.
That rebuild of the server side and subsequent rebuild of the device client in Xcode makes the problem go away. The combination of hot code push and Xcode device simulator apparently don't handle the adding of a new css-referenced image in a way that reports what you really need to know, which is: stop everything and rebuild the app!
QUESTION
I'm troubleshooting an Android app with a white screen of death when I build for Android in Meteor. It works when displaying from browser on development, on deployed server, and on mobile browser.
The application is built in MeteorJS using Angular. Versions are Meteor 1.6.1.1 and angular:angular@1.5.3_1.
The error messages in console are as follows:
...ANSWER
Answered 2018-May-30 at 20:08It seems you are running Meteor
on a local server. When you are running your app on a local server, your server and your client (your app on the phone) must be on the same WiFi network and the network configuration shouldn’t prevent the client from reaching the server.
If you need your mobile app to connect to a different server, you can specify an address using the --mobile-server
option.
For production, you need to set the environment variables of ROOT_URL
which will be the URL (or domain) of your app accessible via internet, and MONGO_URL
which will be the URL of your MongoDB deployment.
Related examples;
- meteor run android-device --> Both server and the client must be on the same WiFi network
- meteor run android-device --mobile-server your_app.herokuapp.com -->
--mobile-server
param is used to define the server URL accessible on Internet - You can also define the related environment variables like ROOT_URL="https://your_app.herokuapp.com" and MONGO_URL="mongodb://user:password@myserver.com:10139"
You may refer to the official guide here, too.
QUESTION
I am currently experiencing a bug while compiling in Xcode for iOS with Meteor since I upgraded Xcode to iOS 11 and Meteor to 1.5.2
The build in the meteor console runs well but when trying to run on Xcode, I get an error.
Here are the details:
...ANSWER
Answered 2017-Oct-08 at 21:26I managed to make it work by removing "CDVLogger" in Build Phases > Compile Sources. Not sure this is the perfect solution though.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cordova-plugin-meteor-webapp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page