microg / microg/GmsCore

Use PCP and/or IGD to reduce keepalive messages for push notification connection if network supports it

Open
#1,141 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

☁️ Cloud / Push Messaging confirmed enhancement
Dominant language
Java
Stars
14.6k
Forks
3.2k
Avg merge
12d 11h
Merged PRs (30d)
4

Description

If network supports PCP (applicable to both carrier grade network and home network) or UPnP IGD (applicable to home network). Middlebox (e.g. NAT, firewall) connection state lifetime could be controlled by endpoint devices. MicroG could set a long lifetime to reduce keepalive/ping messages which would reduce battery consumption and network usage.

This is applicable to both IPv4 (usually NAT+firewall) and IPv6 (usually firewall).

IETF RFC6887: https://tools.ietf.org/html/rfc6887#section-10.3

PCP client library: https://github.com/libpcp/pcp
UPnP IGD client library: https://github.com/miniupnp/miniupnp/blob/master/miniupnpc/java/JavaBridgeTest.java

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading RFC 6887 section 10.3 and reviewing the referenced PCP and UPnP IGD client libraries. Then locate the push-notification connection entry point in GmsCore; done would require a defined, tested integration that reduces keepalive traffic when network support is available without disrupting connectivity.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.