flutter_ringtone_player icon indicating copy to clipboard operation
flutter_ringtone_player copied to clipboard

Unhandled Exception: MissingPluginException(No implementation found for method play on channel flutter_ringtone_player)

Open Bharavi26 opened this issue 4 years ago • 8 comments

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) ringtoneplayer

Bharavi26 avatar Jan 02 '21 14:01 Bharavi26

@Bharavi26 need to register plugin in appplication.kt if you are using this in firebase backgroundmessagehandler

91priyansh avatar Jan 10 '21 16:01 91priyansh

any working on this?

mmustafavistech avatar Feb 08 '21 14:02 mmustafavistech

@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

91priyansh avatar Feb 10 '21 04:02 91priyansh

I'm facing the same issue, and I'm not using firebase backgroundmessagehandler. Any suggestions?

hemabhravee avatar Aug 30 '21 01:08 hemabhravee

@91priyansh thank you so much that worked like a charm!

sayak87 avatar Oct 28 '21 12:10 sayak87

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"))
        }
    }
}

karebet avatar Jan 28 '22 09:01 karebet

experienced this on windows.

try enabling developer mode:

run: start ms-settings:developers

nibiru2O12 avatar Jun 09 '22 06:06 nibiru2O12

Just stop the app and re-run the app. It would work

chitraarasu avatar Aug 18 '22 12:08 chitraarasu

This issue has stalled.

github-actions[bot] avatar Feb 15 '23 00:02 github-actions[bot]

This issue has been closed due to inactivity.

github-actions[bot] avatar Mar 17 '23 00:03 github-actions[bot]