espressif / esp-rainmaker

ESP RainMaker Agent for firmware development
Apache License 2.0
432 stars 145 forks source link

Shared member does not receive notifications (MEGH-4045) #202

Open Jo14532 opened 1 year ago

Jo14532 commented 1 year ago

I added another user to access my ESP32 using the shared member feature on the ESP rainmaker android app.

When I press the switch button, I get a notification pop-up that says button pressed and the LED on the ESP32 board lights up. However, when the other user presses the switch button on his phone the LED does also light up but he does not get the pop-up notification but I do get it on my phone.

How do I grant the second user access to get these notifications?

shahpiyushv commented 1 year ago

@Jo14532 , are you asking about the node alerts explicitly triggered from the firmware using esp_rmaker_param_update_and_notify() or esp_rmaker_raise_alert()? If yes, I just checked at my end and both, the primary and secondary users were getting those notifications. For normal param updates, no popup is expected anyways, since these are silent notifications, meant just to update the UI in real time.

Jo14532 commented 1 year ago

@shahpiyushv I am using the following:

image

On my phone when I arm the system I receive the following notification:

image

However, on the second users' phone, he does not but I do.

shahpiyushv commented 1 year ago

@Jo14532 what phone is the other user using (Android or iOS?). Does that user get other notifications like node online/offline for that node?

Jo14532 commented 1 year ago

@shahpiyushv hes using an Huawei P50 lite. So not running Android or ios. It's running Huawei OS

And no he does not get the online andd offline notifications as well

shahpiyushv commented 1 year ago

We support only Google FCM (Android) and APNS (iOS) for push notifications. Seems the issue is seen because Huawei OS has its own push notification service. So, this does not seem to be an issue of secondary user, but of missing support.

Jo14532 commented 1 year ago

@shahpiyushv noted. So I guess the next question is will you guys add support for the Huawei OS or should I inform the secondary user to swop his phone if he wants the push notifications... (LOL)

shahpiyushv commented 1 year ago

@Jo14532 , Amazon Simple Notification Service (SNS) does not support Huawei out of the box, but requires some custom logic. So, this may not be prioritised any time soon.