Comments (6)
Yes, it's possible to run Viro w/o ngrok.
If you're using the Viro Media App:
On iOS:
- If your phone and computer are on the same network, you can type in your local IP address.
On Android:
- You can also use your local IP address.
- You can reverse tether using the command
adb reverse tcp:8081 tcp:8081
and simply use the localhost address:127.0.0.1
in the Viro Media App.
If you're building your app through Xcode:
- in
AppDelegate.m
, change the lineBOOL usingNgrok = YES;
toBOOL usingNgrok = NO;
, this will default to using local IP (this is automatically detected and "sent" to the built app).
If you're building your app through Android Studio:
- You should reverse tether using the command
adb reverse tcp:8081 tcp:8081
and simply build and run the application.
Let me know if you need help or more clarification!
Andy
from viro.
Thank you very much for the fast reply.
I was after the Xcode switch but I'm sure others will be interested in the other solutions as well.
It's especially important to turn off the tunnel to enable remote debugging unless that's possible with ngrok.
Thanks again,
Tom
from viro.
I'm assuming that ngrok will not on release/production builds - how is that configuration handled? Is that in the docs somewhere?
from viro.
Hi @mypark,
The use of a packager server vs bundled Javascript assets is a feature of React Native. We just added the ngrok bit to overcome a few issues, but the deployment/release process is the same as React Native.
Instructions for Android can be found here:
https://facebook.github.io/react-native/docs/signed-apk-android.html
iOS:
I can't find the instructions for iOS, but they're the same as any other iOS app out there, simply change the Scheme's Build Configuration to Release
:
https://stackoverflow.com/questions/5706548/how-do-i-create-a-release-build-in-xcode
Let us know if you have any issues
from viro.
Hi @achuvm,
Following up on this, if I want to locally distribute (ios) to coworkers without use of the apple appstore, am I unable to do so without an ngrok or local setup constantly running?
Update: forgot hello
from viro.
Hey @Mrashes,
You should be able to perform a release build by clicking on the scheme -> Edit Schemes... -> Run -> Build Configuration -> Release. See the image below for reference.
Keep in mind you will need to do this for the React library as well as the ViroReact library before building your app too.
Let us know if you have any issues with that!
from viro.
Related Issues (20)
- I want to use this in React-Native Web. is that possible ?
- Can I use viro use build app clip for iOS ? HOT 2
- extrusionDepth in ViroText renders wrong when it located inside of ViroFlexView
- TypeError: null is not an object (evaluating 'MaterialManager.setJSMaterials') HOT 2
- How can I take Photo or record a video with reference to 3d model. HOT 3
- 3D model is half black HOT 1
- App crashes when navigating to ViroARSceneNavigator from StackNavigator. HOT 1
- React-native version HOT 8
- My texture of Viro3DObject doesn't work properly.
- Rigged 3D models disappearing in AR depending on camera angle (Skeletal animation)
- Move object along detected ground plane via camera center (without dragging/touch events)
- Background AR wide angle camera ?
- Get measure of items via ARKit
- Viro3DObject always moves with the phone, not fixed to one position
- i can't access to viro document.
- How to render body tracking with ARkit and ARCore
- ViroVideo playing videos very slow after some seconds
- App crashes on using ViroVideo! HOT 4
- Invariant Violation: requireNativeComponent: "VRT3DObject" was not found in the UIManager in React Native 0.72.4 HOT 1
- ViroVideo sound doesn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viro.