As a beginner in react native framework. I was able to build a small app and installed on my ios physical device via xcode. But this app doesn't work when I'm away from my laptop.
Is there any way I can always run this app on my device 7/24 even when I'm away from the network and my laptop (Without publishing in app store)?
Personal app and i need it on my device only.
Thank you,
Click on project then on menus open "product" > schema >edit schema then change build configuration "debug" to release.
Now run your project. It will run even after you are away from laptop.
Related
I'm choosing a cross platform framework to create an app, React Native would be my first choice because I'm already proeficent with React and it will allow full code sharing with my Deno based back-end but here a problem arises, I don't have a Mac and it seems that the oly way to develop React Native apps without a Mac is by using Expo, sadly it can't be an option for me since I need have very strict privacy requirements to follow and by these the telemetry which Expo apps sends to Expo team is not acceptable.
Considering that my app would use very few device native features (just CRUD operations on application local storage and QR code reading) which are already covered by cross platform modules it would be possible to write my app on a Windows laptop, debug it on an Android device, build it using a free CI/CD platform which includes Linux and Mac agents to get working Android and iOS packages with can be distributed to the respective stores?
As you can see in React Native documentation, you can write code for both platforms on Windows machine, but for building an publishing IOS application, you must use Mac machine
A Mac is required in order to build your app for iOS devices. Alternatively, you can refer to our environment setup guide to learn how to build your app using Expo CLI, which will allow you to run your app using the Expo client app.
Read doocs here: Running On Device
I have recently been playing around with code-server, which is a Visual Studio Code IDE that can be ran on the remote machine and accessed through the browser. For that I made a google vm instance of Ubuntu LTS 16.04, and I was successfull to launch it and install the Flutter and Dart sdks. Because of the flutter_web and flutter itself still being unable to unify in one codebase, I ran into a lot of incompatibilities which made it impossible to debug my application as a web-site.
Now I want to launch the android emulator instead, because I would be able to test and debug the apps, but I didn't find any source of information on how to install it and display it remotely, for example, in local browser.
Is it practically possible? And if it is, please tell me how. Because me being able to develop flutter apps on iPad would be really cool.
Actually this out of our scope as is not related to the Google Compute Engine product, anyway I would give my best effort to help you:
Google Marketplace has an awesome product called Genymotion [1] which is an Android Emulator. I tried and it's one click deploy, very useful.
[1] https://console.cloud.google.com/marketplace/partners/genymotion-public-project
I am currently learning mobile app development by using react native. I am using 'EXPO CLI' to simulate the code on my device/emulator. However, after reading the react-native official documentation, I realize that the steps required 'Android' folder in my project that does not exist because I did not run 'npm run eject'.
May I know is there any source on how to install my app into my device locally?
(Meaning no longer running the app through EXPO).
As I can see here you need OS X to build apps with React Native. That is probably because they used it at first to create only iOS apps. Now it's possible to create Android apps with React Native but they still require OS X as development platform which doesn't make sense to me. Is there any way to create Android apps using React Native on Ubuntu OS or any other Linux?
Update 2: I've been developing React native apps on Ubuntu for some time now, without any issues.
Update 1: It's almost possible on linux and windows now. Check this doc page: link
Old answer:
It's already almost working, from the issue shared in kzzzf's answer:
Everything works on Linux except:
react-native run-android can't open a new shell window, you need to
use react-native start. Will be fixed in next release. Debugging in
Chrome currently relies on an AppleScript to launch Chrome. There's a
PR to replace that.
Building on linux and windows is not officially supported although there are people in the community already sending pull requests that will allow to do so (main obstacle is the fact of using apple-script and calling to shell scripts from node - from react-packager and from react-cli).
Main task for tracking those efforts is here: https://github.com/facebook/react-native/issues/2693
While it's not officially supported on Linux yet, and there are certainly some hoops to jump through, I have created a docker container that allows me to build and run android apps from Ubuntu.
The dockerfile is still a work in progress but it's available on github: https://github.com/gilesp/docker/tree/master/react_native
There's a couple of shell scripts to make local development easier - I mainly use the react-bash script to give me a shell prompt in the container for running react-native run-android etc.
It works well enough that I can have a phone connected via USB on my host machine, the react native stuff running in the container and have my edits to the code (I mainly edit using emacs on the host) appear immediately on the device.
I'm currently working on CI builds for android as there are some more hoops to jump through to create the bundled version of the javascript for deployment.
It should be possible by now. For an up to date guide on "can i build for platform X on system Y", see:
https://facebook.github.io/react-native/docs/getting-started.html
I updated my SDK tools and SDK platform tools to the latest and to my horror found that AppEngine Connected Android project's emulator not launching if I do Debug as > Local AppEngine connected Android Project.
I am working on a project and also have done quite a lot of work using this plugin option. Is there a way that I can still develop. Maybe someway I could start the AppEngine Seperately and Android Project Separately and still they would work( debugging as remote AppEngine is not a problem).
To what I have read, I think they doing it because they are deprecating C2DM messaging. And instead they bringing the option of Make AppEngine Backends. But unfortunately they have still not worked on the docs or support.
Is there any way I can still keep working till they release the docs or how can I make the transition myself?
Here is how I debug localy since the sdk update:
Debug the app engine project as Web Application
Run the AVD with the manager
Debug the android project as Android Application
Remotely:
Run the AVD with the manager
Run the android project as Android Application
Hope this helps.
Edit:
After debugging remotely it seems that the AVD still speaks to the remote server eventhough you wipe out data and ask for "Debug android project". In this case do a "Debbug as local app engine connected android application". This will start the local server but not the Android app. Then Debug the android project as Android Application and it will talk to the local server.