You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if anyone has the same problem as me. I send a push notification from BE (NestJS + OneSignal NodeJS API) to Mobile (React Native with Expo integration). On BE I send it like this:
If I click on the body of the push notification, the event.result will be an empty object (no actionId), but if I click on the view-item button, it will print out as follows:
But if I change it to: console.log(actionId: ${event.result.actionID}); it will still log the output but will give an error/warning in the IDE: no property 'actionID' in event.result:
LOG actionID: view-item
LOG actionID: view-item
Please tell me how to fix it. Sorry if my English is bad. Btw i'm using "react-native-onesignal": "^5.2.3".
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
How can we help?
I don't know if anyone has the same problem as me. I send a push notification from BE (NestJS + OneSignal NodeJS API) to Mobile (React Native with Expo integration). On BE I send it like this:
On Mobile (React Native), I tried the following:
If I click on the body of the push notification, the event.result will be an empty object (no actionId), but if I click on the view-item button, it will print out as follows:
But if I change it to:
console.log(
actionId: ${event.result.actionID});
it will still log the output but will give an error/warning in the IDE: no property 'actionID' in event.result:Please tell me how to fix it. Sorry if my English is bad. Btw i'm using "react-native-onesignal": "^5.2.3".
Code of Conduct
The text was updated successfully, but these errors were encountered: