Change default react-native android port - android

The problem
I'm developing an app which uses MongoDB realm and Redux. When only redux is in the project, no problem. But then after debuggin it with realm installed errors started happening. Realm is using port=8083 for its XML requests, while React Native is running by default in port=8081. So, when realm does its first XML request to initialize the realm app react native crashes.
The troubleshooting
By looking at the react-native-debugger documentation its possible to change de debugger port. Nice! And then i searched for a way to do the same in react-native. As weird as it sounds, apparently react-native's android port is hardcoded by the react-native init, meaning that only the default 8081 port works. Actually, only the metro server and ios port can be changed. I requested support from MongoDB, about changing their default port to 8081. But still waiting for an answer.
This is the app repository
Any suggestion?
Thanks in advance!

So, the react native app was running in the emulator and it did just fine. Then, i had this idea of turning off the SIM Card internet in the physical device. After doing so, the local wi-fi was used (where the computer was connected as well). Shazam...! That was it. End of story. This was the issue. What bugs me is that the documentation forgot to mention this use case. The nearest i could find was this

Related

Html css cross-platform vpn service on android and ios

I'm trying to make an application getting my user connected to my vpn on ios and android
The problem is that after 5 hours on google, I didn't find anything.
With ionic, no one did It, no topic has an end.
With react native, the same problem.
There still is xamarin, but i'm not even sure it work because there is no working example.
If you have done an application like this, with which framework have you done a cross platform application performing a vpn connection ? Thanks

failing to open my app after changing proxy

I want to do performance testing of an android app.For this, I need to set manual proxy with a port.But, when I change the proxy with some port number (like 8181 or 8282) I not able to open the app.If I opened also not able the send the request of that app to the app server.
How to solve this problem.
Based on the tags, it seems you are trying to script a test scenario using JMeter. You mentioned that the app stopped working after setting the proxy. Could you confirm that you had started the JMeter proxy before changing your proxy settings?
You can have a look at this document for step-by-step instructions on setting up JMeter proxy-
https://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf
If you are using the latest version of JMeter, there will slight differences in the options, but overall instructions should help you get started.

Cannot call to Asp.net WebAPI from Unity app on Android device

I'm developing a Unity app run on Android, a DLL plugin to connect to my Asp.net webapi service.
I've tested it in the Unity Editor and the app can call methods in DLL well, DLL is also connected to api successfully.
However, When I deployed the app to my phone and debug the server, there's no connection being made from the phone.
I've installed the app Network Log to check the network activity of my app but didn't see any activity made.
So, how can I figure out where the root of problem is?
Is DLL possible to use in Android unity app?
UPDATE: It turned out that only my project have this problem. The DLL we developed by ourselves but my friend implemented it to connect successfully to API on Android. But I didn't
yes it is possible to use .dlls on Android, but there are some changes with Unity 5.
Maybe this article can help you.
It seems that I have to put them under Libs folder in Assets to make it works on Android

Can I test/develop an App without having Xcode?

I'm really excited to see React Native available but I don't have an Apple device of any kind around and I am used to coding on Debian-based systems.
Is it possible to test the app locally and then once I get a Mac to do the run the build process?
Also, anyone knows when the Android version will be available?
It's not officially supported but you should be able to. The app delegate has a path that points to a JS server:react-native/Examples/SampleApp/iOS/AppDelegate.m.
If you point that URL to your Debian machine before building to your phone, it should work. (Of course, the JS should get bundled into the app before submission to the App Store.)
Unfortunately you can't do that for now.
It supports only iOS devices and you need XCode in order to test in the simulator because following the documentation (http://facebook.github.io/react-native/docs/getting-started.html#content), it's going to create an XCode project
Unfortunately you can't.
If it's because you don't have an apple computer you can always try running one on a virtual machine.
Here's a rough outline of what you would need:
An iDevice
A colleague who will put a build on that iDevice whose root react native bundle points to some endpoint you can control. e.g. jsCodeLocation = [NSURL URLWithString:#"http://mydomain/index.ios.bundle"];
Compile your react app to that location.
Run the application on the iDevice, which will do so by downloading the js bundle.
This flow would be considerably inferior to developing on a mac though, as there would be virtually no capacity for debugging, the setup would be a pain, and you would need to restart the application on the device every time.

when we are testing the webrtc in the chrome is it uses the native code and jni code that written in android

I am working on webrtc project in my office.
And i need to test webrtc for to know the flow of the function calls.
i tried testing the webrtc using google apprtc from their website appspot in my android chrome browser and other browsers.
I also used skype, line, and other apps.
But i was unable to see the logs when i used the command "sudo adb logcat" in my pc.
I was testing in odroidx2 board.
Is it correct way to test the webrtc flow?
Or is there any other way to do that?
I tried this and i didnt find any answer to this
Chrome's Web-RTC internals has all the data flow(call initiation, SDP negotiation, ice gathering etc). You can get to it from any version of Chrome by going to chrome://webrtc-internals/
For Android you can debug pages themselves only throughRemote Debugging. There you can see where Apprtc makes javascript calls and what JS functions are called when.
Both of those tools should give you plenty of information.
I think you should try to set up remote chrome debugging
https://developer.chrome.com/devtools/docs/remote-debugging

Categories

Resources