What is the difference between web and app network status in same device - react-native

It seems like that my iOS App loses packets but in website (in Chrome) does not in same device. Is there any notable differences in network status between web and app in a same device?
The circumstances are in iPhone, iPad, Chrome, react-native.
Network info api in react-native is not quite useful in this situation.

Related

Network throughput in ReactNative

Network throughput in Reactnative
I am developing a video streaming App using ReactNative. The App fetches the video frames in the JS layer and sending it native module to render.
App uses the https://www.npmjs.com/package/react-native-tcp to fetch the video data over the network.
What we have found was that App is unable to fetch enough data in Android OS and where as in iOS it performs better.
Is this known issue of the TCP/IP module in the Android platform?
Wrote the same functionality in C code and App could fetch much more data over the same network compared to JS.

Chromecast reciever with WebRtc PeerConnection crashes after 30sec

I wrote a screen mirror client app in javascript with html ui, and ran it in chrome browser.
I took same app and deployed as chromecast receiver app, it streams & plays audio/video on chromecast for few seconds and then crashes. I don't see any log information in remote debugger connected.
I am unsure if using webrtc peer connection on chromecast reciever app is supported officially (it clearly works)? If yes, why my app crashes after fixed amount of time?
Also i notice latency starts increasing over time. Not sure why.

React-Native simulate device is disconnected

Turning genymotion (or device) wifi causes app be unable to connect to app bundle and goes to show the red error in react-native. So how can I simulate app behavior when is disconnected from the internet (and also developing to have a good react (I mean it's not just about testing, also developing))?
There are only 4 states possible:
connected with good connection (have access to remote servers)
connected with poor connection (loss percentage is high)
connected with zero connection (have not access to remote servers - 100% loss)
not connected
Simulations way depends on which situation you need and where your app is running (device:iOS, Android?, simulator: mac, windows?)
On iOS you have Developer menu in the preferences and Network Link Conditioner in.
On Mac you can install Network link conditioner by this
I`m sure android has some tool for it.
Can`t say something about windows, sorry

Is it possible to turn the camera LED on of a device from the browser?

We are implementing a javascript library that uses the camera of the device on mobile web browsers. It was working well on Android using Chrome and some versions of the default Browser app. Since iOS 11 and Safari 11, we are able to access the camera on iOS too.
I was wondering if we can use this API to turn on the LED flashlight of the device. And in what platforms and browsers would that work.

How to Test Sencha Touch apps in windows

So I am developing a Sencha Touch application in Windows. I want to test how this is going to behave on iPhone/Android/BlackBerry phones.
I'd rather not make it public just to test it by navigating to it from each OS physically, although I will be doing that before our official release. How can I emulate the phones on windows. Is there anything I can use to emulate Blackberry/iPhone on a windows machine just to test how the web page is going to be rendered in those devices?
I know the Android emulator I can run through Eclipse, but what about the other two?
You need a Mac to run the iPhone/iPad simulator. Blackberry can be done on windows though: http://www.blackberry.com/developers/downloads/simulators/
You might also consider delivering them to these devices as apps using phonegap, which plays nicely with sencha touch.
If you just want to see how the app would look and behave while developing, just use Google Chrome. You can enable the very good 'developer tools' to do various checks.
Install and run on Ripple Chrome Extension
Check out the number of devices / platforms it supports
...
...
iPhone 3G / 4
iPad
Nexus One
Nexus S etc..
In order to start developing applications using Sencha Touch, it is highly
recommended that you have a working web server where you can host your
application. It's possible to develop Sencha Touch applications, viewing local
folders with your web browser. Without a web server you won't be able to test
your application using any mobile devices.
You can run the application on your web browser by using:
http://localhost/your_app_folder
Using Safari web browser to examine your Sencha Touch application during
development, and the Safari Web Inspector is a huge part of that. Both Chrome
and Firefox have similar tools (Chrome Developer Tools and Firebug for Firefox),
but as iOS devices use Safari for their web browser.