Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Does notification banner show up on iOS app running in foreground? #993

Open
kota opened this issue Mar 12, 2021 · 1 comment
Open

Comments

@kota
Copy link

kota commented Mar 12, 2021

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2019.4.6f1
  • Firebase Unity SDK version: 7.1.0
  • Source you installed the SDK: .unitypackage
  • Problematic Firebase Component: Cloud Messaging
  • Other Firebase Components in use:
  • Additional SDKs you are using:
  • Platform you are using the Unity editor on: Mac
  • Platform you are targeting: iOS
  • Scripting Runtime: Mono

[REQUIRED] Please describe the question here:

When I build quickstart-unity/messaging/testapp on iOS and send a message while the app is in foreground, I expected to see a notification banner to show up, but actually it didn't. Only MessageReceived event was fired.

Is this an intended behavior?
If so, is there any way to show the banner on an app in foreground?

@kota kota added new New issue. type: question labels Mar 12, 2021
@paulinon paulinon removed the new New issue. label Mar 16, 2021
@paulinon
Copy link
Contributor

Hi @kota,

The behavior you're experiencing is intended.

When your app is running in the foreground, your app receives a message object with both payloads available, but there's no notification as this only happens when your app is running in the background.

However, it is possible for you to make notifications appear using the Notifications Service Extension in your Xcode project, but we don't have an entirely straightforward process for this yet.

I've filed an internal feature request for a more straightforward process of adding notifications while the app is in the foreground. I can't give you any timelines for updates regarding this, so I'll leave this open.

Thanks!

@cynthiajoan cynthiajoan changed the title [Question] Does notification banner show up on iOS app running in foreground? [Feature] Does notification banner show up on iOS app running in foreground? Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants