einfachhans / cordova-plugin-advanced-background-mode Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
HI I tried to implement this plugin for ios in ionic 5. I tried my best to call the methods but not working.
Steps I followed :
Can you provide some sample code? it will be very helpful. We r stuck for 15 days on background issues.
sorry for my bad English.
Hi,
Thank you for the Plugin. Maybe you could compare your fork with the one from TheBosZ to get the best of both.
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background/src
Best
Daniel
Tested Background plugin with CarPlay.It is blocking streaming apps from playing via Apple CarPlay, which I think is a symptom of the larger background problem.
1.) In my car, when app is opened and I try to play music on my phone through another streaming service, the music from the streaming service bypasses the car system and directly plays through the iPhone speakers.
When I force quit app, the music starts playing through the car speaker system via CarPlay
If the background mode is enabled then the app is getting closed when the app is minimized.
OS:android 10
Device :Xiomi device
The application can be closed in the task list when the application is in the background. How can I fix this?
I am using this plugin to keep playing audio while the app is running in background.
Which is working properly up to the device version below iOS 15.
But it is not working in iOS 15 devices.
Can anyone please help me to solve this issue?
On the iOS device, video recording not working when app is in background. The same issue is with the original plugin - katzer/cordova-plugin-background-mode#527. Did you tried to solve it? What is the reason of such behavior?
Hi and thanks a lot for this fork. Unfortunately the ios release build fails.
Could you help please.
XCODE_VERSION=11.3
IOS_PLATFORM_VERSION=5.1.1
Failed to install 'cordova-plugin-advanced-background-mode': CordovaError: Uh oh! [21:34:42] File already exists at destination "/private/tmp/download/platforms/ios/That Shopping List/Resources/appbeep.wav" for resource file specified by plugin cordova-plugin-advanced-background-mode in iOS platform [21:34:42] at install (/private/tmp/download/platforms/ios/cordova/lib/plugman/pluginHandlers.js:64:23) [21:34:42] at ActionStack.process (/private/tmp/download/node_modules/cordova-common/src/ActionStack.js:56:25) [21:34:42] at PluginManager.doOperation (/private/tmp/download/node_modules/cordova-common/src/PluginManager.js:114:20) [21:34:42] at PluginManager.addPlugin (/private/tmp/download/node_modules/cordova-common/src/PluginManager.js:144:17) [21:34:42] at Api.addPlugin (/private/tmp/download/platforms/ios/cordova/Api.js:245:10) [21:34:42] at handleInstall (/Users/builder/n/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:581:10) [21:34:42] at /Users/builder/n/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:349:28 [21:34:42] at process._tickCallback (internal/process/next_tick.js:68:7) [21:34:42] Failed to restore plugin "cordova-plugin-advanced-background-mode" from config.xml. You might need to try adding it again. Error: Uh oh! [21:34:42] File already exists at destination "/private/tmp/download/platforms/ios/That Shopping List/Resources/appbeep.wav" for resource file specified by plugin cordova-plugin-advanced-background-mode in iOS platform
Current Behavior:
Plugin won't run a background task on iOS.
Expected Behavior:
The task consists of an infinite while loop that's suposed to have a 1 second pause and show the current time every 10 loops (equivalent to 10 seconds). It won't show anything in the console after the app is sent to background mode.
Steps to reproduce:
let cont=1
while (true) {
let now = new Date()
if(cont==10){
cont=1
// await this.pause(1)
console.log(now.getTime()+' '+now.toString())
}
else{
cont++
}
await this.pause(1000)
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.