Questions tagged apple-push-notifications

Explore the latest questions and answers asked by our top developers.

How to send iOS – APN Notification With P12 Certificate – C# Samples

I am new to IOS APN – Notification generating service , Please help on How we can send APN from C# Windows Service – .Net Framework 4.5 / 4.7? Tired with Moon-APN , Pushsharp , DotAPN but no result. If any one have sample code with step by step process please share . Thanks in […]

Unable to handle the cancel VOIP push comes after rejecting the incoming call push

I have already developed a VOIP call app that uses pushkit for VOIP push notification. Our notification server is designed to deliver all cancel notifications along with new incoming call notifications through VOIP push (This behavior can’t be changed as of now). Since it has become mandatory to report all incoming push notifications to callkit […]

Websockets vs. iOS Push Notifications

Take an iOS app like Instagram. Instagram is fundementally a real-time application that updates its UI whenever a user interacts with you. For example, if someone likes your post and you are using the app, the UI is updated to trigger dopamine release and inform you that something has hapened to one of your posts. […]

Cannot find protocol declaration for ‘UNUserNotificationCenterDelegate’

I have a an iOS app using Firebase for notifications. Notifications are set up and working, and I now need to receive/handle the notifications to present view controllers accordingly. I use Objective C code to call my C++ code, and therefore I have a bridging header in my project. I have used this example from […]

Users Not Receiving Push Notifications Just From Me

I have a messaging app and I use Parse server as my backend. Push notifications work just fine between my users, however whenever I send a message from my user account, the recipient does not get a push notification (even though it looks like it was delivered to APNS just fine). If I log in […]

How to trigger didReceiveRemoteNotification in iOS?

The following function is triggered whenever a silent notification is sent from my server: func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any]) { print("Received Silent Notification") } However this function is only triggered while the app is visible on the screen (aka in the foreground). If I tap on the home button and then […]

By Rage
Published
Categorised as apple-push-notifications, ios, push-notification, swift

How does WhatsApp bypass APNS restriction to display multiple push messages received while device was offline?

While working with APNS, I was able to have push notifications work flawlessly while device is online. For any APNS push I send while device is offline, only the last one is received once the device is back online. This seems to be coherent with Apple’s Store-and-Forward design. However – I did notice, that when […]

Triggering KVO from Push Extension to App

I am trying to implement KVO in the main app and observe when value changed by the extension. The main app is open when push received, but no trigger in the main App. Only when I close and open it I can see the change. Notification Class: class NotificationService: UNNotificationServiceExtension { var contentHandler: ((UNNotificationContent) -> […]

By Dim
Published
Categorised as apple-push-notifications, ios, key-value-observing, swift

didRegisterForRemoteNotificationsWithDeviceToken does not get triggered – Push Notifications not working

I’ve spent hours now trying to figure out why didRegisterForRemoteNotificationsWithDeviceToken is not being called. It worked before. I didn’t touch it in weeks. Now stopped working. Here’s my setup: Got didRegisterForRemoteNotificationsWithDeviceToken sitting in SceneDelegate Have declared SceneDelegate to be the UNUserNotificationCenterDelegate I’m setting UNUserNotificationCenter.current().delegate = self in func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options […]

By Bernhard Engl
Published
Categorised as apple-push-notifications, swift

How to use apns-collapse-id with FCM?

I know this question have been asked many times but none of the answers work for me. Some of the questions dont even have an answer. I am try to bundle or group similar notifications on ios. I am using FCM Cloud Functions to trigger notifications. Following are the methods i tried by const payload […]

By Neat
Published
Categorised as apple-push-notifications, firebase, firebase-cloud-messaging, ios
1 2 3

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq