# How to search for Players who haven't played in a long time?

**URL:** <https://forum.heroiclabs.com/t/how-to-search-for-players-who-havent-played-in-a-long-time/5940>\
**Category:** Runtime Framework\
**Tags:** golang\
**Created:** [January 15, 2025, 6:55pm UTC](https://forum.heroiclabs.com/t/how-to-search-for-players-who-havent-played-in-a-long-time/5940 "2025-01-15T18:55:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spuddy](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Spuddy](https://forum.heroiclabs.com/u/Spuddy)\
**Post date:** [January 15, 2025, 6:55pm UTC](https://forum.heroiclabs.com/t/how-to-search-for-players-who-havent-played-in-a-long-time/5940/1 "2025-01-15T18:55:37Z")

</div>

I’d like to send a push notification to all the players who haven’t opened my app in say 30 days or more. Is there anything built into Nakama that automates this for me or do I have to write a runtime script to do it ? If the latter, then can someone show me some GoLang code that searches my Nakama database of players and returns an array of Player IDs who haven’t opened the app in 30 days or more ? I’m not very familiar with database searches. Thanks!

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [January 15, 2025, 7:19pm UTC](https://forum.heroiclabs.com/t/how-to-search-for-players-who-havent-played-in-a-long-time/5940/2 "2025-01-15T19:19:54Z")

</div>

Hello @Spuddy,

Have a look at: [Last online datetime for user - #2 by sesposito](https://forum.heroiclabs.com/t/last-online-datetime-for-user/5698/2)

---

<div class="post-metadata">

**Author:** ![Spuddy](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Spuddy](https://forum.heroiclabs.com/u/Spuddy)\
**Post date:** [January 15, 2025, 11:37pm UTC](https://forum.heroiclabs.com/t/how-to-search-for-players-who-havent-played-in-a-long-time/5940/3 "2025-01-15T23:37:20Z")

</div>

Oh it’s okay, I can just do all this through OneSignal.
