Firebase Cloud Messaging in ionic apps

People who are used to integarte GCM in ionic apps, its time to migrate to FCM( Firebase Cloud Messaging ) App/Device/Client side steps : Use plugin¬†https://github.com/fechanique/cordova-plugin-fcm STEP 1 cordova plugin add cordova-plugin-fcm STEP 2 if(window.cordova) { FCMPlugin.onNotification( function(data){ if(data.wasTapped){ // $state.go(‘message’, {id:data.pageId}); // $location.path(‘app/userList’); alert(‘onNotification tapped true’); } else { alert(“xxxxxxxxxxxx”+data); } }, function(msg){ // … Continued