RemoteControls icon indicating copy to clipboard operation
RemoteControls copied to clipboard

Plugin not working on iOS

Open HrBayat opened this issue 9 years ago • 7 comments

Hi, Thanks for your plugin. I've initialized in app.js deviceready event with the same data provided in readme. In console i get "RemoteControls plugin init." message, but nothing shows up on lock screen. This is my code in app.js:

var params = ["Daft Punk", "One More Time", "Discovery", "http://netahang.com/image/song-image/400", 200, 100];
        window.remoteControls.updateMetas(function(success){
            alert(JSON.stringify(success));
        }, function(fail){
            alert(JSON.stringify(fail));
        }, params);

HrBayat avatar Jun 24 '16 05:06 HrBayat

What plugin are you using to play audio? An audio session needs to be initiated before this plugin will work.

DahliaWitt avatar Jun 26 '16 02:06 DahliaWitt

Thanks for your response Drake. I'm using ionic-audio. Its based on cordova-media-plugin.

HrBayat avatar Jun 26 '16 10:06 HrBayat

I also tested it with cordova-media-plugin alone. It didnt work too.

HrBayat avatar Jun 26 '16 14:06 HrBayat

@DrakeWitt Do you have any advice ?

HrBayat avatar Jun 30 '16 07:06 HrBayat

Same here, i'm using the cordova-media-plugin. The Play/Pause is working, but not the rest of the remote controls.

Something new here?

fenta23 avatar Jul 28 '16 06:07 fenta23

Has anyone had any luck here?

marcusforsberg avatar Aug 30 '16 08:08 marcusforsberg

Hello, I have created a hybrid ionic app in ios. I want that when my app is running, it can be shown in Control Center Music controller. Ans also I must access from there like play/pause feature. In my application I am using the Code provided in Readme file in App.js > .run >$ionicPlatform.ready(){.. here..}. But there is issue in accessing the remote-event. I debug it and found that this even is not being called. Please help me ... :(

ermanisharma avatar May 23 '17 12:05 ermanisharma