Comments (10)
@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
from flutter_ringtone_player.
Just stop the app and re-run the app. It would work
from flutter_ringtone_player.
@Bharavi26 need to register plugin in appplication.kt if you are using this in firebase backgroundmessagehandler
from flutter_ringtone_player.
any working on this?
from flutter_ringtone_player.
I'm facing the same issue, and I'm not using firebase backgroundmessagehandler. Any suggestions?
from flutter_ringtone_player.
@91priyansh thank you so much that worked like a charm!
from flutter_ringtone_player.
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"))
}
}
}
from flutter_ringtone_player.
experienced this on windows.
try enabling developer mode:
run: start ms-settings:developers
from flutter_ringtone_player.
This issue has stalled.
from flutter_ringtone_player.
This issue has been closed due to inactivity.
from flutter_ringtone_player.
Related Issues (20)
- Android 11 release build not working HOT 2
- Play sound on speaker even if headphone is connected HOT 4
- Ringtone not playing in release mode HOT 2
- Android V2 embedding HOT 2
- deprecated version of the Android embedding HOT 2
- Module 'flutter_ringtone_player' not found on iOS HOT 4
- Unable to stop Ringtone HOT 3
- Playing default ringtone when changing ringtone. HOT 2
- W/MediaPlayer(14698): java.io.FileNotFoundException: No content provider: /data/user/0/com.example.apk/cache/assets/sounds/ringtone.mp3 HOT 3
- Support custom ringtone as URI HOT 2
- Notification Sound Not Stopped After App is Killed or Foreground HOT 9
- Couldn't be able to stop ringtone in IOS. Any clue, when would this gets addressed. HOT 6
- Please Fix this pressing issue and add flutter 3.3.7 support HOT 2
- Not able to play sound in ios. HOT 7
- FlutterRingtonePlayer not working in Samsung galaxy s22 ultra HOT 3
- Please release a new version using flutter 3.3 in pub.dev HOT 2
- How to use custom sound from directory HOT 2
- FlutterRingtonePlayer may crash in OPPO mobile (system version is Android5,6,7,8,9,10) HOT 2
- Gradle 8 Support HOT 1
- Member not found: 'FlutterRingtonePlayer.play'. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_ringtone_player.