How Twitter used Doze in Android 6.0 Marshmallow to Improve Notification Performance
Blog post from Google Cloud
Twitter collaborated with the Android team to effectively use the Doze feature in Android 6.0 Marshmallow to enhance notification performance by prioritizing different types of messages, such as setting Direct Messages to high priority, which allows them to wake the device from Doze mode. This approach was designed to balance user expectations for immediate notifications with the need to conserve battery life. Twitter's engineering team, led by Luke Millar, tested their messaging priorities using adb commands to simulate Doze on devices, ensuring their strategy worked effectively in real-world scenarios. Additionally, for larger payloads like Twitter Highlights, they transmitted metadata in notifications to trigger an app sync rather than sending the full content, optimizing performance and efficiency. For further details on implementing Google Cloud Messaging in standby environments, developers can refer to the comprehensive documentation available on the Google Developers site.