-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add Warning Dialog when HumHub doesn't support push #188
Comments
"Push notifications are not supported by this installation." |
Route is |
Hey @luke-, There is a minor issue here. The community page exposes We use the dio package for communication with the REST API, which is not authenticated because authentication occurs inside the webview, where the user state is managed. The webview does not support advanced web client functionalities. It is possible to parse the returned HTML and extract JSON, but I would like to avoid that. I would use JS message method, similar to how we did for registering the FCM token. |
@luke- @PrimozRatej Why not displaying this warning to logged admins only? It might even be better not displaying the warning to non-admins, because maybe some communities will want to use the app without push feature. What do you think? |
I believe this would also work better when humhub/fcm-push#24 is implemented, I've also contributed a modified version of the P/R within this issue to implement the grant statuses with @luke-'s points in mind and can say overall it works rather well, but it could be updated to also handle this issue. |
We can also do it that way. But if we only want to implement a warning for admins, we should implement this on the HumHub module side in the |
Maybe we could use the We could take this opportunity to create:
Then, we could add the warning to the |
@marc-farre We already have some helper here: Maybe we could copy that, for now somewhere into the core. At some point we should think about integrating at least some app parts of the |
@luke- done:
|
@luke- Do you want me to add the warning to the |
@marc-farre Yes, that would be fine! Thanks! |
@marc-farre Thanks, the PR looks good! @Eladnarlea Can you please check the buttons? |
@luke- I would suggest to do it in the style of the alert/prerequisites design. In case you do not wish to implement it yet, we could only implement the icon-button EDIT: in terms of layout and sizes I am unsure how your suggestion would look like, implemented, @marc-farre. I find it difficult to evaluate your design & button positions for this reason. |
@Eladnarlea Thanks, unfortunately I don't have time for the Requirement Redesign topic at the moment. But I would like to take a closer look at the design here before implement. So I would suggest that we first add buttons (or a simple link) and not change the design at all. Later in the requirement redesign we can also consider this sidebar element. @marc-farre Can you please add a simple plain link regarding the app for now. We'll hopefully redesign this soon. |
@luke- @Eladnarlea commit humhub/humhub@b452871 Or did you want to keep the existent "Documentation" button for cron jobs and add a warning about the mobile app bellow? |
@luke- Commit humhub/humhub@77aedf1 |
@luke- in order to unify the software, could we please try to use the unified version like in the prerequisites used, already? Meaning using the I think, what you didn't like about the help button was not the button itself, rather the styling of the |
@Eladnarlea I haven't had a closer look at the new Prereq design yet... so I don't want to already start implementing it in this unrelated task. |
@luke- Is my PR fine, or you want changes on it? |
@marc-farre Thanks, it's fine. But there will be UI changes as soon we refactoring the PreReq page :-) |
@luke- I close this issue. We can open a new one about UI refactoring. |
#7166) * When browsing HumHub from the mobile app, add a warning to the dashboard (IncompleteSetupWarning widget) if HumHub doesn't support push notifications * Add PR ID to changelog * Fix: remove test condition * humhub/app#188 (comment) * humhub/app#188 (comment) --------- Co-authored-by: Lucas Bartholemy <[email protected]>
The app should display a warning dialogue if the selected HumHub installation does not have a configured push module installed.
The status can be queried via: humhub/fcm-push#37
Warn text could be, for example:
‘No push notifications are available for the selected HumHub installation. Contact the administrator for more information.’
@Semir1212 can you check the text please?
The text was updated successfully, but these errors were encountered: