-
-
Notifications
You must be signed in to change notification settings - Fork 230
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]: Shiny.Push.FirebaseMessaging doesn't work on iOS (Requires updated binding) #1571
Comments
Firebase on iOS doesn't have the updated binding at this time. |
Also - please be respectful of the terms. I don't take issue reports for samples on here because they fall out of date for various reasons |
@aritchie Thanks for the quick reply.
So it's a Firebase issue and not related to the Shiny.Push library? Or what would be required to fix that?
Totally understandable and I do respect the terms. However, I think the pushtester sample repo is a valid example for the problem I described. Whether I create a new sample or not wouldn't make a difference in this particular case, I suppose. I tried with both 3.3.3 and 3.3.4. |
Shiny needs to use a new firebase iOS binding. I've started one in v4, but I'm not working on completion yet due to other projects and I don't require firebase for iOS myself
The terms are clear. You can't pick and choose how you feel they apply. So please... no more of this in the future. It gives the notion to other users that they can start doing this and the simple fact, I have too many things to keep up to date. If you can't post your own sample, than you're basically just saying "you need to fix this". |
@aritchie I've created a sample repository for the reproduction of the issue (https://github.com/ewerspej/shinypushbug) BTW: Registering and receiving notifications works. Only unregistering is where it fails. |
Thank you for the repro. I'm not sure how it could be working since Google deprecated the native api which the binding is against months ago and said it wouldn't work. The only thing that can be null in this code is the messaging instance from the binding anyhow, so it has issues in any case. |
Component/Nuget
Push - Native (Shiny.Push)
What operating system(s) are effected?
Version(s) of Operation Systems
iOS 18.1.1 and higher
Hosting Model
Steps To Reproduce
pushManager.UnRegister();
will throwExpected Behavior
No exception, device successfully unregistered
Actual Behavior
A NullReferenceException is thrown inside the PushManager when
UnRegister()
is calledThis happens with versions 3.3.3 as well as 3.3.4
Exception or Log output
System.NullReferenceException: Object reference not set to an instance of an object.
at Shiny.Push.FirebasePushProvider.UnRegister()
at Shiny.Push.PushManager.UnRegister()
at PushTesting.MainViewModel.<>c__DisplayClass0_0.<<-ctor>b__6>d.MoveNext() in Q:\repos\pushtester\PushEndToEnd\MainViewModel.cs:line 59
Reproducible Code Sample (should be Small, Shiny specific, Compile & Run)
https://github.com/ewerspej/shinypushbug
Code of Conduct
The text was updated successfully, but these errors were encountered: