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 Are Not Configured #93

Closed
YuriYabe opened this issue May 16, 2024 · 5 comments
Closed

Push Notifications Are Not Configured #93

YuriYabe opened this issue May 16, 2024 · 5 comments

Comments

@YuriYabe
Copy link

Hi, I have the 3.6.3PE version of Thingsboard. I have downloaded all the packages to create the application, and everything works fine except for push notifications, just like in the previous versions.

I followed the guide to integrate Firebase with Flutter to enable push notifications. I built an APK to test it. By going to the app's permissions, I can actually enable the notifications (previously I couldn't even see them). I enabled them, logged in, and checked that the dashboard, alarms, etc., work, and everything is functioning correctly. At this point, I did a notification check.

I went to "More," clicked on "Notifications," and I get the message "Notifications are not configured. Please contact your system administrator" (light gray button).

I inserted the JSON into Thingsboard
I executed flutterfire configure
Followed the documentation
How can I resolve this?
Immagine WhatsApp 2024-05-16 ore 15 59 33_4fe3e27c
777
Screenshot 2024-05-16 160039

@ybeshkarov
Copy link
Contributor

Hello @YuriYabe!

After running flutterfire configure, you should see changes in lib/firebase_options.dart. Can you confirm if you are seeing these changes?

@YuriYabe
Copy link
Author

Hi @ybeshkarov , thanks for your response! Yes, I see the changes. Actually, I managed to resolve it during the night. I deleted the firebase_options file and when I did flutterfire configure, it recreated it correctly! I see the notifications now.

However, as soon as I open the app, I get a message "path '/api/notifications/unread/count': not found." I can close it, but it appears every time I reopen the app! In fact, I can't see the unread notifications. Do you have any idea what the problem might be? Tonight I will try to rebuild the app from scratch!

(At least the notifications arrive; if I go under "all" I can see them. The problem is only with the "unread" ones.)

@YuriYabe
Copy link
Author

Hi @ybeshkarov , thanks for your response! Yes, I see the changes. Actually, I managed to resolve it during the night. I deleted the firebase_options file and when I did flutterfire configure, it recreated it correctly! I see the notifications now.

However, as soon as I open the app, I get a message "path '/api/notifications/unread/count': not found." I can close it, but it appears every time I reopen the app! In fact, I can't see the unread notifications. Do you have any idea what the problem might be? Tonight I will try to rebuild the app from scratch!

(At least the notifications arrive; if I go under "all" I can see them. The problem is only with the "unread" ones.)

UPDATE: (Now I still have the same error, but when I go to "unread" I can see the notifications.)

@ybeshkarov
Copy link
Contributor

Hi @YuriYabe,

It's good to hear that the notifications are working for you now.

The error message path '/api/notifications/unread/count': not found indicates that your ThingsBoard instance doesn't have the specified endpoint https://thingsboard.cloud/swagger-ui/#/notification-controller/getUnreadNotificationsCountUsingGET.

This endpoint was added in version 3.6.4.

@ybeshkarov
Copy link
Contributor

Closed due to no further action required. Please reopen if the issue persists.

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

2 participants