I am developing a Xamarin.Forms app for iOS and Android and want pushnotifications. When I try to send a simple notification as shown in this guide: https://github.com/Redth/PushSharp/wiki/How-to-Configure-&-Send-Apple-Push-Notifications-using-PushSharp I get an error on var appleSettings:
var cert = File.ReadAllBytes (Path.Combine (AppDomain.CurrentDomain.BaseDirectory, "sertifikater2.p12"));
var appleSettings = new ApplePushChannelSettings (false, cert, "pwd");
The error is: The type System.Security.Cryptograhy.X509Certificates.X509Certificate2 is an assembly that is not referenced. I have referenced System.Security in my project which is an empty C# project in the same solution as my Xamarin.iOS project. Anyone know why I cant find a reference to an assembly which I have?