Comments (9)
Thanks @erichsu. Missed that somehow.
from apns-http2.
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.
Hi @judepereira, do you know when will this be deployed on CleverTap Official service?
from apns-http2.
from apns-http2.
Can remove line 220 ~ 226 ?
If need no toast and no sound, push sender can use "sound" and "alert" keep empty in APNS JSON format
from apns-http2.
@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.
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.
from apns-http2.
Please contact our official support for that particular information.
from apns-http2.
Related Issues (20)
- How to set alert option "subtitle"? HOT 2
- What should be system configuration while using this api
- CertificateUtils should support the VoIP message
- some APS new Dictionary Keys are not supported
- com.clevertap.apns.exceptions.CertificateEnvironmentMismatchException: Invalid environment for this certificate
- unexpected end of stream on okhttp3.Address@2f8c2e51 HOT 2
- ALPN callback dropped: HTTP/2 is disabled. Is alpn-boot on the boot class path?
- alpn-boot jar causing conflict with jdbc (Oracle) connection
- How to handle socket timeout exception
- failure: NotificationResponse{error=null, httpStatusCode=-1, responseBody='null', cause=java.io.IOException: unexpected end of stream on okhttp3.Address@e9db4294} HOT 3
- Java 11 java.io.IOException: unexpected end of stream on okhttp3.Address
- Confusing release policy: 1.0.3 vs 1.0.5 vs 1.0.7
- Is it possible to get apns topic from cert automatically
- PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target HOT 1
- Ability to omit "alert" in payload
- If jdk8 version > 8u252, does it still need to add Jetty's ALPN JAR dependency? HOT 3
- java.lang.IllegalArgumentException: Unexpected char 0x0d
- unexpected end of stream on Connection {api.sandbox.push.apple.com:443 HOT 3
- apns-http2: v2.0.0 is not pulling in the version of okHttp specified in pom.xml
- Support MDM payload
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apns-http2.