title: google gcm raw_data (payload encryption) , push event not received
body: <p>I need some help because i never receive push event in my serviceworker after payload encryption.</p>
  
  <ol>
  <li>First case without payload encrypted</li>
  </ol>
  
  <p>In this case, I receive push event in service worker:</p>
  
  <ul>
  <li>Request is :</li>
  </ul>
  
  
  
  <pre><code>curl -s --header "Authorization: key=MY_KEY" --header "Content-Type: application/json" --header "TTL:86400" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"elmll0-ynBY:APA91bFe7xBGti92H4yrWo2bJT6aMY3IKo3j54yRGtS0NNQYpkqmI5f14EKSPz6_GCEs2PaX6zCD3Lvk-2JRABQVZ3u350bsy0uisxRL0EoZnVHsqVMo7YNojkvQX7o49a61pCmZEfSi\"],\"delay_while_idle\":false,\"collapse_key\":\"hipush-notification\",\"time_to_live\":86400}"
  </code></pre>
  
  <ul>
  <li>Google response is :</li>
  </ul>
  
  
  
  <pre><code>{"multicast_id":5772871775830750210,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1465913797471899%f4d428f3bf364ddd"}]}
  </code></pre>
  
  <ol start="2">
  <li>Second test, with encrypted raw_data</li>
  </ol>
  
  <p>I never receive push event:
  - Request is :</p>
  
  <pre><code>curl -s --header "Authorization: key=MY_KEY" --header "Content-Type: application/json" --header "TTL:86400" --header "Encryption: salt=KYw1fpU-Dg4w1qFcrPY3rQ" --header "Crypto-Key: dh=BOwb4OiwboYRrbhhXh056xFZ8pk8kfQR27Gmu3EdYPG9DkLoKRqA_d4Z_TbT2VYMfHVkGS-dY45rZ8tAimqSWrk" --header "Content-Encoding:aesgcm" https://android.googleapis.com/gcm/send --header "Content-Length: 363" -d "{\"registration_ids\":[\"elmll0-ynBY:APA91bFe7xBGti92H4yrWo2bJT6aMY3IKo3j54yRGtS0NNQYpkqmI5f14EKSPz6_GCEs2PaX6zCD3Lvk-2JRABQVZ3u350bsy0uisxRL0EoZnVHsqVMo7YNojkvQX7o49a61pCmZEfSi\"],\"delay_while_idle\":false,\"collapse_key\":\"hipush-notification\",\"time_to_live\":86400,\"raw_data\":\"rXJHqmhxmTde+297wtb3Tpj5Lq5C8cd2eYW5qTBoC3huGVTOPog6+I2Y6wQEYqP1QIAvUA0NFtYC7Zr\/iCR1sGcu\"}"
  </code></pre>
  
  <ul>
  <li>Google response is :</li>
  </ul>
  
        
  
  <pre><code> {"multicast_id":7840093467258640262,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1465913901129815%f4d428f3bf364ddd"}]}
  </code></pre>
  
  <p>I got same response with success. My chrome is in version 51.</p>
  
  <p>Can someone explain me where is my error ?</p>
  
  <p>Best regards,</p>
  
  <p>Mehdi</p>