How to display a gcm push notification on the lock screen?
<p>I want to send push notification to my android device and place them such that it is hard for the user to miss the push notification. Especially if the app is not running or is in background. I already know how to handle gcm push notification while the app is running. However, I am interested in how to customly display gcm message if the app is not running.</p>

<p>This is the situation I have right now:</p>

<ul>
<li>App is closed/not running</li>
<li>I send a push notification with my python script and it is recieved on my device</li>
<li>A sound is played the screen keeps dark, no vibration</li>
<li>When hitting the sleep/wake button I can see a small notification</li>
</ul>

<p>This is what I want:</p>

<ol>
<li>App is closed/not running, device is locked, screen is off</li>
<li>I send a push notification via gcm to my device</li>
<li>when the message is recieved by my the device the following should happen

<ul>
<li>Phone should vibrate</li>
<li>Phone screen should turn on and show a custom notification</li>
<li>Phone should play a sound (okay, that already works)</li>
</ul></li>
</ol>

<p>After an extensive search on the net I have not found any resource yet that explains how to do that. </p>

<p>Can anybody provide a some guidance to me?</p>