Can the development build installed on my phone be used and debugged through the Internet like Expo Go App does? - react-native

Currently I am working on a map app that tracks users position and generate their walking route. I wish I can go outdoor and test if the app can tracks the users' position in time. Currently I have set up a EAS build and now I can connect my developement build to my computer and test it wirelessly through WiFi, but it said it lost connection to Metro once I disconnect the WiFi connection.

Related

Using react-native-ble-plx to send data to a raspberry pi RFCOMM server

My goal is to setup my Raspberry Pi 4 to be able to run scripts when a button is clicked in an app I am making with React Native. I need to be able to do it so that they can connect without wifi, which is why I have decided to use Bluetooth.
So far I have an RFCOMM server set up on the Pi, and have installed the react-native-ble-plx module to be able to handle bluetooth communications, but I'm not sure how to get React Native to connect to this server.
I'd really appreciate it if anyone can tell me how to connect them and send data to the Pi to get it to run terminal commands, and return the result.
There are two types of Bluetooth that are not compatible with each other. RFCOMM and BLE will not work together.
On the Raspberry Pi you need to create a GATT server. RPi uses the BlueZ stack and they have an example in their source tree:
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/example-gatt-server
You will also need to have an advertisement so that your phone can find the gatt server. There is also an example of that: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/example-advertisement
Another suggestion is not to try and develop both ends of the Bluetooth link at the same time as that is tricky. Use a generic BLE tool to check you have the server working correctly before you develop the react app.

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

Want to run sencha-touch2 application in mobile remotely

I have created a small application in sencha2 and am able to run the application on my desktop
i have put my application in XAMPP and am able to run it using localhost. Is it possible to test my application in mobile remotely ( android / iphone etc ). I want to host my application on free server for testing on mobile can anyone suggest me how can i do this ?

Share one android device for developing

We are several people (in different cities) developing on titanium. We have only one device to check how the application works on a real device.
Can we share somehow one device to check how application works on a real device?
The idea is to have one PC with remote access and Titanium running with connected git\mercurial repositories. Android device connected to this PC by USB. The user connects by Remote Control to the PC, pulls data from repository and runs application on the device.
The problem that we have is how to get access to screen of the Android device on the PC to control it.
Does someone have an idea how it could be organized?
This link (http://code.google.com/p/androidscreencast/) says it will help, but it has limitations. I guess this solution would make sense if you are doing most of the testing on the local emulator and the physical device is a final check for functionality.

Mac to iPhone App Communication over WiFi

I am new to developing for the iPhone and would love some advice on an app i'm trying to develop.
Is it possible to send commands to an app on iOS 3.2 from OS X using AppleScript. The iOS app will display an image and run a small script when it recieves the appropriate command from the client software running on a Mac Mini. The devices would communicate over an a closed WiFi network.
Before I continue down this path does anyone have any advice on how to setup the communication (i.e. get the app to run in the background and listen on a designated port).
I don't know the full process but I know that various apps do this one way or another, such as 1password and desktop remote mouse apps. I think that CocoaAsyncSocket will help. An alternative to having the iOS app listening on a socket is to open a connection from iOS to OS X and then persist it. You can then send data either way through the connection.