-
Notifications
You must be signed in to change notification settings - Fork 90
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
GCM notification delay, GCM connection interupted #3956
Comments
adguard not use GCM (google cloud messaging) it,s use own socket |
I am sorry if I don't make myself clear. The problem is when using adguard with shadowsocks, adguard seems to break some local connections. And with other current situation of isp(20 minutes heartbeat, lesser than 28 minutes of google heartbeat), it leads to GCM connection/notification problem |
I find it connects successfully when getting results from '143.95.251.89:80: 128', but when getting results from '143.95.251.89:80: 32', it will fail. |
It seems to me that this issue may be related to recent updates on the One UI 3.0 and 3.1 shell on Android 11, Samsung changed its policy on closing apps running in the background. To make sure your favorite apps don’t get killed unexpectedly and work as intended on your Galaxy device running Android 11, head to Settings > Apps > “Your App” > Battery > Battery Optimization > All Apps > “Your app” > Don’t optimize. |
I have put almost every app into 'Don’t optimize' status. But the problem is still there. |
I think you can try enabling AdGuard in Always-on-VPN mode maybe this will help in solving the issue. |
Tried this, the problem still exists |
@JhonHuGit Hi! |
Tried yesterday evening, shadowsocks alone worked fine. GCM connects steably. |
Update adguard to 3.6.4, and use another samsung s20 ultra with latest system patch, the problem is gone both in ipv4 and ipv6 environment. |
@JhonHuGit Thanks for the update! |
update: the problem is back again. Here is how I tried and the results I searched the internet and find Samsung has something called local battery policy which has no way to disable except for a foreign SIM card. I first presume that a) and b) problems is related to this stupid policy, but I am wondering why c) is OK. Anyway, I will keep trying and update. Hope version 4.0 or Samsung new oneui will somehow solve the problem. Just saying, is it possible for you to add more filter rules to your public dns, for example, some more Chinese filter rules? (・ω<) |
@JhonHuGit Could you file an issue with more details in filters repository? Make sure to mention the domains you'd like to block. |
I don‘t know exactly what domain is about the ads. Here are the filters I am using. (Sorry about the Chinese because I don't know how to translate them to English) |
@JhonHuGit You can report this issue via Support --> Send feedback --> Missed ad or tracker and mention the webpage/es you faced the issue on. |
UPDATE: FYI: my settings are as follows |
UPDATE: |
@JhonHuGit Hi! Is there any news on this issue?
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Prerequisites
Issue Details
3.6.2
Local VPN with shadowsocks outbound
Samsung s20 ultra snapdragon with Chinese rom
Android 11 / oneui 3.1
no
Expected Behavior
This issue is concerned about GCM notification. I cannot connet GCM and most google services due to my local government policy. So I am using shadowsocks as a proxy and adguard as vpn. My mobile network has a 20 mininutes timeout, so I used an app to send a heartbeat package every 5 minutes to keep GCM connection alive.
I have disabled battery optimization for nearly every app.
GCM connetion will keep alive.
Actual Behavior
When using mobile network and screen off, GCM disconnets ramdomly. This situation does not happen when screen is on or the phone charges or with wifi.
Strangely, this disconnetion usually happens when using ipv4, with ipv6 working but not filtered, the problem seems gone.
Logs and fcm diagnostics screenshots are attached below.
Screenshots
ipv4_adguard_logs_3.6.23_3008_174100.zip
Uploading ipv6_adguard_logs_3.6.23_3008_181059.zip…
The text was updated successfully, but these errors were encountered: