'How to embed dynamic content into OneSignal push notification template?
We are using OneSignal as push notification service for our game. I read documantation several times but I couldnt find proper way to add data that is not tagged to a message template.
We have message templates on OneSignal and sending notifications from .net backend.
SCENARIO
- User1 sends friend request to user2 through our backend.
- Backend insert friend request
- Backend send push notification to user2 using OneSignal.
We have a message template for case ' an user sends a friend request to another user' In message I should mention sender users username. Tags is not feasable since sendee user didnt know anything about sender yet.
Thank you
I tried reading documentation and using tags. But I think there has to be another way.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|