GithubHelp home page GithubHelp logo

cordova-plugin-backgroundaudio's People

Contributors

eddyverbruggen avatar vandres avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cordova-plugin-backgroundaudio's Issues

Error with phonegap 7.0.1

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

plugin works... at second app run

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.

Not working?

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" />

Error when trying to install

Hi

I get the error using Cordova 7.0.1

Error: Invalid Plugin! /cordova-plugin-backgroundaudio-master needs a valid package.json

WKWebView Web Audio API

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.

Playlist

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');
                }
            }
        });

App gets rejected

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:

  • complete details of your rejection issue(s)
  • screenshots
  • steps to reproduce the issue(s)
  • symbolicated crash logs - if your issue results in a crash log

Clobbering UIBackgroundModes can be destructive for other plugins

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.