Skip to content

can we Revert to minsdk 21 ? #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rohitsangwan01 opened this issue Dec 20, 2021 · 6 comments
Closed

can we Revert to minsdk 21 ? #37

rohitsangwan01 opened this issue Dec 20, 2021 · 6 comments

Comments

@rohitsangwan01
Copy link

Hey , i just noticed one thing that my app size increases almost double after changing minsdk from 21 -> 23 , but i can't use 21 with this pcakcge , so any workaround or possible to set minsdk 21 for your package

@Dev-hwang
Copy link
Owner

Dev-hwang commented Dec 21, 2021

I set the minimum sdk to 23 because of the stability of the permission request and foreground service. I can downgrade to 21, but I don't know what compatibility issues it will cause.

@Dev-hwang
Copy link
Owner

@rohitsangwan01

If you use the branch below, you can also use this plugin in version 21, but stability cannot be guaranteed.

Add the following line to your pubspec.yaml file.

dependency_overrides:
  flutter_foreground_task:
    git:
      url: https://github.com/Dev-hwang/flutter_foreground_task.git
      ref: minsdk_21

@rohitsangwan01
Copy link
Author

rohitsangwan01 commented Dec 21, 2021

@Dev-hwang , Great , i think that will do the job ,Thanks for your Efforts Sir

@Dev-hwang
Copy link
Owner

@rohitsangwan01

Removed sub-branch. And it has been integrated into the master branch.

If you upgrade to version 3.5.5, it works on sdk 21 with bug fixes.

@rohitsangwan01
Copy link
Author

@Dev-hwang Thats Great , Btw , i just want a functionality keep running in background(In IOS , Working Fine in Android) , its a timer with some bluetooth device connected , sometimes it works , sometimes it stopped after few seconds or minutes , any fix for that , am simply executing this plugin on app opening , and its not like i have to revoke this task after few seconds or something , its just if user start that specific functionality , that timer will start in App (which also updates AppUI) with some bluetooth tasks , and it will keep working unless user stops manually or swipe up app from memory

@Dev-hwang
Copy link
Owner

@rohitsangwan01

As also explained in the readme, it may not work properly due to background limitations of the iOS platform. I know that the app goes into the background and doesn't work after 30 seconds. There doesn't seem to be a way to fix this at this time. If there is a better way, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants