guys! I'm a student iOS developer and new to the GREAT technique React Native.
My Question is:
if it is necessary for us to develop our React Native server with the help of Node.js? Can the server just return a static javascript file or bundle file to the client?
if so, does it mean that every time user enters THE React Native page(contains RCT controller or view), the App do not have to fetch the javascript file or bundle file from server? (Since if these files are unchanged in server, App should not download them for saving phone data/flow)
if so, could we use some Tag & Cache technique to solve this data saving problem?
Related
I am creating a React Native app that needs a backend, and I only want to create a backend in Node.js (express.js).
How should I host/deploy this server so that it can interact with a React Native app?
From research, I have seen people simply deploy the node.js server to a web hosting service (like Heroku) then Fetch to that url in the react native app. My only concern is whether this entirely safe for a production app, as JWTs solve this problem but not exactly sure how to implement JSON Web Tokens into the React Native App.
Another way I have seen people do this is to add a server folder in the root of their react native project. I'm not sure exactly how this would work though because each app download would have a different local server attached.
Any help is appreciated. Thanks!
Im newbie to React Native. I am trying to create a native react ios application.
However, if I need to build and ciruculate the app the database will most probably be a db such as MongoDb on a server.
My question is - How do I build the react native app to include server-side database credentials and connection URLs so that the ios application generated can be deployed on any mobile app using itunes to test?
I did look at the documentation available at: https://facebook.github.io/react-native/. However, for a newbie this documentation is a little complex from where I am at. If someone could give me enough explanations on how to get this done - would be very grateful.
I have a PhoneGap application, which needs to communicate with an external iOS app on the same device. The external app will do some special processing, and return a unique value back to my PhoneGap app. PhoneGap app then uses this unique value to do some processing internally.
Given this use case, I have two questions
How do I open another iOS app from a PhoneGap app?
How do I return to the PhoneGap app with some data from the external app
I have searched so far, but haven't found very relevant documentation. I have also tried to open another app using appname:/// strategy, hasn't worked for me.
Any help will be appreciated. thank you!
Cordova has wide range of plugins for performing different operations.
For opening external application you can use: https://github.com/lampaa/com.lampa.startapp
If you want to open an application without using any plugin:
var iOS_specificUrl = 'custom_url_scheme://url-to-reach?parameter1=val1';
window.location = iOS_specificUrl;
or you can use inappbrowser
var iOS_specificUrl = 'custom_url_scheme://url-to-reach?parameter1=val1';
window.open(iOS_specificUrl, '_system');
Let's say you have app1 and want to open app2 then you need to assign custom url to app2 and for that you need to make changes in app2 configuration xml file; and to do this you can use following plugin:
https://github.com/EddyVerbruggen/Custom-URL-scheme
Or if you want to open third party application then you need to get in touch with application provider for getting custom url.
I am developing a cordova hybrid app for iOS. The app contain basic JS file. When the app loads, it will connect to the server and grab the latest main JS file and cache store into the user phone. The cached JS will always be used until new update of JS file available, then the app will automatically re-download the new JS file and load with it. Therefore, when user first install & run the app, they will first see the loading screen saying something like "Please wait, downloading update now".
So, does this kind of method violate Apple App store guidelines?
I have a Qlikview dashboard that I need to present and I've created a site that loads the Qlikview server onto the browser and runs it from there.
I now need to create an iOS app that does this. But the requirement is that the dashboard shouldn't open on the browser. The server should be loaded and run from the app itself. Is there any way to do this?
PS, I'm completely new to iOS App development and any help will be appreciated.
Yes. While saving it as a shortcut and opening it in the browser would be simple, using Apache Cordova is the best way to develop a smartphone app with HTML5/CSS/JavaScript. From the website:
When using the Cordova APIs, an app can be built without any native
code (Java, Objective-C, etc) from the app developer. Instead, web
technologies are used, and they are hosted in the app itself locally
(generally not on a remote http server).
And to make things better, it's open source.