Console registration flow

After checking the Console App’s source code, I noticed that it takes several steps to register a new Console to the Server in order to receive push notifications, perhaps through this API (or not).
image

That’s the only thing that makes a new Console valid, isn’t it? Like this image:
image

If so, what information do I need to send via the above API and if not, what steps do I need to take? If anyone knows, please help me, thanks!

Might have been best to keep this discussion in your other thread about push notifications.

The manager app will indeed call that endpoint at startup; if the manager app is running within the Android or iOS app then the push provider will try and initialise using native code and that means getting the apps FCM token so that the manager can then target your device via the FCM API when sending push notifications.

The FCM config used in the Android/iOS app(s) has to match what is running on the manager backend hence you cannot use push notifications in the OpenRemote app from the stores with your own server as we don’t share the FCM certificates used on our demo server.

1 Like

Great! I have one more question, is this the information the Manager needs to target my device? So, I just need to call that endpoint with this body, right?
image

I don’t know why you would manually call this endpoint; the console should do it itself as it has the push.data.token value needed to make it all work.

Any UI app that uses the @openremote/core component will initialise the providers and provided the app is running inside the OpenRemote Android/iOS native app then the push provider should respond with the device’s FCM token which will then be passed through to the console register call.

1 Like

I use this endpoint because I don’t use Console App. So, I have to send request to this endpoint manually. By the way, after trying it, I confirmed this endpoint can work by manually sending requests, and still receiving push notifications. Thanks for help!