Git Product home page Git Product logo

Comments (6)

kmemo avatar kmemo commented on May 24, 2024

FYI:

flutter_overlay_window/android/src/main/java/flutter/overlay/window/flutter_overlay_window/OverlayService.java

176: if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) {
177: pendingFlags = PendingIntent.FLAG_IMMUTABLE;
178: } else {
179: pendingFlags = PendingIntent.FLAG_UPDATE_CURRENT;
180: }

For a Android API 30 emulator to run one of my codes with flutter_overlay_window plugin, I had to modify the line 176 of OverlayService.java as:

176: if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {

Reference https://stackoverflow.com/a/70627228

from flutter_overlay_window.

buihongvinh avatar buihongvinh commented on May 24, 2024

It not work for me .
I got this error when change in line 176 . Pls help to fix it. Thanks
Screen Shot 2022-10-04 at 17 05 12

from flutter_overlay_window.

buihongvinh avatar buihongvinh commented on May 24, 2024

I got this screen when i click Show overlay
Uploading Screen Shot 2022-10-04 at 17.06.00.png…

from flutter_overlay_window.

X-SLAYER avatar X-SLAYER commented on May 24, 2024

#48 (comment)

from flutter_overlay_window.

kmemo avatar kmemo commented on May 24, 2024

FYI:

flutter_overlay_window/android/src/main/java/flutter/overlay/window/flutter_overlay_window/OverlayService.java

176: if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) { 177: pendingFlags = PendingIntent.FLAG_IMMUTABLE; 178: } else { 179: pendingFlags = PendingIntent.FLAG_UPDATE_CURRENT; 180: }

For a Android API 30 emulator to run one of my codes with flutter_overlay_window plugin, I had to modify the line 176 of OverlayService.java as:

176: if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {

Reference https://stackoverflow.com/a/70627228

I am not able to see changes to the codes of the new version of the plugin (0.4.1) in regards to this issue.
This issue has been closed but no explanation how this issue has been adressed by the team.

from flutter_overlay_window.

X-SLAYER avatar X-SLAYER commented on May 24, 2024

I will retry it because I already tested it on real API30 SDK I will try it on an emulator

from flutter_overlay_window.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.