Git Product home page Git Product logo

Comments (4)

Eternal21 avatar Eternal21 commented on June 15, 2024

Try changing priority from 10 to 5. See more details here.

Apple's documentation has some ambiguity on this field. Some Apple documentation pages indicate that apns-priority must be set to 5 for all push payloads that have content-available set to 1 (true). Other documentation pages indicate that content-available can be set to 1 and apns-priority can still be set to 10, as long as the push message has content to be shown to the user (via the alert field of the APNS payload).

Our findings are that the latter is true: At this time, apns-priorty only needs to be set to 5 for notifications without any alert data. OneSignal automatically sets this header to the right value for our customers.

from net-core-push-notifications.

asaadmirza avatar asaadmirza commented on June 15, 2024

I tried it but still not update in background , I set apps-push-type to alert , just I receive the notification without update content in background , only when I open background app refresh from setting it work , but in iOS 12 no need to open this option from settings.

from net-core-push-notifications.

Sthefanny avatar Sthefanny commented on June 15, 2024

Hi.

How can I send an Header to FcmSender? I don't know how to send apns-push-type or apns-priority

from net-core-push-notifications.

andrei-m-code avatar andrei-m-code commented on June 15, 2024

@Sthefanny please read the README. There are some notification model examples that might be helpful. For properties with dashes you can use attribute [JsonProperty("apns-push-type")] and it will be serialized accordingly.

from net-core-push-notifications.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.