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
Related
I'm new to app developing, and I'm trying to develop a music app with Ionic, Capacitor and Vue.js.
Does anyone know if there is a way to place your app in the background and HOW TO DISPLAY IT when I slide down the phone menu from the top or when the phone is locked? (as Spotify for example).
Or this image as an example https://qph.cf2.quoracdn.net/main-qimg-eb92eaabdcd3a7633bba9c1703cbf88a-pjlq
enter image description here
Thanks to anyone who can help!
There are a few plugins that may be of use. The Capacitor Background Task plugin can run tasks for a limited amount of time. However, it's not recommended. Capacitor wasn't designed for hyper-immersive apps like music players. This third-party Music Controls plugin may also be helpful.
Note: both of these plugins were designed for Capacitor 2. It's often possible to get them working in v3, but may take some fiddling or forking.
I have a react native app which doesn't work without npm start running. When I try to start it without USB connection, I have an error message:
Unfortunately AppName has stopped working
I am working on android.
Does the problem go away when the app is deployed?
Thanks
Yes It Is Normal Behavior As NodeJS Update the UI and implement the Code there
is Need to Start NPM to make nodeJS work in ReactNative to work with Android
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
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.
I'm new to sencha touch and I am trying to create a native app using phonegap in iOS and Android.
We need to get data from a device to the phone through bluetooth, and have it still receive data even if the app is closed.
Is this possible with sencha touch?
By default this is not possible with Phonegap/Cordova, when you suspend an app JavaScript execution stops too. There are however plugins that accomplish this. A simple google search gives results like
https://github.com/jocull/phonegap-backgroundjs
Good luck