aliyazdi75 / flutter_media_notification

Flutter Media Notification helps you to show your media notification and control streaming media beyond your flutter app. https://pub.dev/packages/flutter_media_notification
MIT License
32 stars 27 forks source link

Crashlytics on Samsung phones #10

Open JohnBaker123 opened 4 years ago

JohnBaker123 commented 4 years ago

I am seeing a lot of these errors

Caused by java.lang.IllegalStateException Could not find any Service that handles android.intent.action.MEDIA_BUTTON or implements a media browser service. androidx.media.session.MediaButtonReceiver.onReceive (MediaButtonReceiver.java:13) android.app.ActivityThread.handleReceiver (ActivityThread.java:3624) android.app.ActivityThread.access$1300 (ActivityThread.java:240) android.app.ActivityThread$H.handleMessage (ActivityThread.java:1817) android.os.Handler.dispatchMessage (Handler.java:106) android.os.Looper.loop (Looper.java:214) android.app.ActivityThread.main (ActivityThread.java:7124) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:975)

Was sure what library was causing this but then noticed this in the manifest

   <receiver android:name="com.tarafdari.flutter_media_notification.NotificationReturnSlot" />
    <receiver android:name="androidx.media.session.MediaButtonReceiver" >
        <intent-filter>
            <action android:name="android.intent.action.MEDIA_BUTTON" />
        </intent-filter>
    </receiver>

Not sure why the error is occuring.

vasito95 commented 4 years ago

Hi, Have you found solution?

JohnBaker123 commented 4 years ago

no. I am still getting these errors.


From: vasito95 notifications@github.com Sent: Monday, April 13, 2020 2:57 PM To: aliyazdi75/flutter_media_notification flutter_media_notification@noreply.github.com Cc: JohnBaker123 policescannerradio@outlook.com; Author author@noreply.github.com Subject: Re: [aliyazdi75/flutter_media_notification] Crashlytics on Samsung phones (#10)

Hi, Have you found solution?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/aliyazdi75/flutter_media_notification/issues/10#issuecomment-612933984, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOQRJSFCUKHKVZWUSSZMOSLRMMR35ANCNFSM4LIIQZ6Q.

JohnBaker123 commented 4 years ago

Been struggling with this. Trying different things. Think I tried adding

​ into my own app manifest. But I think it was generating other errors. Then took it out. ________________________________ From: vasito95 Sent: Monday, April 13, 2020 2:57 PM To: aliyazdi75/flutter_media_notification Cc: JohnBaker123 ; Author Subject: Re: [aliyazdi75/flutter_media_notification] Crashlytics on Samsung phones (#10) Hi, Have you found solution? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
joesnarky commented 4 years ago

btw, Samsung does have a very cool testing lab site android developers can use for free (although I have seen these errors on other phones as well, LG, etc)

https://developer.samsung.com/remotetestlab/galaxy/rtlDeviceList.action

I tried to see if I could duplicate this issue on the phones in which I have crash data for with model and OS but I was not able to generate a crash on these test lab phones.