n9vn1njdf / flutter_media_notification Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Is it possible to customize the control buttons? like removing "next" and "previous"?
I see the below error while I do pod install or pod update or try to run the App in iOS device.
[!] No podspec found for media_notification_control
in .symlinks/plugins/media_notification_control/ios
Flutter Doctor below
Mohameds-MacBook-Pro:ios mohamedshaikna$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.16.4-pre.18, on Mac OS X 10.15.3 19D76, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[✓] Connected device (3 available)
• No issues found!
Использовал плагин в своем приложении, получаю такие ошибки:
java.lang.RuntimeException:
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3641)
at android.app.ActivityThread.access$2000 (ActivityThread.java:221)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1876)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:158)
at android.app.ActivityThread.main (ActivityThread.java:7225)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)
Caused by: java.lang.NullPointerException:
at com.example.medianotification.MediaNotificationPlugin.show (MediaNotificationPlugin.java:76)
at com.example.medianotification.NotificationReturnSlot.onReceive (NotificationReturnSlot.java:18)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3634)
как можно исправить ситуацию? видел что плагин больше не поддерживается, но аналогов я не нашел а сам только начал разбираться во Flutter, на Java не программировал, сам не могу поправить.
when I left the application with the back key and when I pressed the buttons on the notification,
flutter said me that -> FlutterView.send called on a detached view
Could you help?
The media dispose notification keeps alive even when hiding it on dispose, and when interacting with it after closing the app, it says "[app_name] has stopped":
@override
void dispose() {
hide();
super.dispose();
}
Future<void> hide() async {
try {
await MediaNotification.hide();
setState(() => status = 'hidden');
} catch(e) {
print(e);
}
}
How to update the play button state programmatically from dart code without tapping it.
Good day to all,
Is it possible to add an image in the notification?
Users/bhavneetsingh/Downloads/flutter/.pub-cache/git/flutter_background_audio-9ef1c9f68d9e8fa99bcf9427c2bd8a9ea91b2cfb/android/src/main/java/com/backgroundaudio/AudioPlayer.java:17: error: package android.support.annotation does not exist import android.support.annotation.Nullable; ^ /Users/bhavneetsingh/Downloads/flutter/.pub-cache/git/flutter_background_audio-9ef1c9f68d9e8fa99bcf9427c2bd8a9ea91b2cfb/android/src/main/java/com/backgroundaudio/AudioPlayer.java:18: error: cannot find symbol import android.support.v4.app.NotificationCompat; ^ symbol: class NotificationCompat location: package android.support.v4.app /Users/bhavneetsingh/Downloads/flutter/.pub-cache/git/flutter_background_audio-9ef1c9f68d9e8fa99bcf9427c2bd8a9ea91b2cfb/android/src/main/java/com/backgroundaudio/AudioPlayer.java:91: error: cannot find symbol @Nullable ^ symbol: class Nullable location: class AudioPlayer /Users/bhavneetsingh/Downloads/flutter/.pub-cache/git/flutter_background_audio-9ef1c9f68d9e8fa99bcf9427c2bd8a9ea91b2cfb/android/src/main/java/com/backgroundaudio/AudioPlayer.java:260: error: package NotificationCompat does not exist NotificationCompat.Builder nBuilder = new NotificationCompat.Builder(this, CHANNEL) ^ /Users/bhavneetsingh/Downloads/flutter/.pub-cache/git/flutter_background_audio-9ef1c9f68d9e8fa99bcf9427c2bd8a9ea91b2cfb/android/src/main/java/com/backgroundaudio/AudioPlayer.java:263: error: cannot find symbol .setVisibility(NotificationCompat.VISIBILITY_PUBLIC) ^ symbol: variable NotificationCompat
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.