Skip to content

[Bug]: Shiny.Push.FirebaseMessaging doesn't work on iOS (Requires updated binding) #1571

@ewerspej

Description

@ewerspej

Component/Nuget

Push - Native (Shiny.Push)

What operating system(s) are effected?

  • iOS (13+ supported)
  • Mac Catalyst
  • Android (10+ supported)

Version(s) of Operation Systems

iOS 18.1.1 and higher

Hosting Model

  • MAUI
  • Native/Classic Xamarin
  • Manual

Steps To Reproduce

  1. Use sample project (https://github.com/ewerspej/shinypushbug)
  2. Configure values for Firebase in appsettings.json
  3. Use provisioning profile with push notifications enabled
  4. Deploy app to iOS device (e.g. iPhone) running iOS 18.1.1 or higher
  5. Register for push token
  6. Hit UnRegister button
  7. The call to pushManager.UnRegister(); will throw

Expected Behavior

No exception, device successfully unregistered

Actual Behavior

A NullReferenceException is thrown inside the PushManager when UnRegister() is called

This 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

  • I have supplied a reproducible sample that is small, shows the specific issue, compiles, runs, and is NOT FROM THE SHINY SAMPLES!
  • I am using the LATEST STABLE version from nuget (v3.3.4)
  • I am Sponsor OR My GitHub account is 30+ days old
  • I acknowledge that this is not technical support and that the maintainer(s) are not here as teachers or to diagnose logs
  • I understand that this is not a paid product, it is FREE code that I am using, and that documentation may not be perfect.
  • I acknowledge that any form of swearing or general abuse towards the maintainer(s) will result in my immediate ban.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions