eddyverbruggen / cordova-plugin-backgroundaudio Goto Github PK
View Code? Open in Web Editor NEW:notes: Background Audio plugin for Cordova PhoneGap apps
:notes: Background Audio plugin for Cordova PhoneGap apps
I have just tried to build the app that I was super excited to try ๐ก๏ธ
I will try an older version of the plugin in the meantime.
However I got this from the console:
Error - Plugin error (you probably need to remove plugin files from your app): Fetching plugin "cordova-plugin-device@^1.1.7" via npm Installing "cordova-plugin-device" at "1.1.7" for ios Failed to install 'cordova-plugin-device': Error: Does not appear to be an xcode project, no xcode project file in /private/tmp/gimlet/2870952/project at getIOSProjectname (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:226:15) at resolveConfigFilePath (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:191:27) at ConfigFile_load [as load] (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:60:36) at new ConfigFile (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:51:10) at ConfigKeeper_get [as get] (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigKeeper.js:51:23) at PlatformMunger_apply_file_munge [as apply_file_munge] (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:80:50) at munge_helper (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:238:14) at PlatformMunger.add_plugin_changes (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:164:12) at /private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/PluginManager.js:126:25 at _fulfilled (/private/tmp/gimlet/2870952/project/cordova/node_modules/q/q.js:834:54) Error: Does not appear to be an xcode project, no xcode project file in /private/tmp/gimlet/2870952/project at getIOSProjectname (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:226:15) at resolveConfigFilePath (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:191:27) at ConfigFile_load [as load] (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:60:36) at new ConfigFile (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:51:10) at ConfigKeeper_get [as get] (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigKeeper.js:51:23) at PlatformMunger_apply_file_munge [as apply_file_munge] (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:80:50) at munge_helper (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:238:14) at PlatformMunger.add_plugin_changes (/private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:164:12) at /private/tmp/gimlet/2870952/project/cordova/node_modules/cordova-common/src/PluginManager.js:126:25 at _fulfilled (/private/tmp/gimlet/2870952/project/cordova/node_modules/q/q.js:834:54) Does not appear to be an xcode project, no xcode project file in /private/tmp/gimlet/2870952/project Does not appear to be an xcode project, no xcode project file in /private/tmp/gimlet/2870952/project - You can fix this here
Hi mate, 1st all all, I'm muddling with this and learning in the process. I have a Cordova app I'm trying to get fixed with iOS. As a bonus background audio would be nice. I made it by using your plugin but something weird happens. When the app runs and I go the home screen it stops playing but if I run it again and hit play and then go the home screen it works. I can even lock the screen.
I'm sure I'm goofing something up but I'm not sure what's wrong.
Thanks in advance.
How to use the plugin at build.phonegap.com
I'm using the following configuration on Phonegap Build, but still whenever I click the home button, the stream I'm playing fades out. Any idea why?
<plugin name="cordova-plugin-media" source="npm" />
<plugin spec="https://github.com/EddyVerbruggen/cordova-plugin-backgroundaudio.git#1.0.1" />
Hi
I get the error using Cordova 7.0.1
Error: Invalid Plugin! /cordova-plugin-backgroundaudio-master needs a valid package.json
Trying to get this to work with the native audio plugin for iOS10 to no avail. Any suggestions?
In iOS 13.1.2 The audio pauses 30 seconds after putting the app in the background. Is anyone else seeing this? Any workarounds? Thank you!
Hi, I was referred to this repo from this ticket. I'm trying to implement this on my app. It works for my iOS 10.3 build, but not iOS 11.
Seems that with the WKWebView plugin installed that Cordova Media continues to play audio in the background and with mute switch but not when playing XHR files via the Web Audio API.
Hello, i hope you can help me.
When the audio become to his finish, Media plugin give me the status MEDIA_STOPPED, then I try to play the next song in the playlist.
When my app is in focus, every works fine but if the iPad is blocked or the app is in background I recibe a Error:{"message":"","code":4}
player.media = new Media(path,
function(){},
function(error) {
if (error.code != 0) {
navigator.notification.alert("Error: " + JSON.stringify(error), function() {});
}
},
function(mediaStatus) {
if (Media.MEDIA_STOPPED == mediaStatus) {
$(document).trigger('player-stop');
}
}
});
Hi, my App gets rejected when using your Plugin. See details below. I now tried to use your plugin without the background mode for audio and it seems to work anyway. I resubmitted it to the app store and are now waiting for the review.
Is this perhaps something for the readme or will the plugin stop working under certain circumstances?
2.16 Details
Your app declares support for audio in the UIBackgroundModes key in your Info.plist, but we were unable to play any audible content when the application was running in the background.
Next Steps
The audio key is intended for use by applications that provide audible content to the user while in the background, such as music player or streaming audio applications. Please revise your app to provide audible content to the user while the app is in the background or remove the "audio" setting from the UIBackgroundModes key.
Resources
If you have difficulty reproducing a reported issue, please try testing the workflow described in Technical Q&A QA1764: How to reproduce bugs reported against App Store submissions.
If you have code-level questions after utilizing the above resources, you may wish to consult with Apple Developer Technical Support. When the DTS engineer follows up with you, please be ready to provide:
https://github.com/EddyVerbruggen/cordova-plugin-backgroundaudio/blob/master/plugin.xml#L21
OK, so Cordova build is a bit ham-fisted when it comes to managing this part of the plist. The workaround here causes a different issue if multiple plugins are trying to write to this array.
I have another plugin that needs 'background fetch' activated, and it means I have to go back in and re-check this option every time I build.
There's gotta be a better way here; simply including a note in your readme as to how to make this happen in XCode is probably a better route, I think.
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.