-
|
I am using shiny.notifications, shiny azure notification hubs, shiny 3.3.4, .net9, testing in simulator and on device. I am also using the deprecated shiny framework 4.1.0, but really that is just used for startup window init and navigation service. I am not sure why this is the case. It causes push notifications to get processed 4 times on a cold start when tapping the OS notification. I do register these in my AppDelegate because when I tested removing them my pushes stopped triggering my delegate and I wasn't getting a ANH token. I am coming from the v1 shiny stuff or something at least few major versions ago, so I am not sure what the updated proper way is to register lifecycle events in Shiny. Also if I inspect my services as the app is built I see only one entry for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Also, if it helps, before the logs in my original post this happens: You can see that the |
Beta Was this translation helpful? Give feedback.
UseShinyFramework initialized/called UseShiny, so you might be getting two registrations there. Just have UseShiny and follow what Prism requires to initialize: https://docs.prismlibrary.com/docs/current/platforms/maui/
You may have multiple lifecycle managers, not multiple push managers