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

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

Closed
Bharavi26 opened this issue Jan 2, 2021 · 10 comments
Labels
help wanted Extra attention is needed stale

Comments

@Bharavi26
Copy link

Bharavi26 commented Jan 2, 2021

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

@91priyansh
Copy link

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

@mmustafavistech
Copy link

any working on this?

@91priyansh
Copy link

91priyansh commented Feb 10, 2021

@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

@SPodjasek SPodjasek added the help wanted Extra attention is needed label Mar 25, 2021
@hemabhravee
Copy link

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

@sayak87
Copy link

sayak87 commented Oct 28, 2021

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

@karebet
Copy link

karebet commented Jan 28, 2022

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

@nibiru2O12
Copy link

experienced this on windows.

try enabling developer mode:

run: start ms-settings:developers

@chitraarasu
Copy link

chitraarasu commented Aug 18, 2022

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

@github-actions
Copy link

This issue has stalled.

@github-actions github-actions bot added the stale label Feb 15, 2023
@github-actions
Copy link

This issue has been closed due to inactivity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed stale
Projects
None yet
Development

No branches or pull requests

9 participants