Silent push trigger for Mendix Native without Android OS notification
0
Hi all, I’m using the standard Mendix Native Push Notifications module connected to FCM. Functionally everything works exactly as I need: when I send a push with a notification payload, the message is received in the app, logs appear in logcat, and my Mendix action is triggered. The issue: I want the push to act as a silent remote trigger, meaning: No Android OS notification (not even an empty one in the notification shade) The message must still be received in Mendix Native so I can trigger an in-app action What I tested: Sending data-only push JSON (no android.notification block) → FCM reports delivered, but nothing happens in Mendix Native and I see zero activity in logcat Keeping the notification block → Mendix receives it and triggers the action, but it still creates an entry in Android OS notifications, which users can open/click (even if empty) — and that’s what I want to avoid Question: Is there any way with the standard module or configuration to send a remote push that: Is received by Mendix Native (JS layer / notification handler) Does not register as a notification in Android OS at all? Or is this simply unsupported by the current Mendix Native push implementation? Thanks in advance, Martin
asked
Martin de Heer
1 answers
0
Hi Martin,
Yes, this is partially possible in Mendix Native, but only when the app is in the foreground.
You can achieve a “silent-like” behavior (no visible interruption to the user) using the following approach:
Steps :
Add the Native push notification snippet (NativeHomepage_Snippet) to the page where you want to handle the notification.
Inside the snippet, configure the Notification widget.
Create an Actions.
Use the same action name in your FCM message.
Configure the trigger logic in the widget’s On receive event.