Apache cordova or react native webview - android

At work we are thinkng about creating an android application to launch our webapp. (We need an APK)
So we are thinking about two possible solution :
Using apache cordova to launch our client side code.
Using react native (we don't will to recreate another client side app), so we will just launch our web app inside react native webview.
What did you think is the more suitable and the best ?
Thank's

Related

Angular 7 Webview to Android APK

I have developed an application using Angular 7 with Responsive Web Design(RWD). I have converted this application into an Android APK that runs the app inside a webview. However, I have found Some of features of Native app ( like Opening Camera,Open file browser) in android App not working.
What extra effort would be needed to convert an RWD to webview Android App?
Javascript nor code running inside a webview by their nature, do not have access to a device's hardware. You will need to access the OS's native code to be able to use them.
The easiest approach I would recommend is using a hybrid app platform such as cordova.

Is that possible to put web code locally when building hybrid apps using native language?

My friends and I are building an app using native language on ios and android page. We want to use one or two pages using angular/ionic. I have wrote some ionic pages which are invoked by native languages through url. However, it's a bit slow when transfer the native page to ionic page using url. Therefore, I am wondering that is there any way to put web code locally with android code/ios code so native code can communicate with web code faster? I know ionic can build native crossing-platform app, but for now we just use it as supplement.
You can take a look at the open source code of 2048 which has web code stored locally in the assets.

Run background native app or service using cordova

i have a native android app and i'm making another app using cordova and phonegap,
Is it possible when i open my cordova app it will run on background the other native app?
Thank you
I'm not sure but I think is to mix the native code for the core service with the Webbased UI.
you can take a look at Cordova-Plugin-BackgroundService
but it is for android only.

Responsive Web App with phonegap

We have a responsive web application for desktop users and it is working fine. My organization also has native android app. Now, the requirement is to integrate responsive web app with native android app (using webview). Same time, we are looking to access some native features of device like capture photo from web application.
We suggested to use phonegap but don't know how we can integrate phonegap javascript api with existing web application without creating phonegap/corodova application. Idea is that, user just hit the native app button and on listener it will invoke webview with webapp url. By checking user agent we will be able to load phonegap JS api and it will be able to access native features.
Issue is that, Don't know whether it is possible or not, if yes then how we can enable phonegap api in existing web app. Desktop and mobile user will get same experience.
Use WebView component of phonegap in your application, read documentation
http://docs.phonegap.com/en/3.5.0/guide_platforms_android_webview.md.html#Android%20WebViews

XDK - open link in browser without using Cordova

I want you to open a link in my app via browser not in Appview. I ma making my html5 mobile app via xdk. I don't want to use cordova in my app as my app is heavy enogh and don't want to make it heavier because of just one link.
I saw this :
www.kidzout.com
But the problem is I must install Cordova InAppBrowser plugin for this to work. Do you have any solution without using Cordova or external plugins? Do you think is it possible at all?
You can open a link in the native browser(Mobile Safari, Android, etc.) from within a HTML5 Mobile app using the intel.xdk API formerly AppMobi.
In the head, include a reference to the intelxdk.js file.
<script src="intelxdk.js"></script>
Use this for opening your link:
Launch in Browser
For more information, go to http://www.html5dev-software.intel.com/documentation/jsAPI/device/launchExternal/index.html
If you are opening a remote URL in your webview and adding javascript is not an option, you can make a patch in native code.
Here I show the workaround for Android:
https://stackoverflow.com/a/35037737/813951

Categories

Resources