Matt Furnari

Results 25 comments of Matt Furnari

> after 5 minutes of running the app in the background in android the app stops That's what I'm seeing as well. I'm also noticing that the notification isn't showing...

> what I found in my testing was that after disabling webview optimizations, the code worked correctly: > > ```js > this.backgroundMode.on('activate', () => this.backgroundMode.disableWebviewOptimizations()); > ``` What device and...

> what I found in my testing was that after disabling webview optimizations, the code worked correctly: > > ```js > this.backgroundMode.on('activate', () => this.backgroundMode.disableWebviewOptimizations()); > ``` I tried this...

I came across this solution mixing power management, partial wake-locks, and background mode: https://forum.ionicframework.com/t/i-found-a-solution-for-some-regular-background-activity/27012 Seems to do the trick for the samsung s9...

> @mpfurnari Do this trick works on all android? Not being completely familiar with the underlying design of this backgroundmode plugin, I'm not certain that I'd call the wake-lock solution...

> i need keep open a websocket connection on background That's exactly what's I'm doing...

> I came across this solution mixing power management, partial wake-locks, and background mode: https://forum.ionicframework.com/t/i-found-a-solution-for-some-regular-background-activity/27012 > > Seems to do the trick for the samsung s9... I've been running for...

> The mpfurnari solution has momentarily answered, even if it is not yet the ideal form, as I'm afraid the nescessity of it keeps the screen on and the application...

Agreed, if the app is kept in the foreground with this solution, it doesn't behave as desired when the phone is locked etc. My workaround for this will be to...

> Is this about using API 26 as target sdk in android code or running any targeted sdk code on android 8.0 or above devices? As far as I know,...