Not able to enable notifications in ios

SaiLokeshSaiLokesh INMember ✭✭
edited July 2017 in Xamarin.iOS



this is in keychain access

Added in certificate,
Still not getting it.
Device token is sending while debugging the application but not after release,

Best Answer

  • SaiLokeshSaiLokesh IN ✭✭
    Accepted Answer

    Without enabling it, notifications working good for me.

    We need two certificates for sending notifications, One for development and one for production In my case I'm using pushsharp solution to send notification 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);

Answers

  • SaiLokeshSaiLokesh INMember ✭✭
    Accepted Answer

    Without enabling it, notifications working good for me.

    We need two certificates for sending notifications, One for development and one for production In my case I'm using pushsharp solution to send notification 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);

  • Cdn_EuroCdn_Euro Member ✭✭✭

    @SaiLokesh where do you put that code? I have a web api. I use a POST method to that web api to trigger notifications to mobile devices. Its not working in Prodution mode even though I uploaded the production p12 certificate the Notification Hub under APNS. What could be wrong?

  • SaiLokeshSaiLokesh INMember ✭✭

    I'll get back asap!

Sign In or Register to comment.