Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push notifications do not work unless the chat is opened for the first time. #65

Open
captain-KasH opened this issue Dec 12, 2024 · 6 comments

Comments

@captain-KasH
Copy link

captain-KasH commented Dec 12, 2024

I’m facing an issue with push notifications. Notifications are not received when the app is opened for the first time. The Dimelo SDK initialization and token initialization are already completed, but the chat needs to be opened before receiving notifications, basically need to trigger dimelo.openRcActivity(currentActivity).

In this case, users with an ongoing chat who uninstall and reinstall the app never receive push notifications without accessing the chat module first.

React Native: v0.75.4
Dimelo SDK: 3.2.8

@waelba
Copy link
Contributor

waelba commented Dec 12, 2024

Hi @captain-KasH,

This this the expected behavior for our SDK.

Regards,

@waelba waelba closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2024
@captain-KasH
Copy link
Author

Hi @waelba,

There is active chat and user reinstall/login with diff device. Notification should work without opening Dimelo screen, because chat is already active. Is this covered under the SDK?

@DrissTM
Copy link
Contributor

DrissTM commented Dec 12, 2024

Hi @captain-KasH,

The fact that a notification is sent is dependent on whether the user has authorized the notification on the application, if you just re-installed the application and never opened it you can't accept the notification permission which makes it impossible for you to receive a notification even though a chat session is ongoing

@captain-KasH
Copy link
Author

captain-KasH commented Dec 12, 2024

Hey @DrissTM @waelba ,

From the app side, we prompt the user to enable push notification permissions. So, opening Dimelo is not required to enable the permissions, as they are already enabled. In this case, do the notifications still not work as expected?

@captain-KasH
Copy link
Author

captain-KasH commented Dec 19, 2024

Hey @waelba @DrissTM

Any update on this ?

@DrissTM
Copy link
Contributor

DrissTM commented Jan 3, 2025

Hi @captain-KasH, we're going to investigate how to better handle this case.

I'm re-opening the issue and I'll let you know if/when there's a fix coming

@DrissTM DrissTM reopened this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants