SayWut / flutter_foreground_service_plugin

MIT License
12 stars 12 forks source link

memory overflow problem #1

Closed yakupbaser closed 3 years ago

yakupbaser commented 3 years ago

hi, i tested your plugin and its great but i worked your example, it uses 65 mb ram in normally but when i clicked to "start service" and "start task" over and over, The memory usage increased exponentially with each click. and it reached to 250 mb. So it seems a bug. Service should only work once.

SayWut commented 3 years ago

Hello @yakupbaser Yes I see this too. I will work on this Thank you :)

SayWut commented 3 years ago

I published a new version (0.1.5), from my testing it now fixed. Let me know if you see any problem

BTW, now if you try to start the task multiple times it will throw an error, the same for stoping the task.

yakupbaser commented 3 years ago

it seems fixed, thanks. If you want to make the plugin that ios version. I can give a teamviever/anydesk remote connection from my mac and i can plug a real ios device too. 👍

SayWut commented 3 years ago

Thank you for your offer but I read about foreground services in IOS and it is not possible to run foreground service like in android, in IOS you can run a foreground service under specific conditions like a video player service

yakupbaser commented 3 years ago

hmm thanks again for your plugin.