chanu icon indicating copy to clipboard operation
chanu copied to clipboard

Reconnect when coming out of doze

Open SlayerOrnstein opened this issue 6 years ago • 15 comments

A lot of times after my phone comes out of doze it doesn't detect any internet connection and I have to swipe the app from recent and reopen it

SlayerOrnstein avatar Apr 30 '18 16:04 SlayerOrnstein

I have this issue occasionally too. I think it's something to do with the app getting moved out of memory and getting a full restart.

What kind of phone do you have?

Greznor avatar May 01 '18 13:05 Greznor

I have a Nexus 5 running the latest AOSPA

SlayerOrnstein avatar May 02 '18 11:05 SlayerOrnstein

My backup phone, an HTC m8 with 2GBs ram, has the same problem. I have a good idea where the issue is. I'll include the fix in the next release.

Greznor avatar May 02 '18 16:05 Greznor

Nice really glad to see you back man even if it is for a bit

SlayerOrnstein avatar May 03 '18 14:05 SlayerOrnstein

I've had plans to keep Chanu going as long as possible. I know there are a few minor bugs but if something major breaks like the API changes, I'll fix it.

I made some changes that might fix this network time out problem. I'm hoping it's like a permission problem that stops the app from knowing if its on a mobile network or on wifi.

Can you try out this build and let me know if you still experience the issue. https://github.com/Greznor/chanu/releases/tag/v2.0.27.alpha

Greznor avatar May 03 '18 20:05 Greznor

Alright you want me to let the OS enter doze on its own or is it alright to force it?

SlayerOrnstein avatar May 03 '18 21:05 SlayerOrnstein

It shouldn't matter either way. I think the problem is related to the app getting unloaded from memory and not being able to successfully started again.

Greznor avatar May 03 '18 21:05 Greznor

Just tested it still says network offline

SlayerOrnstein avatar May 03 '18 22:05 SlayerOrnstein

Lame. I have another idea but it's going to take a lot of work.

Greznor avatar May 04 '18 01:05 Greznor

Four months later... I haven't forgotten about this but life is always gets busy.

I'm rolling a few updates into one request pull.

Greznor avatar Aug 09 '18 15:08 Greznor

Been awhile I actually got a new-ish phone but if you need me to test on the same one I do still have the Nexus 5 here

SlayerOrnstein avatar Aug 09 '18 15:08 SlayerOrnstein

Good to see.

On Thu, Aug 9, 2018 at 10:44 AM Ludwig [email protected] wrote:

Been awhile I actually got a new-ish phone but if you need me to test on the same one I do still have the Nexus 5 here

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/grzegorznittner/chanu/issues/479#issuecomment-411803672, or mute the thread https://github.com/notifications/unsubscribe-auth/AAX_h2PYcG6f4FK8wxs1U_CzgIGon7H3ks5uPFjxgaJpZM4Ts1K2 .

johnarleyburns avatar Aug 09 '18 16:08 johnarleyburns

Late but finally implemented for testing. I'll make a pull request if this fixes the network timeout problem. https://github.com/Greznor/chanu/releases/tag/v2.0.27.alpha

Greznor avatar Jan 19 '19 01:01 Greznor

so far haven't seen the error pop up

SlayerOrnstein avatar Jan 24 '19 05:01 SlayerOrnstein

Awesome!

On Wed, Jan 23, 2019 at 11:23 PM Ludwig [email protected] wrote:

so far haven't seen the error pop up

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/grzegorznittner/chanu/issues/479#issuecomment-457071054, or mute the thread https://github.com/notifications/unsubscribe-auth/AAX_hw9bQ7uFWLLUdZ-X36i3VzaWVJcUks5vGUNTgaJpZM4Ts1K2 .

johnarleyburns avatar Jan 24 '19 05:01 johnarleyburns