Shiny3 build issue when using Shiny.Push.FirebaseMessaging for Maui .NET7 IOS Firebase app? #1340
Replies: 2 comments 4 replies
-
Anything with a native binding seems to be suffering from this on windows builds right now. Not sure what they are doing about it. This problem does not exist if you build on mac.
This is called when the token changes after use of RequestAccess. Once push is granted, Shiny will attempt to auto-register across app starts and if a token changes during that call, OnTokenRefresh is called. |
Beta Was this translation helpful? Give feedback.
-
Not sure. I stay to mac right now for dev stuff
Not sure what you're asking me. If you want to use Shiny with firebase on both iOS & Android - you need it. If you want to just use native mechanics (do it yourself on the server), you can just use Shiny.Push.
There are samples that show how things work. Specifically: Basically, everything in Shiny begins with IManager.RequestAccess. |
Beta Was this translation helpful? Give feedback.
-
Using VS 2022 version 17.7.5, I'm using Shiny 3.0.1 to add Push Notifications to a .NET7 Maui IOS app using Firebase (using the Apple Push Notification server (APNs)) and Entitlements.plist and Not the native Development and Production SSL Certifixcate (Apple Push Notification service SSL Certificates).
I can build and deploy to my iPhone when I only include
But when I then include
so that I can change my code in MauiProgram.cs from
builder.Services.AddPush<MauiApp.Delagates.MyPushDelegate>();
to:
builder.Services.AddPushFirebaseMessaging<MauiApp.Delagates.MyPushDelegate>();
I get this build error:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.7107\tools\msbuild\iOS\Xamarin.Shared.targets(137,3): error : C:/Users/MyBox/AppData/Local/XamarinBuildDownloadCache/GAppM-8.9.1/GoogleAppMeasurement-8.9.1/Frameworks/GoogleAppMeasurement.xcframework has an incorrect or unknown format and cannot be processed.
I have my NuGets in C:\N to avoid the 240 char issue and have my Maui app in G:\Dev\xMauiApp\ so I don't think I'm hitting any limits with Google long names?
Possibly I'm off base to begin with and don't need to use Shiny.Push.FirebaseMessaging but I was trying to follow the VS Shiny Templates as best I could and I'm not seeing a break-point hit in OnTokenRefreshed (string token) in MyPushDelegate when I deploy to my iPhone and run in debug mode? I'm assuming that where I'd get my token when the app runs?
What obvious stupid mistake am I making??
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions