flutter_ringtone_player
flutter_ringtone_player copied to clipboard
Unhandled Exception: MissingPluginException(No implementation found for method play on channel flutter_ringtone_player)
flutter_ringtone_player: 2.0.0 already did flutter clean and get , but still getting missingpluginexception
Unhandled Exception: MissingPluginException(No implementation found for method play on channel flutter_ringtone_player)
@Bharavi26 need to register plugin in appplication.kt if you are using this in firebase backgroundmessagehandler
any working on this?
@mmustafavistech i found the solution
i have added these lines in my application.kt file..
if (!registry!!.hasPlugin("io.inway.ringtone.player")) { FlutterRingtonePlayerPlugin.registerWith(registry!!.registrarFor("io.inway.ringtone.player.FlutterRingtonePlayerPlugin")) }
and do not forget to import import io.inway.ringtone.player.FlutterRingtonePlayerPlugin
if you wanted to see full file link is here https://github.com/91priyansh/facetime/blob/main/android/app/src/main/kotlin/com/facetime/face_time/facetime/Application.kt
I'm facing the same issue, and I'm not using firebase backgroundmessagehandler. Any suggestions?
@91priyansh thank you so much that worked like a charm!
I'm facing the same issue, and I'm not using firebase backgroundmessagehandler. Any suggestions?
@hemabhravee if you see a reference from @91priyansh . you see a Firebase Plugin, if you don't use Firebase you just delete it. example :
import io.flutter.embedding.android.FlutterActivity
import io.flutter.plugin.common.PluginRegistry
import io.inway.ringtone.player.FlutterRingtonePlayerPlugin
class MainActivity: FlutterActivity(),PluginRegistry.PluginRegistrantCallback {
override fun registerWith(registry: PluginRegistry?) {
if (!registry!!.hasPlugin("io.inway.ringtone.player")) {
FlutterRingtonePlayerPlugin.registerWith(registry!!.registrarFor("io.inway.ringtone.player.FlutterRingtonePlayerPlugin"))
}
}
}
experienced this on windows.
try enabling developer mode:
run: start ms-settings:developers
Just stop the app and re-run the app. It would work
This issue has stalled.
This issue has been closed due to inactivity.