#Push notifications not displaying when the app is in foreground
1 messages · Page 1 of 1 (latest)
<@&986960430528331776> Hey, guys, sorry any comment on this?
@quiet palm
Can you share the code snippet you are using to trigger the workflow?
Hi, Pawan! Sure!
import { Novu } from '@novu/node';
const novu = new Novu('<API_KEY>');
novu.trigger('push-inactive', {
to: {
subscriberId: '<REPLACE_WITH_DATA>'
},
payload: {}
});
@quiet palm, you just advanced to level 1!
After the trigger is activated:
Do you need a snippet after the trigger is activated?
@covert bear Hi, Pawan! We are still exepriencing the same issue. Sorry, I wanted to write "bckground" in the original message. We are not receiving messages when the app is running in the background, which defeats the purpose of push notifications.
@covert bear Hey, guys, it's been a week, still not response from you <@&986960430528331776> <@&952997475759820870>
<@&1046382738606919740>
@quiet palm
Checkout this guide. We have trigger example. Are you sending overrides data?
https://docs.novu.co/integrations/providers/push/fcm#sdk-trigger-example
Hi, Pawan, thank you very much for your response! 🙏 We don't use override, because we use Novu interface button for triggering and sending push notifications. Is it possible to fix the issue on the Novu side? Or override is something which we have to set up even if we want to do everything from the Novu interface?
want*
@quiet palm
Novu dashboard have override field. currently, override is necessary
Hi, Pawan! Thank you very much for your response! 🙏 It helped when we included an override. Still not working properly on Chinese devices though, but I guess it can't be solved on the Novu's side? You know, some Chinese devices do not display notificaitons in the background for the sake of battery optimization.