Coder Social home page Coder Social logo

Comments (9)

judepereira avatar judepereira commented on June 1, 2024 2

Thanks @erichsu. Missed that somehow.

from apns-http2.

erichsu avatar erichsu commented on June 1, 2024 1

Hi @judepereira, from the AppleDoc (link)

To support a background update notification, make sure that the payload’s aps dictionary includes the content-available key with a value of 1. If there are user-visible updates that go along with the background update, you can set the alert, sound, or badge keys in the aps dictionary, as appropriate.

Should alert/badge/sound be empty with content-available 1 as your description?

I think what @Bosian want to achieve is both background updates and display alert by APS alone, not using UNNotification with local notification.
It will be more flexible to send different purpose messages if we could contains alert/sounds/badge in notification payload.
Is there any other concerns?

from apns-http2.

erichsu avatar erichsu commented on June 1, 2024 1

Hi @judepereira, do you know when will this be deployed on CleverTap Official service?

from apns-http2.

judepereira avatar judepereira commented on June 1, 2024

from apns-http2.

Bosian avatar Bosian commented on June 1, 2024

Can remove line 220 ~ 226 ?

0eabab3

If need no toast and no sound, push sender can use "sound" and "alert" keep empty in APNS JSON format

from apns-http2.

judepereira avatar judepereira commented on June 1, 2024

@Bosian What are you trying to achieve? If you set content-available as 1, then according to the Apple docs, alert should be empty.

from apns-http2.

Bosian avatar Bosian commented on June 1, 2024

I need collection push data and display to TableView in notification page of App, but also need show alert and sound for user. (I receive background push data and show local notification for user currently)

from apns-http2.

judepereira avatar judepereira commented on June 1, 2024

from apns-http2.

judepereira avatar judepereira commented on June 1, 2024

Please contact our official support for that particular information.

from apns-http2.

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.