79258107

Date: 2024-12-06 13:17:01
Score: 3.5
Natty:
Report link

I am facing issues regarding setting up Push Notifications from stream.io in my unity project. I have the firebase token which I want to send to stream chat in order to setup push notifications for chat notifications.

I have setup other than chat notifications using playfab cloudscript & firebase.

Environment: Unity 2022.3.25f Push Provider: Firebase Target devices: iOS

My questions are:

  1. Does the below method handles sending push notifications if I pass firebase token in parameters?

  2. Will it send push notifications for every message?

    public async Task AddDeviceAsync(string token) { await Client.DeviceApi.AddDeviceAsync(new CreateDeviceRequest { //Device ID provided by the notifications provider e.g. Token //provided by Firebase Messaging SDK Id = token, PushProvider = PushProviderType.Firebase, }); }

Reasons:
  • Blacklisted phrase (1): I am facing issue
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Shahrukh Abdullah