You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the example app I get the following error java.lang.RuntimeException: Unable to create service flutter.overlay.window.flutter_overlay_window.OverlayService: java.lang.IllegalArgumentException: com.example.flutter_overlay_window_example: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. E/AndroidRuntime(17128): 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.
It seems that in onCreate method of OverlayService, one needs to pass PendingIntent.FLAG_IMMUTABLE while creating the pending intent.
And also how to show some animation when showing the overlay. Right now it just pops up. It would be nice if there is some nice configurable animation.
The text was updated successfully, but these errors were encountered:
When I run the
example
app I get the following errorjava.lang.RuntimeException: Unable to create service flutter.overlay.window.flutter_overlay_window.OverlayService: java.lang.IllegalArgumentException: com.example.flutter_overlay_window_example: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. E/AndroidRuntime(17128): 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.
It seems that in
onCreate
method ofOverlayService
, one needs to passPendingIntent.FLAG_IMMUTABLE
while creating the pending intent.And also how to show some animation when showing the overlay. Right now it just pops up. It would be nice if there is some nice configurable animation.
The text was updated successfully, but these errors were encountered: