Run background native app or service using cordova - android

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.

Related

Why React native app is Too slow in comparison with expo

I was Trying to build an app using react-native app.
but the app was running very slow like if i click or tap on any button it takes a around 1-2 seconds to perform basic function
and if i built the same thing using expo it works fine.
Can some please help me out why react native app is behaving like this.
My react Native-App video
My react Native-App video:https://photos.app.goo.gl/Y8jQRS8wrUcoTyH39
My expo app video
My Expo react Native App Video: https://photos.app.goo.gl/7Ezq3tErTS4aLL1GA
I tried all possible methods to make react native faster like using memo and callable methods.
if you are using native-base there an issue her : visit https://github.com/GeekyAnts/NativeBase/issues/4302

Apache cordova or react native webview

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

hybrid android cordova ionic

Hello this is my first time i use cordova and ionic for android app , my qustions is :
1-in this app i just want use html css and js for design , so i must use cordova ?
2-i have a method in js get the latitude and longitude then show some values to user, but i need this method use in background and do this work automaticly all day , i need use java code ? or i can do it with cordova and ionic ?
3- if i need use to hardware in android , is better use java or cordova plugins ?
4- where is webviw cordova use for show index.html ?
i read to many way and i confuse to how can i do , i need best practis way to make hybrid app , pls help and show me the way .
Don't worry, we all have to begin some day. Let me first clear your few doubts about Cordova.
Cordova wraps your HTML/JavaScript app into a native container which can access the device functions of several platforms. These functions are exposed via a unified JavaScript API, allowing you to easily write one set of code to target nearly every phone or tablet on the market today and publish to their app stores.
so in short cordova helps you to access device functionality via javascript.
Ionic is a mobile css framework, which is built on top of angular js and allows support for cordova functionalities.
Now I will give answer's for your all questions:
Yes, if you want to create a mobile app using html and js, you need to use cordova. Since, cordova will wrap these files in the native container of respective mobile os.
You can run the task in background using cordova. There is a plugin for that which you can use Cordova Background Plugin
purpose of cordova is only, to allow device hardware access via javascript
You don't need to code anything to show index.html, cordova will do everything for you while building the app

Convert ios app to android using phonegap

I have made a sample application in ios using phonegap framework. I have used plugins for navigation bar and tab bar. Now I want to deploy my app to android. so what should I do now? Whether I should make it for android also using phonegap framework with eclipse or is there any other way to do it? can I make the build directly for android using phone gap?
in android,set the weblink below the setcontentview in mainactivity in android

How to run a background service in android in PhoneGap app?

Is there any PhoneGap plugin availabe to run a background service in android?
I don't think so.
I think you will have to go native for that functionality:
Phonegap Background Service on iOS4

Categories

Resources