Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin didn't work on iOS 11.4 #142

Open
abnersoares opened this issue Oct 20, 2018 · 5 comments
Open

Plugin didn't work on iOS 11.4 #142

abnersoares opened this issue Oct 20, 2018 · 5 comments

Comments

@abnersoares
Copy link

This is my code at the function onDeviceReady:

MusicControls.create({
                    track       : 'Test',        // optional, default : ''
                    artist      : 'Test',                       // optional, default : ''
                    cover       : 'img/logo-playing.png',      // optional, default : nothing
                    isPlaying   : false,                         // optional, default : true
                    dismissable : false,                         // optional, default : false

                    // hide previous/next/close buttons:
                    hasPrev   : false,      // show previous button, optional, default: true
                    hasNext   : false,      // show next button, optional, default: true
                    hasClose  : true,       // show close button, optional, default: false

                    // iOS only, optional
                    album       : 'Test',     // optional, default: ''
                    duration : 20, // optional, default: 0
                    elapsed : 1, // optional, default: 0
                    hasSkipForward : false, //optional, default: false. true value overrides hasNext.
                    hasSkipBackward : false, //optional, default: false. true value overrides hasPrev.
                    skipForwardInterval : 0, //optional. default: 0.
                    skipBackwardInterval : 0, //optional. default: 0.
                    hasScrubbing : true, //optional. default to false. Enable scrubbing from control center progress bar 

                    // Android only, optional
                    // text displayed in the status bar when the notification (and the ticker) are updated
                    ticker    : 'Test',
                    //All icons default to their built-in android equivalents
                    //The supplied drawable name, e.g. 'media_play', is the name of a drawable found under android/res/drawable* folders
                    playIcon: 'media_play',
                    pauseIcon: 'media_pause',
                    prevIcon: 'media_prev',
                    nextIcon: 'media_next',
                    closeIcon: 'media_close',
                    notificationIcon: 'notification'
                }, onSuccess, onError);

On ANDROID works find, but on iOS didn't work. Someone has the solution?

Thank you folks.

screen shot 2018-10-20 at 1 54 53 pm

@paulovargatt
Copy link

same problem, iOS 12

@ghenry22
Copy link
Contributor

ghenry22 commented Dec 1, 2018

This is working fine for my apps in both iOS 11 and 12. The most common cause for nothing appearing is if one of the values is null or path to the coverart is not accessible to the plugin. Give it a try just with some static values and using coverart from a remote HTTP:// server that is known to be accessible from the device.

Also make sure to test on a real device, the emulator is really flakey and inconsistent in it's behaviour with lockscreen and control center.

@dupphil
Copy link

dupphil commented Dec 3, 2018

This is working fine for my apps in both iOS 11 and 12. The most common cause for nothing appearing is if one of the values is null or path to the coverart is not accessible to the plugin. Give it a try just with some static values and using coverart from a remote HTTP:// server that is known to be accessible from the device.

Also make sure to test on a real device, the emulator is really flakey and inconsistent in it's behaviour with lockscreen and control center.

Hi @ghenry22

Can you share your code because I have the same issue on 2 differents apps. (one old and one new).
It worked on the new but since iOS12, it does not work.
Thanks,

@rijink7
Copy link

rijink7 commented Dec 6, 2018

I have tried it with static values and cover from a remote HTTP:// but still no luck

@tbergeron
Copy link

Is there anybody at all who has this running on iOS 12?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants