RocketChat / Rocket.Chat.ReactNative

Rocket.Chat mobile clients
https://rocket.chat
MIT License
2.01k stars 1.17k forks source link

[App White-Label] Notification doesn't work on iOS #5419

Closed guilhermecfviana closed 9 months ago

guilhermecfviana commented 10 months ago

Description:

I configured it using the APNs certificate both in Firebase and in the rocket.chat server administrator panel and I do not receive notifications on iOS. Note: On Android it is already working normally.

Environment Information:

Steps to reproduce:

  1. I accessed the rocket.chat server and configured the APNs for the push notification certificates

Captura de Tela 2023-12-20 às 11 49 27

Captura de Tela 2023-12-20 às 11 51 19

Captura de Tela 2023-12-20 às 11 52 21

Captura de Tela 2023-12-20 às 11 53 37

  1. At developer.apple.com I configured APN certificates

Captura de Tela 2023-12-20 às 11 57 00

Captura de Tela 2023-12-20 às 11 58 49

  1. In firebase I configured APN certificates

Captura de Tela 2023-12-20 às 11 55 14

  1. In xcode I added the GoogleService-info.plist file

Captura de Tela 2023-12-20 às 12 00 33

  1. I built the IPA and submitted it to the TestFlight application

Captura de Tela 2023-12-20 às 12 13 34

Expected behavior:

Receive push notifications on iPhone successfully!

Actual behavior:

I'm not receiving push notifications on my iPhone.

dnlsilva commented 10 months ago

After changing the keys, did you restart the server? This is probably something related to the keys, on iOS it's quite annoying.

guilhermecfviana commented 10 months ago

Hello @GleidsonDaniel ! After changing the keys, did you restart the server?

In this test I am using the app on an iPhone in TestFlight, push notifications should work like this normally, right?

dnlsilva commented 10 months ago

It should work. @diegolmello deals more with this iOS certificate problem, he has already helped some people, he is the right person to help you. Did you follow this white label doc step by step? https://developer.rocket.chat/open-source-projects/mobile-app/mobile-app-white-labelling/ios-app-white-labelling https://developer.rocket.chat/open-source-projects/mobile-app/configuring-push-notifications

guilhermecfviana commented 10 months ago

Yes, I follow these @diegolmello tutorials, but I'm not receiving push notifications in the iOS app.

In the Android app, push notifications work normally.

diegolmello commented 9 months ago

Hey @guilhermecfviana. iOS push notifications can be hard to setup sometimes. A couple of things:

guilhermecfviana commented 9 months ago

Hi @diegolmello , With your information I was able to make push notifications work on iOS. Thank you very much!

muhammadfahimraza commented 3 months ago

Hi @guilhermecfviana , Can you let me know any specific step you done to overcome this issue? I am also facing same issue while sending push notification to my iOS device and I am confused which key point I am missing. Thanks