Usamurai
Usamurai

Reputation: 1

Push Notifications not always working on iPhone

I face the following weird problem. I have a setup for notifications using Azure NotificationHub and Xamarin to develop an iOS app. It works fine with the following exception. Some times some notifications sent from my backend server (C# Visual Studio Windows Form Application) cause the iPhone to flash, I hear the notification sound, no notification is shown and older notifications of my app are removed from the list. Any idea what might be causing this?

Thanks

Upvotes: 0

Views: 429

Answers (1)

Bruno Medina
Bruno Medina

Reputation: 681

I see that you write:

I hear the notification sound, no notification is shown and older notifications of my app are removed from the list.

  1. If you hear the notification sound, that means that the neither the APNS nor the Azure Notification Hub is the problem, because you are actually receiving the notification on the device.

  2. No notification is shown.

    1.This means that either the implementation of your code is deciding to actually receive the notification and do nothing with it. Check t Receiving Push Notifications while in background

    1. This could also mean that in settings you disabled all the notification balloons, alerts and other properties. Make sure your app has actually the proper settings to work with notifications. (Believe me, it happens) https://support.apple.com/en-us/HT201925
  3. Older notifications of my app are removed from the list. First of all I do not understand how do you have notifications on the list (did you actually received notifications somehow?). In any case, the notifications are removed by code when you enter your app. Please review this question (iOS application: how to clear notifications?)

Please mark my answer correct if it helped you, if not. Please provide more code of your implementation so we can provide you a better answer. Best Regards.

Upvotes: 2

Related Questions