title: Chat App using GCM, PHP & MySQL
body: <p>I am following this tutorial </p>
  
  <p><a href="http://www.androidhive.info/2016/02/android-push-notifications-using-gcm-php-mysql-realtime-chat-app-part-1" rel="nofollow noreferrer">Part-1</a></p>
  
  <p><a href="http://www.androidhive.info/2016/02/android-push-notifications-using-gcm-php-mysql-realtime-chat-app-part-2/" rel="nofollow noreferrer">Part -2</a></p>
  
  <p>part-1 has been done sucessfully and but in part -2 when i deploy app im my mobile then i am not getting any  <strong>gcm registration token</strong> in toast and neither in logcat.
  As i have searched that due to my config.php file i am using ip s=address instead of hostname i had to change my link <strong>from this</strong>
  <a href="http://live_host_ip_address/gcm_chat/v1/user/login" rel="nofollow noreferrer">http://live_host_ip_address/gcm_chat/v1/user/login</a> ---->
   <strong>to this</strong>
  <a href="http://live_host_ip_address/gcm_chat/v1/index.php/user/login" rel="nofollow noreferrer">http://live_host_ip_address/gcm_chat/v1/index.php/user/login</a> </p>
  
  <p>on using  <strong>Postman Chrome REST API</strong> with this link-<a href="http://live_host_ip_address/gcm_chat/v1/user/login" rel="nofollow noreferrer">http://live_host_ip_address/gcm_chat/v1/user/login</a>  it was not working but on changing the link to <a href="http://live_host_ip_address/gcm_chat/v1/index.php/user/login" rel="nofollow noreferrer">http://live_host_ip_address/gcm_chat/v1/index.php/user/login</a> the link begaun to work properly.</p>
  
  <p><strong>On testing its showing volley error:null</strong></p>
  
  <p><a href="https://i.stack.imgur.com/pTRjN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pTRjN.png" alt="enter image description here"></a></p>
  
  <p><strong>and in Logcat its showing</strong></p>
  
  <pre><code>23676-24548/info.androidhive.gcm E/LoginActivity﹕ params: {email=example@gmail.com, name=abc}
   23676-24548/info.androidhive.gcm E/LoginActivity﹕ params: {email=example@gmail.com, name=abc}
   23676-23676/info.androidhive.gcm E/LoginActivity﹕ Volley error: null, code: null
   23676-23676/info.androidhive.gcm D/Volley﹕ [1] Request.finish: 7764 ms: [ ] http://live_ip_address/gcm_chat/v1/user/login 0x44e0acb1 NORMAL 7
  </code></pre>
  
  <p><strong>I think the problem lies in that i am using <a href="http://live_host_ip_address/gcm_chat/v1/index.php/user/login" rel="nofollow noreferrer">http://live_host_ip_address/gcm_chat/v1/index.php/user/login</a> from the Postman Chrome REST API but in logcat its showing <a href="http://live_host_ip_address/gcm_chat/v1/user/login" rel="nofollow noreferrer">http://live_host_ip_address/gcm_chat/v1/user/login</a></strong></p>