ArgumentException occurs in pushSharp.

Asked 2 years ago, Updated 2 years ago, 137 views

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.

Screenshot of an error.
Enter a description of the image here

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;
}

ios c# visual-studio push-notification

2022-09-30 18:35

1 Answers

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


2022-09-30 18:35

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.