Firebase iOS push notification receiving but sometimes not?
Asked Answered
B

0

6

I have implemented push notification in my iOS App using Firebase SDK and I am successfully getting push notifications from Firebase console as well as from server.

But on many occasions, I wait and wait, and even send 5-6 notifications from Firebase console but not received on App. I tried to change network (both Mobile data & WiFi) but still not receiving. After waiting for an hour and more, suddenly it starts working (I am not re-installing App).

What may be the reason? If network is an issue, then why is it not woking though I change my network to WiFi having good bandwidth?

Bushido answered 30/4, 2020 at 11:39 Comment(8)
I have EXACTLY this issue. Did you get anywhere with it?Lampblack
Be sure sequence of code is proper.. for example, first you need to set delegate for push notification, then configure Firebase. I will send you soonBushido
Wow, thanks so much. I will really appreciate this help.Lampblack
I will add code snippet as an answer which may help you..Bushido
Can you tell me your exact issue? Are you not getting push notification sometimes? Or never getting?Bushido
Sometimes. I'll try everything, and they don't come. I try in a few hours, and everything works fine.Lampblack
Let us continue this discussion in chat.Bushido
Do you have any code to help me?Lampblack

© 2022 - 2024 — McMap. All rights reserved.