I am trying to integrate Firebase cloud Messaging to my iOS application. When I connect my phone to Xcode and install the application, push notifications works and are received by the device even after killing the application. However, after about 15-20 mins, the device just stops receiving notifications even if I opened the application again. It returns to the working state only after turning off WiFi and turning On Cellular network. It works for another 15-20 mins and the problem continues on WiFi.
I have tried sending to a specific topic, to a specific device and to all devices but the problem persists