Open JRakhimov opened 3 years ago
What platform this happens on?
Have you checked GeneratedPluginRegistrant to see if soundpool plugin has been added there?
What platform this happens on?
I have the same error when building for Windows platform (Android works fine).
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method initSoundpool on channel pl.ukaszapps/soundpool)
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:313:7)
<asynchronous suspension>
#1 MethodChannelSoundpoolPlatform.init (package:soundpool_platform_interface/method_channel_soundpool_platform.dart:11:100)
<asynchronous suspension>
#2 Soundpool._connect (package:soundpool/soundpool.dart:319:20)
<asynchronous suspension>
@umanamente, as far as I can see, Windows is not supported:
Although I see there is some experimental support branch: https://github.com/ukasz123/soundpool/issues/46#issuecomment-1002172727
Hey there, I have a problem with playing notification sound when application works in background. I should play sound when application receives push notification from firebase, example:
and it crashes when I init Soundpool instance
What i am doing wrong?