React Native Geny Motion Loading issue - javascript

I am using react native
react-native-cli: 2.0.1 react-native: 0.55.3
I was running via react-native run-android
The screen is always loading the app (Debugger Mode)
127.0.0.1:8081 responding React Native packager is running.
NOTE: It was sudden issue, it was working fine till yesterday. *PC is Restarted several time and also JS server using kill -9 PID

It may be due to you have start endabling Debug JS Remotely while running your project.
You can Stop Debug JS Remotely and reload again. It will work.

It could be related to Watchman. I had a similar problem, where "react-native run-android" would run successfully, but the app would be stuck on loading in the emulator. After trying a myriad of things, what has worked for me is to disable watchman in the project directory (or uninstall) and refresh the app manually. If the app loads, then the issue is with Watchman.

Related

React Native White Screen on iOS Simulator

Up until recently, my app was running on iOS. I am now running into a white screen issue when running npx run-ios.
When running npx run-ios, the simulator starts up and builds the application, but Metro bundler says warn No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB. on the terminal. Which is odd as the command itself opens the simulator and builds the application.
I am also unable to access the developer menu in both the terminal and on the simulator. So I can't access/edit bundler configs.
Things I've tried:
I've tried to delete the node_modules and run npm-install.
Deleting the Pods folder and Podfile.lock and then running pod install.
As I was working in a development branch, so I checked out to the main branch, which was working fine before, but the same issue persists, so I am doubtful that it's my code (I might be wrong however".
Doing Clear device and settingson the simulator.
Trying a different simulator.
I've seen on different similar posts that the simulator and my dev environment should be on the same network. However, this was never an issue before, and there is also no wifi edit function on the simulator.
Running the iOS application from Xcode instead

React app taking too much time for loading on local system

I just started working on new reactjs app for learning purpose.
I installed app using this command: npx create-react-app reactnotes.
Then I am trying to start the app using this command: yarn start.
But in the browser it's been 2 minutes and the app is still loading but not opening on port http://localhost:3000/ default by React app. In the terminal
react-app-start only that is shown their and code is error-free.
I had the same issue and realized that it's happening while the network tab is open for the developer tool, so after I found the network throttling was enabled for "Fast 3G", just changed it to "No Throttling", so the issue was solved

nativescript 4.2. Error while building android app with release flag

I've done some app for IOS and Android.
IOS is working fine and it's poblished on App store since 3 weeks.
So, the time has come for android. I have to do some css tweaks, beacuse android was looking different in some aspects.
After when i did it, i run tns run android, next emulator appear.
All is working well, so i've run tests on Firebase console.
It was a suprise for me, beacuse i saw this error: (Emulator installed is launching app without issues.)
Nativescript fails to load code that holds common js functions.
Here is part of my app.js
And, right now i'm able to see this error in my emulator.
Steps to reproduce:
- run tns run android (app is working well)
- do some typo in any js file (make any error): livesync will run again, and as result i will see this error.
My question is: do android have problems with requiring this file? IOS is working very well, but i'm unable to deploy android.
Thank you.

ionic 2 - Application error DEVICE_READY_TIMEOUT

My Ionic 2 running on Opensuse Linux. The app runs and builds fine, However I am not able to change DEVICE_READY_TIMEOUT as it is set to 2000ms
I tried changing the value of DEVICE_READY_TIMEOUT in main.js, but that file is regenerated every time I run ionic build or run. Could anyone help ?
At the moment it throws an Application Error, on debugging in browser it says
main.js:25553 Native: device ready did not fire within 2000ms. This
can happen when plugins are in an inconsistent state. Try removing
plugins from plugins/ and reinstalling them. (anonymous) #
main.js:25553 main.js:25548 DEVICE READY FIRED AFTER 19860 ms
I have tried reinstalling a number of times, its the same. I am able to work with the app through chrome debugging. But on the android phone it shows an Application Error Dialog box.
The issue surfaced only after adding the angularfire2 library for firebase database.
System Info
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 0.0.48
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.1
Node Version: v6.9.0
Xcode version: Not installed
OK Finally found out, the issue started when I was forced to remove the plugins and reinstall them due to the bugs in the current ionic 2 Rc3 framework. I ended up not reinstalling the device plugin as it wasn't saved in the package.json file nor in the config.xml.
so the solution was to simply add the device plugin
ionic add cordova-device-plugin --save
Don't forget to add the --save option, as this adds it to your config file, and is useful should you need to reinstall the platform & plugins over again.
The other part of the problem - TIMEOUT_ERRORS can be solved by adding a line to the config.xml , if your device is taking longer to load up during the startup.
<preference name="loadUrlTimeoutValue" value="400000"/>
The timeout value is in milliseconds. as my app was taking around 30 seconds to load, I have set the timeout value to 40 secs.
https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-device/

Meteor app suddenly no longer runs on iOS

My Meteor-based app no longer works as designed on iOS, without me having changed anything relevant. The app still works when run from a local server (http://localhost:3000) as well as when hosted at meteor.com. But, in an iOS simulator and when deployed to an iOS device through xCode, the app fails to run properly.
The app opens with a form that needs to be filled in by the user. When submitting the form, on iOS, the entered values briefly are stored in session variables, but almost immediately the session variables are emptied and the form is displayed again. (What should happen is for an external JSON file to be loaded, based on the form values, after which the contents of that JSON file is manipulated and displayed.)
I just now upgraded to the latest version of Meteor, and xCode did an upgrade itself in the background.
The app is supposed to load a Google font file (from fonts.googleapis.com), but though this works fine when the app is served from either the localhost or meteor, the font does not appear to be loaded when the app runs on iOS.
I'm sorry I don't have actual example code (the whole app?) or a running version of the app that I can show you. As the app is not yet publicly available, I'm a bit reluctant to publish it here. :(
Is there a way to meaningfully debug a Meteor app running on iOS? Is there something obvious I'm missing in the deployment?
Turns out there's an issue with meteor 1.0.4 and building a project using Cordova (https://github.com/meteor/meteor/issues/3814).
I downgraded to meteor 1.0.3 through:
meteor update --release 1.0.3
Then, I deleted the Cordova folder in .meteor/local/ with
rm -R cordova-build
Then, I patched 1.0.3 to 1.0.3.2 with
meteor update --patch
This solved the problem.

Categories