title: Android push notification with actions/parameters
body: <p>I just made an app with Delphi XE6 that receives push notifications with kinvey based on <a href="http://blogs.embarcadero.com/sarinadupont/2014/04/16/remote-push-notifications-on-android-with-rad-studio-xe6/" rel="nofollow">this example</a></p>
  
  <p>When the application is running and I send a push the PushEvent handler receives it well, but when the application is closed and I press the notification it only opens my app.</p>
  
  <p>Can I know which notification was pressed and get parameters from it?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Edit:</p>
  
  <p>I get a little bit closer, in my FormCreate ask for Extras:</p>
  
  <pre><code>procedure TForm1.FormCreate(Sender: TObject);
  var
    LIntent: JIntent;
    LExtras: JBundle;
    LExtrasArray: TJavaObjectArray&lt;AndroidApi.JNI.JavaTypes.JObject&gt;;
  begin
    LIntent := SharedActivity.getIntent;
    try
      if LIntent &lt;&gt; nil then
      begin
        LExtras := LIntent.getExtras;
        if LExtras &lt;&gt; nil then
        begin
          //Now try to get the data
          LExtrasArray := LExtras.KeySet.toArray;
          for I := 0 to LExtrasArray.Length - 1 do
            Memo1.Lines.Add(JStringToString(LExtrasArray.Items[I].toString));
        end;
      end;
    finally 
      LIntent := nil;
    end;
  end;
  </code></pre>
  
  <p>With this code I get "gcm" in my memo.
  So, when the notification fires my app I get this Extra available.</p>
  
  <p>Now the problem is how I get info about that extra?
  I tried <code>LExtras.getString(StringToJString('message'))</code> but this writes '' instead of the push message</p>