Push notification error

Hi, can i get some advice of the push notification for the error below, thank you

Notification failed ‘48480’: Target{type=ASSET, id=5G9pX7fCX4hrAzdNeUfHZK}, reason=NotificationProcessingException{reason=SEND_FAILURE, message=‘Requested entity was not found.’}

Notification failed ‘48479’: Target{type=ASSET, id=2ZyIvQKQdSl8p7IvKP9ECD}, reason=NotificationProcessingException{reason=SEND_FAILURE, message=‘SenderId mismatch’}

Hi!

These are errors that come from the Firebase SDK that we use for sending push notifications.
In this case, it cannot send a notification to these 2 devices. (see the two console asset IDs)

Depending on your situation, you can interpret these errors as warnings.
Are you using the OpenRemote mobile app, or a custom one?

Hi, thanks for your reply.

I am using custom app which is web to app, perhaps I can ignore those warning which was previous trial using openremote app. I found that the custom mobile app do not provide token to openremote as below, Can you advice what should I do to fix this, or what I missing to implement into the custom mobile app?

{
“push”: {
“version”: “web”,
“requiresPermission”: false,
“hasPermission”: true,
“success”: true,
“enabled”: true,
“disabled”: false
}
}

I am using custom app which is web to app, perhaps I can …

Sorry, I should’ve been more clear with my question;
Are you building a custom iOS / Android app? (aka a custom console)
Or are you using the OpenRemote mobile app that’s already in the app stores?

For context: the web apps (manager, insights…) are separate from this.
The default OpenRemote Android / iOS app is able to load all web apps,
without the need of setting up notifications.

Hi, yes, I am building custom mobile app specifically for Android first, it is web to app, it just load openremote web app in the mobile app, I didn’t setup the Android console in openremote, perhaps I need to right?

The custom mobile app is premade from other party, it has Firebase integration, I wonder to integrate Openremote to the same Firebase project, it seems working just without the device token sync back to Openremote, so I think Openremote didn’t trigger push notification to those console device without the device token as per my last reply.

Sorry I am a layman on mobile app development.

Do enlighten me if you have any advice, thank you in advance.

We have a guide in the docs on setting up push notifications for a custom Android / iOS app:

You can probably use your existing Firebase project for this.
Should not be too much work :wink:

Hi, thanks for your reply, i got it works that Openremote triggered push notification to the device, however I got the error below, can advice where to check the Sender ID in openremote, I don’t see it in fcm.json where I copied from my firebase service account json, thank you.

Notification failed ‘48672’: Target{type=ASSET, id=44U3FV3w54gynWbxAj6iR9}, reason=NotificationProcessingException{reason=SEND_FAILURE, message=‘SenderId mismatch’}

Hi, fyi I made it works already, thanks so much for the advice.

1 Like