 <p>Should use GCM high-priority messages to wake the app and access the network. Example of High priority GCM message:- </p> <pre><code>{ "to" : "bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1...", "priority" : "high", "notification" : { "body" : "This week’s edition is now available.", "title" : "NewsMagazine.com", "icon" : "new", }, "data" : { "volume" : "3.21.15", "contents" : "http://www.news-magazine.com/world-week/21659772" } } </code></pre> <p>See the "priority" key has value "high", this will awake the device and gcm message will be delivered instantly and it wont crash.</p> <p>Check this out for more information <a href="https://developer.android.com/training/monitoring-device-state/doze-standby.html#whitelisting-cases" rel="nofollow">https://developer.android.com/training/monitoring-device-state/doze-standby.html#whitelisting-cases</a></p>