Ionic FCM wasTapped always false
<p>I am using Firebase Notification in Ionic framework with cordova fcm plugin. I want to open a state when user received push notification and tapped it. I am sending notification from Firebase console with params but It's always <strong>data.wasTapped</strong> false that's why it does not work.</p>

<pre><code>FCMPlugin.onNotification(function(data) 
{
    if (data.wasTapped) {
        //Notification was received on device tray and tapped by the user.
        console.log("Tapped: " + JSON.stringify(data));
        if (data.hasOwnProperty('state')) {
            $timeout(function(){
                $state.go(data.state);
            })

        }

    } 
    else 
    {
        //if user already opened app
        console.log("Not tapped: " + JSON.stringify(data));
    }
}, function(msg) {
    console.log('onNotification callback successfully registered: ' + msg);
}, function(err) {
    console.log('Error registering onNotification callback: ' + err);
});
</code></pre>