We need two certificates for sending notifications: one for development and one for production. In my case, I use the PushSharp solution to send notifications.
This is for development:
var config = new ApnsConfiguration(ApnsConfiguration.ApnsServerEnvironment.Sandbox, "development.p12", "password"); var broker = new ApnsServiceBroker(config);
This is for production:
var config = new ApnsConfiguration(ApnsConfiguration.ApnsServerEnvironment.Production, "production.p12", "password"); var broker = new ApnsServiceBroker(config);
Sailokesh Aithagoni Aug 2 '17 at 8:21 on 2017-08-02 08:21
source share