# Send notification to player added as friend

**URL:** <https://forum.heroiclabs.com/t/send-notification-to-player-added-as-friend/812>\
**Category:** Local Setup\
**Created:** [June 16, 2020, 7:12pm UTC](https://forum.heroiclabs.com/t/send-notification-to-player-added-as-friend/812 "2020-06-16T19:12:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mkarena](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mkarena/32/51_2.png) [@Mkarena](https://forum.heroiclabs.com/u/Mkarena)\
**Post date:** [June 16, 2020, 7:12pm UTC](https://forum.heroiclabs.com/t/send-notification-to-player-added-as-friend/812/1 "2020-06-16T19:12:04Z")

</div>

Hi,

I can’t figure a simple way to send a notification to the player requested to be a friend.  
I’d like to send a notification to player B when player A sends a friend request to player B.

With hooks, i do not find any information on the added player (payload seems to be nil)

Thanks for help

---

<div class="post-metadata">

**Author:** ![zyro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/zyro/32/14_2.png) [@zyro](https://forum.heroiclabs.com/u/zyro)\
**Post date:** [June 16, 2020, 8:53pm UTC](https://forum.heroiclabs.com/t/send-notification-to-player-added-as-friend/812/2 "2020-06-16T20:53:21Z")

</div>

The server already sends an in-app notification to users when they receive a friend request, you don’t need to handle this yourself. Have a look at the built-in notifications [here](https://heroiclabs.com/docs/social-in-app-notifications/#notification-codes).

Does this cover what you’re trying to achieve?
