Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question Firebase CloudMessaging triggered from CloudCode

Discussion in 'Cloud Code' started by nmckean, Jun 10, 2024.

  1. nmckean

    nmckean

    Joined:
    Apr 12, 2020
    Posts:
    52
    Hi,

    Does anyone have any useful resources on how to set things up so that a CloudCode C# Module can trigger a push notification via Firebase Cloud Messaging to a specific user? I am building a turn-based game and need to alert players when an opponent has made a move. I don't plan to use Unity Push Notifications at this stage due to Unity Analytics pricing and Push Notification limits.
     
  2. MariusUrbelis

    MariusUrbelis

    Unity Technologies

    Joined:
    Mar 15, 2015
    Posts:
    49
  3. nmckean

    nmckean

    Joined:
    Apr 12, 2020
    Posts:
    52
    Hi. I've implemented pish messages already, but that only addresses the user case where the opponent is actively playing. I should probably have noted that this is a passive turn-based game, so I need to be able to alert the opponent when the game is backgrounded etc.
     
  4. MariusUrbelis

    MariusUrbelis

    Unity Technologies

    Joined:
    Mar 15, 2015
    Posts:
    49