修改HOSTS实现FCM推送

Chuyi
Jan 11, 2024

--

用上hyperOS(MIUI15)之后,FCM推送就不灵光了。*感恩*,这是身为中国人的福分。

经过一系列的搜索,发现FCM某些IP暂时还没被墙。想着准备通过绑定hosts的方式,把FCM的域名指向未被墙的IP,进而实现FCM推送。找到了好心人整理的可用的FCM Hosts,如下,还有规则订阅链接。

142.250.157.188     mtalk.google.com
142.250.141.188 alt1-mtalk.google.com
142.250.115.188 alt2-mtalk.google.com
64.233.171.188 alt3-mtalk.google.com
173.194.202.188 alt4-mtalk.google.com
142.250.141.188 alt5-mtalk.google.com
142.250.115.188 alt6-mtalk.google.com
142.250.141.188 alt7-mtalk.google.com
142.250.152.188 alt8-mtalk.google.com
180.163.151.161 dl.google.com
180.163.150.33 dl.l.google.com

https://gcore.jsdelivr.net/gh/entr0pia/fcm-hosts@fcm/fcm-hosts

https://github.com/entr0pia/fcm-hosts/raw/fcm/fcm-hosts

如何绑定hosts呢,第一时间想到的就是clash,在Clash For Android中, 写入:Setting-Override-General-Hosts-➕-Key|Value。不过这些起来有点麻烦,而且也无法订阅。

想到AdAway是基于hosts屏蔽广告的,应该也是可以直接修改hosts的吧?点了点,果然是有个Redirected选项。Hosts sources-➕- location,☑️Apple redirected hosts。点应用。回到首页,点击Redirected选项,里面已经有11个值了,NICE。

点开电话拨号,输入*#*#426#*#*,events里面 已经显示Connected。完美。

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Responses (1)