Open stephanoparaskeva opened 3 years ago
I want to post a notification and have the option to not display said notification if app is in foreground.
my current provider implementation looks like this and ignoreInForeground works on android:
ignoreInForeground
const payload = JSON.stringify({ message: x?.data?.message, ignoreInForeground: true, }); const pushParameters = { notification_type: 'push', user: { ids: [recipient.data?.cubeId] }, // recipients. environment: __DEV__ ? 'development' : 'production', message: ConnectyCube.pushnotifications.base64Encode(payload), }; await ConnectyCube.pushnotifications.events.create(pushParameters); };
I want to post a notification and have the option to not display said notification if app is in foreground.
my current provider implementation looks like this and
ignoreInForeground
works on android: