-
Notifications
You must be signed in to change notification settings - Fork 7
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 Service for the Android mobile app not working anymore #30
Comments
@marc-farre Just tested different scenarios and it works well on my side. |
@luke- tested again with app version 1.0.76 and I still have the same problem (with https://community.humhub.com all is OK). Is it normal that, each time I refresh the page on https://push.humhub.com/, the API Keys are different? Is there a debugger I can look at to check what's happening? |
@marc-farre Yes, it's normal when the API Keys change. (JWT Token).
|
Thanks @luke- for your help. Indeed, I forgot this hidden debug page. Very usefull!
But wow, something has changed... Strangely, I still have "App Detection - Current Request: NO App Request Detected" in the debug page. But it works well. I didn't do anything to make it work, tests are done exactly the same way, and the app has not been reinstalled. I've configured another Humhub instance and tested, it works well too. |
@marc-farre The message If you access the Debug page via the mobile app, this message should not appear. |
I reopen the issue because I'm still having randomly the issue. I have the green "App Detection - Current Request: Is App Request". But on the mobile app, sometimes it works, sometimes not. Maybe I should move this issue to the mobile app repository as the Firebase push service works well for the browser? |
@marc-farre Hmm, we can check whether the notification arrives at our push service. Can you send me a registered push device ID (debug page, first 6 characters) and URL of a missing notification as a private message. Then I'll check whether it was forwarded. |
@luke- Thank for your investigation proposal. Now I understand better what's happening: I've tested on 4 different instances. All of them are on the latest stable versions (core and push module) and on the same server. But: On instance 1, I had 3 registered push devices. I've deleted them, came back on the instance in the mobile app, and a new one is created. Then mobile app notifications worded again. On instances 2, 3 and 4, I nether get any registered push device. Even if I "Send |
@marc-farre There may be a mix-up here between normal browser notifications and browser push notifications. Browser NotificationsOnly when HumHub tab is open. Work without "push", it's triggered by the HumHub Browser Push NotificationsI only receive browser push notifications when the browser tab is not active, e.g. even when it is closed. But here registered DeviceID is necessary in the Push Notification Debug Page. When I click "Reset Permission", the browser asks me again, whether notifications should be sent. Following message should appear in the console: And a new new "Registered FireBase Device" should appear on the Debug Page. Note: This works only, when Firebase is configured manually. Our "Push Service" doesn't send Browser Push notifications. Mobile App PushWhen a user logs in via the mobile app for the first time, a new device should be displayed on the mobile app debug page. When logging out, this device should be removed again. Note: The Browser Push Service must be configured. If it's not working, maybe Notifications are blocked in the Android App Settings? |
@luke- Thanks very much for your time and the explanations. So now I understand what was the problem with the "Desktop Browser". Today, notifications on mobile app works on the 3 other instances (I did no change...) and I can see them on the Registered FireBase Devices... FYI (I don't know if it's a problem):
|
@marc-farre [...]
Let me know, when the problem occur again.
I've created a issue here: #32 |
Test today:
So for this test, I've lost the FireBase Device registration after a while (I logged in a few days ago). |
@luke- This issue is I think the major problem we have to use the mobile app.
When I have multiple registered devices such as |
@marc-farre Tokens with the sender id Do your tests also show that the push notifications stop working after a while? |
@luke- Thanks.
I don't have the problem anymore. Now, "Registered FireBase Devices" seams to be persistant, but I'm doing too few tests to answer well (based on 2 Humhub instances since one week). If it was possible to display in the "Registered FireBase Devices" list which one is for the mobile app it could help understanding what's going on, because it's quite difficult to understand what's causing the problems with these "Registered FireBase Devices". I cannot found a way to reproduce them. |
It was working before (I cannot tell which version, but with 2.0.0-beta), but on version 2.0.0-beta.9 (and perhaps before), the Push Service is not working on the Android mobile app version 1.0.75 and Android 11.
Step to reproduce the problem:
With https://community.humhub.com/ you are still into the Humhub instance.
With another Humhub instance, the app displays the Humhub instance URL field. Once entered, you are already logged in (the app kept the cookies).
Other symptom: push notifications works with the app for https://community.humhub.com/ but not for another Humhub instance.
The tested instance:
But I don't know if that's normal, each time I refresh the page on https://push.humhub.com/ the API Keys are different.
The text was updated successfully, but these errors were encountered: