mailto: link in ionic android ios cordova app

mailto: link in ionic android ios cordova app
mailto: link in ionic android ios cordova app

Here is simple code snippet for mailto: link in ionic and below all issues.
mailto: links not opening mail app on Android in cordova app, android – Mobile phone call or mailto doesn’t work, Using mailto in ionic? – Ionic.

Template code for mailto: link:

<a ng-click="sendMail()" href="javascript:;">Mail to link</a></pre>

Controller code for mailto: link:

$scope.sendMail = function(){
 var mailWindow = window.open('mailto:abc@example.com?subject=My Subject');
 mailWindow.close();
}