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

[Bug] iOS notification #108

Open
Roccosco opened this issue Jan 18, 2025 · 3 comments
Open

[Bug] iOS notification #108

Roccosco opened this issue Jan 18, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Roccosco
Copy link

Roccosco commented Jan 18, 2025

Description

I can get the token, but I'm not able to let the app shows a notification neither in Debug and Release mode.
Android app works fine.
The same GoogleService-Info.plist works well in my Xamarin.forms app.

Expected Behavior

  • Notifications show up.

Actual Behavior

Nothing shows up, but it doesn't crash.

Basic Information

  • Version with issue: 3.0.28, 3.0.17 on .NET 9

Screenshots, Attachments, Links

@Roccosco Roccosco added the bug Something isn't working label Jan 18, 2025
@thomasgalliker
Copy link
Owner

Can you check an compare the csproj of the sample app with your solution? The GoogleService-Info.plist file needs special treatment in .NET MAUI.

@Roccosco
Copy link
Author

I spent this morning trying to figure out a solution.
In the end I removed
<key>CustomProperty</key> <false/>
from info.plist and it worked, but only when the app is running in background, whilist in foreground the NotificationReceived event is not fired.

@thomasgalliker
Copy link
Owner

Does the sample app work, if you copy your GoogleService-Info.plist into it?

@thomasgalliker thomasgalliker self-assigned this Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants