(MissingPluginException(No implementation found for method setNotification on channel xyz.luan/audioplayers))

182 views Asked by At

I am using audioplayers 0.16.1 library for my music application but I keep getting the following error while building notifications. My Error Code:

Exception has occurred.
MissingPluginException (MissingPluginException(No implementation found for method setNotification on 
channel xyz.luan/audioplayers))

My setNotification method:

  setNotification() async {
await advancedPlayer.setNotification(
    albumTitle: "Beatifun Music",
    artist: video.snippet.channelTitle,
    duration: _duration,
    elapsedTime: _position,
    backwardSkipInterval: Duration(seconds: 10),
    forwardSkipInterval: Duration(seconds: 10),
    imageUrl: video.snippet.thumbnails.high.url,
    title: video.snippet.title);
    }

How can I solve this problem?

1

There are 1 answers

0
spydon On

Try using the latest version (3.0.1) of AudioPlayers, it should be solved there.