We are developing it with Visual Studio 2013 C#.
I am using PushSharp to create a push server for IOS.
AppleSettings=new PushSharp.Apple.ApplePushChannelSettings(appleCert, "xxxxxxxx";
ArgumentException has occurred in .
Please tell me what causes and how to solve this problem.
Below is my code.
private static PushSharp.Apple.ApplePushChannelSettingsAppleSettings=null;
private static PushSharp.Apple.ApplePushChannelSettingsGetAppleSettingsDebug()
{
if(appleSettings==null)
{
// TODO:configuration settings
varAppleCert=File.ReadAllBytes(@"D:\APNs\development.p12");
AppleSettings=new PushSharp.Apple.ApplePushChannelSettings(appleCert, "xxxxxx";
}
return appleSettings;
}
Read the additional information in English.
You need to create a production certificate and use it.Please check.
http://d.hatena.ne.jp/samril/20130902/1378198909
© 2024 OneMinuteCode. All rights reserved.