Questions tagged [silent-notification]

56 questions
67
votes
3 answers

What are different types of notifications in iOS and how to configure them correctly?

When I read Apple Docs, they mention 3 types of notification: local, remote, and silent. Local notification can be inferred from its name, that is sent by the app locally. However, what is the difference between the other two types?
58
votes
8 answers

Silent push notifications only delivered if device is charging and/or app is foreground

I have implemented silent push notifications but I have noticed some strange behaviour. The silent push notifications are handled via: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo…
51
votes
3 answers

Is Silent Remote Notifications possible if user has disabled push for the app?

In my settings tabbar: I have a feature specific switch which can be turned OFF or ON based on API response. From website only admin is authorized to turn ON/OFF. I can make /user API call everytime on settings tap to check the current settings for…
Tariq
  • 9,861
  • 12
  • 62
  • 103
23
votes
3 answers

The purpose of "Content-available" in Push Notification Json?

The purpose is to send push notification with only badge value & nothing else (no banner). I integrated parse sdk to test push notification & send this push notification { "alert" :"", "badge" :"787", "Content-available" : "1", "sound" : "" } So…
20
votes
9 answers

didReceiveRemoteNotification not called in iOS 13.3 when app is in background

I am banging my head. I am implementing push notification. Everything is working fine (push is received, badge is updated) but under iOS 13.3 the method application(_:didReceiveRemoteNotification:fetchCompletionHandler:) is not called when the app…
18
votes
4 answers

Is it possible to send SILENT LOCAL notification on iOS

My app wakes up from suspended mode on silent remote notification from a server, exactly as I want. This server sends a push notification with "content-available:1", which does the job. Now I want to do this without the help of a server and so I…
7
votes
1 answer

Are silent remote push notifications deprecated in iOS 11?

Currently I'm able to receive silent push using app delegate's didReceiveRemoteNotification method. That method is deprecated and according to this we're supposed to be switching to UNUserNotificationCenter's willPresent method, but I can't seem to…
6
votes
4 answers

How can I send a silent notifications using app center push service

I am trying to send a silent notification (I mean a notification that will not be shown in the tray) using this API: but when I do not set the body key I get this Error: { "error": { "code": 400, "message": "body parameter is invalid or…
5
votes
1 answer

APNS Content Available Push not working in iOS 15

APNS Content available push not received in iOS 15 device when app builds with Xcode 13.0,iOS 15 SDK. Push payload data with content available:1 not working {"aps":{"content-available":1},"update":"2|1"} but normal notification message push…
5
votes
1 answer

Should I update my app upon receiving payload? Or I should always update it by allowing it to download for itself?

When your iPhone receives a WhatsApp/Telegram push notification e.g. wife: "buy pizza" Question1: Is it that the app has to download/receive that itself. That is the banner that pops up on the phone has to download for itself + my Whatsapp/Telegram…
4
votes
1 answer

iOS Silent Push Notification not delivered after device reboot

While testing the delivery of silent notifications (one which has "content-available": 1 in the payload) to my app I noticed that, after device is rebooted notifications are not delivered. Sending the same payload works if the app is running in…
francybiga
  • 960
  • 1
  • 8
  • 16
4
votes
1 answer

iOS silent push notification

I am trying to implement silent push notification in my application where I need to update some data in the server when silent notification comes. I am using Pushkit and it uses VoIP certificate for silent push notification but the app has been…
4
votes
1 answer

Silent notification vs Background fetch

I've already read Apple's documentation on background modes, but I still have some questions. Please correct me if I'm wrong: To enable remote notifications: I only need to do: To enable silent notifications: I need to enable Push notifications like…
3
votes
0 answers

didReceiveRemoteNotification:fetchCompletionHandler background thread or main thread

I am working on core data and silent notifications. I don't have any thread safe implementation in core data. And when i get silent notifications i need to fetch & save couple of items into database. So my question is does…
3
votes
2 answers

Swift: Getting Data from Remote notification

I have a messaging app, which gets data from server through push notification. In the following image, you can see the process and also check where it gets faulted: I have researched a lot about this problem but not getting a universal solution. One…
Talha Ahmad Khan
  • 3,416
  • 5
  • 23
  • 38
1
2 3 4