-
Notifications
You must be signed in to change notification settings - Fork 519
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
Maui-Firebase.Cloudmessage.SharedInstance is always null (window pc) #19182
Comments
Hi just in 5 mins I have found these issue all related to SharedInstance being null, none of the possible workaround suggested works xamarin/GoogleApisForiOSComponents#621 Can someone please have a look and tell us what are we doing wrong? Many thanks |
I can reproduce this, I'll see what we can do. |
@rolfbjarne that would be a game changer for us.. I just hope you can find some time to fix this. thanks! |
I think I've been able to fix this, but I'm not sure we'll be able to get all the fixes (there were quite a few) into the first .NET 8 release. If not, we'll include them in a service release. |
oh that is great news that you have fix!!!! To get them in .net 8 GA would be fantastic and enable us to promote push notification to our clients for MAUI - we are kind of holding on what to say as we dont have a working solution. Regardless we totally appreciate any updates you might give us - |
Closing, this is fixed and it looks like we'll get it in .NET 8. |
That’s brilliant thanks for sorting for fixing this |
@rolfbjarne just tested on the latest .net 8 rtm and SharedInstance is still null. Is this the case at your end? We cannot move on with push notification till this is sorted. Many thanks in advance |
Is this related to Google.SignIn.SignIn.SharedInstance ? I'm getting NullReferenceException on that field. Using NET MAUI 8, testing on iOS 17.0.1 Any idea? |
@rolfbjarne could this be looked at and reopened as it’s still an issue? Thanks |
I'll have a look |
@rolfbjarne hi grateful for some news on this one. Notifications is one of the most important features of the app and I hope that by setting the milestone to .net 9 we do not have to wait till then . Any chance of a fix with next SR maui release? |
I can't reproduce this with .NET 8, the SharedInstance property is not null now. Can you get a binlog as described here and attach it to this issue: https://github.com/xamarin/xamarin-macios/wiki/Diagnosis#build-logs? |
Hi @gabsamples6. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@rolfbjarne YES. it works and its no longer null!! thank you!!! |
@rolfbjarne
As requested I have created this new issue and attached a noddy project - I could not put the original entitlements etc.. so if you could replace those as mentioned below that would be great..
The main purpose of this issue is to prove that SharedInstance is always null when running on a windows pc. Hopefully I am missing the obvious..
Many thanks
Steps to Reproduce
Firebase.Core.App.Configure();
Messaging.SharedInstance.AutoInitEnabled = true;
Note - it will compile once the correct entitlement.plist and googleService-info.plist have been replaced.
I get

Expected Behavior
SharedInstance should not be null
Actual Behavior
SharedInstance should is null
Environment
Example Project (If Possible)
MauiPushiOS.zip
The text was updated successfully, but these errors were encountered: