title: How do I set text field for alert message in the alert dialog in Ionic 2?
body: <p>I am getting a push notification using Firebase and showing it in alert box. Now I want to display the message i received in a text field so that user can edit the message.I also want to output the message in console.</p>
  
  <pre><code>pushObject.on('notification').subscribe((notification: any) =&gt; {
    if (notification.additionalData.foreground) {
      let youralert = this.alertCtrl.create({
        title: 'New Push notification',
        message: notification.message,
        buttons: [
          {
            text: 'Cancel',
            role: 'cancel',
            handler: () =&gt; {
             console.log('Cancel clicked');
            }
          },
          {
            text: 'Okay',
            handler: () =&gt; {
              console.log('Okay clicked');
            }
          }
        ]
      });
  </code></pre>