espressif / esp-rainmaker

ESP RainMaker Agent for firmware development
Apache License 2.0
433 stars 146 forks source link

Request the mobile app's push notification feature (MEGH-3728) #154

Closed Andrisetianabrata closed 1 year ago

Andrisetianabrata commented 1 year ago

Hi, does ESP Rainmaker have a push notification feature?. If so, how i do that? I can't find any examples for push notifications

JohnMacrae commented 1 year ago

Use this: esp_rmaker_raise_alert("High Voltage Cutoff");

Kind Regards John

On Fri, 5 Aug 2022 at 21:12, Andri Setianabrata @.***> wrote:

Hi, does ESP Rainmaker have a push notification feature?. If so, how i do that? I can't find any examples for push notifications

— Reply to this email directly, view it on GitHub https://github.com/espressif/esp-rainmaker/issues/154, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHTIDI3YHT4WM2VITTVF3LVXVYTNANCNFSM55XFDY2Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Andrisetianabrata commented 1 year ago

Use this: esp_rmaker_raise_alert("High Voltage Cutoff"); Kind Regards John On Fri, 5 Aug 2022 at 21:12, Andri Setianabrata @.> wrote: Hi, does ESP Rainmaker have a push notification feature?. If so, how i do that? I can't find any examples for push notifications — Reply to this email directly, view it on GitHub <#154>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHTIDI3YHT4WM2VITTVF3LVXVYTNANCNFSM55XFDY2Q . You are receiving this because you are subscribed to this thread.Message ID: @.>

how to use it the same as arduino.? i used arduino ide to make it

sanketwadekar commented 1 year ago

Hi @Andrisetianabrata, All RainMaker C APIs can work in Arduino too. The ones in Arduino examples are just CPP abstractions on top.

To use the push notifications feature, include esp_rmaker_core.h file and use esp_rmaker_raise_alert("<message>"); to send notifications.

shahpiyushv commented 1 year ago

Closing this issue as appropriate response has been provided.

JohnMacrae commented 1 year ago

It works the same in both - try it 😊

On Fri, 5 Aug 2022, 21:40 Andri Setianabrata, @.***> wrote:

Use this: esp_rmaker_raisealert("High Voltage Cutoff"); Kind Regards John … <#m-2825722334197575606_> On Fri, 5 Aug 2022 at 21:12, Andri Setianabrata @.> wrote: Hi, does ESP Rainmaker have a push notification feature?. If so, how i do that? I can't find any examples for push notifications — Reply to this email directly, view it on GitHub <#154 https://github.com/espressif/esp-rainmaker/issues/154>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHTIDI3YHT4WM2VITTVF3LVXVYTNANCNFSM55XFDY2Q https://github.com/notifications/unsubscribe-auth/ADHTIDI3YHT4WM2VITTVF3LVXVYTNANCNFSM55XFDY2Q . You are receiving this because you are subscribed to this thread.Message ID: @.>

how to use it the same as arduino.? i used arduino ide to make it

— Reply to this email directly, view it on GitHub https://github.com/espressif/esp-rainmaker/issues/154#issuecomment-1206848008, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHTIDNF3VUYXE46N6OIRVDVXV35NANCNFSM55XFDY2Q . You are receiving this because you commented.Message ID: @.***>