thanh-nguyen-kim/Unity_Android_Screen_Recorder

App Crashes

Opened this issue · 3 comments

First of all thanks for this plugin , i downloaded the Project and get a build for POCO M3 it works fine but for other mobile it crashes

2024-02-28 18:11:35.773 15662 15662 Error AndroidRuntime java.lang.RuntimeException: Unable to start service com.hbisoft.hbrecorder.ScreenRecordService@88e88a3 with Intent { cmp=com.setik.androidutils/com.hbisoft.hbrecorder.ScreenRecordService (has extras) }: java.lang.IllegalArgumentException: com.setik.androidutils**: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.**

2024-02-28 18:11:35.773 15662 15662 Error AndroidRuntime Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
Capture

Hi.
This bug will occur in android 12 and above due to a change in the android intent system.
I will rollout new version in this weekend which fix this issue.

Thanks for the reply, im waiting

Have you resolved this issue?