Integration with notifo

Hi,
I’d like to integrate into my squidex docker installation notifo, but haven’t found an integration guide. Is there a link with a short guide?
Thank you

Federica

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [ X] Documentation issue or request

Environment

  • [X] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: [VERSION]

Browser:

  • [X ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

Hi,

as I said: I have brought the previous notification system back. You can use that. If you still want to use notifo, I am more than happy to support you with that.

Step 1:

Install Notifo. There is no documentation for that, but you will see many similarities to Squidex:

There are 3 important settings:

  1. The BaseURl (URLS__BASEURL)
  2. The Mongo ConnectionString (STORAGE__MONGODB__CONNECTIONSTRING)
  3. The users: https://github.com/notifo-io/notifo/blob/main/backend/src/Notifo/appsettings.json#L230

You can use the docker image for that: https://hub.docker.com/r/squidex/notifo

Step 2: Create a new App in Notifo which is like project

Step 3: Configure Squidex

See the following settings: https://github.com/Squidex/squidex/blob/master/backend/src/Squidex/appsettings.json#L185

  1. APP ID (1)
  2. API Key (2)

Thats it. You should see that squidex creates the users in notifo then. Your users also have to login again to get the notifo token.

Hi Sebastian,
I understand that you brought the previous notification system back and I will use it for a project, but I’d like to use notifo for another project because I think notifo is the best solution.

Thanks for the guide

1 Like

Hi,

how is it going? Can I support you with something?

Hi,
I set up the enviroments variable into Squidex.
I would need confirmation regarding the variables. I set these NOTIFO_API_KEY NOTIFO_APP_ID NOTIFO_API_URL, is that correct?

Thanks,
Federica

No, they are

NOTIFO__APIKEY
NOTIFO__APPID
NOTIFO__APPURL

Hi,
We followed the instructions but squidex did not create users in notification.
There are two API Key Admin and API Key WebManager and we took the former as per directions.
I haven’t found any changes within squidex. The notification section at the top right for users has not appeared.

Thanks,
Federica

You have to go the admin section -> EventConsumers and the restart the HistoryConsumer

I have an error.
{“logLevel”:“Error”,“action”:“RegisterToNotifo”,“status”:“Failed”,“details”:“HTTP Response: \n\n{\u0022message\u0022:null,\u0022traceId\u0022:\u002200-580ff140e944cb15d39a5f92924b125a-ab17147b3bccdcfb-01\u0022,\u0022type\u0022:\u0022https://tools.ietf.org/html/rfc7235#section-3.1\u0022,\u0022details\u0022:null,\u0022statusCode\u0022:401}\n\nNotifo.SDK.NotifoException: The HTTP status code of the response was not expected (401).\n\nStatus: 401\nResponse: \n{\u0022message\u0022:null,\u0022traceId\u0022:\u002200-580ff140e944cb15d39a5f92924b125a-ab17147b3bccdcfb-01\u0022,\u0022type\u0022:\u0022https://tools.ietf.org/html/rfc7235#section-3.1\u0022,\u0022details\u0022:null,\u0022statusCode\u0022:401}\n at Notifo.SDK.EventsClient.PostEventsAsync(String appId, PublishManyDto request, CancellationToken cancellationToken)\n at Squidex.Domain.Apps.Entities.History.NotifoService.HandleEventsAsync(IEnumerable\u00601 events) in /src/src/Squidex.Domain.Apps.Entities/History/NotifoService.cs:line 198”,“timestamp”:“2021-12-09T10:31:03Z”,“app”:{“name”:“Squidex”,“version”:“5.9.0.0”,“sessionId”:“ba7723fa-7560-462f-bb34-9ad59b3b15d6”},“exception”:{“type”:“Notifo.SDK.NotifoException”,“message”:“The HTTP status code of the response was not expected (401).\n\nStatus: 401\nResponse: \n{\u0022message\u0022:null,\u0022traceId\u0022:\u002200-580ff140e944cb15d39a5f92924b125a-ab17147b3bccdcfb-01\u0022,\u0022type\u0022:\u0022https://tools.ietf.org/html/rfc7235#section-3.1\u0022,\u0022details\u0022:null,\u0022statusCode\u0022:401}”,“stackTrace”:" at Notifo.SDK.EventsClient.PostEventsAsync(String appId, PublishManyDto request, CancellationToken cancellationToken)\n at Squidex.Domain.Apps.Entities.History.NotifoService.HandleEventsAsync(IEnumerable\u00601 events) in /src/src/Squidex.Domain.Apps.Entities/History/NotifoService.cs:line 198"}}

Thats good, then you cannot authenticate. You have to use API Key Admin

IYes, I’m using the first one. There are two in the “Your API Credentials” screen

And the APP_ID is also correct?

if you want, you can give me your access to your notifo setup and I try to connect my local instance with it. Just send me a username and password.