-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[iOS] Notification Service Extension Not Working in TestFlight Release Build #24737
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
@rolfbjarne thoughts? |
Those steps to create a " .NET MAUI App with a Notification Service Extension" Where is this from? Is this a template or is it you own composition? Are you able to attach a sample project where this happens to make sure it is configured correctly? With "Build the app for release" can you share your exact command line args or build steps that you do to make sure things are not going wrong. Maybe attach a binlog of this for the iOS team to investigate. |
@oouali can you also share the .ipa you uploaded to TestFlight with us? |
I've used the following methods: https://vladislavantonyuk.github.io/articles/Extend-.NET-MAUI-application-with-iOS-Extensions/ and generating it using: https://www.nuget.org/packages/VladislavAntonyuk.DotNetTemplates and again both methods worked locally but as soon as i deployed it to testflight it didn't.
And when building it locally i just use the "play" button found in rider. |
I've observed an issue when building the project with the following configuration in the main app's
In this case, the notification service extension project is neither built nor visible in the list of dependencies. However, when I modify the project reference as follows:
The notification service extension project does get built and is listed among the dependencies. I'm not sure if this discrepancy is related to my current issue, as the first example does work when building the project locally. |
Hi @mattleibow, I wanted to check if you've had a chance to review the message above. I would greatly appreciate any feedback or insights you might have when you get a moment. |
+1 here I have the exact same issue as @oouali , we followed the same steps for creating a Notification Service Extension using https://www.nuget.org/packages/VladislavAntonyuk.DotNetTemplates and the referencing the extension project has the same dependency problem. Any luck anyone?
|
You won't need the "IsWatchApp" property, but you'll need the "IsAppExtension" property, otherwise the build won't recognize the extension project as an extension project (it'll be like a library reference, which is something very different).
Can you get an MSBuild binlog for a build that works and one that doesn't? |
Is there any updates on this @rolfbjarne ? We have a .NET 8.0 iOS app, and everytime you add true with the ProjectReference. The build process no longer recognises the project reference at all, you have to remove the IsAppExtension tag in order for the ProjectRefrence to be valid. We have tried this in VS 2022 17.12.2 with .NET 9 as well. We have also tried this in Jetbrains Rider. We have been trying to add app intent's into our app, but without this IsAppExtension being fixed we can't do it at all. |
I followed up here: xamarin/xamarin-macios#21717 |
This post, question and answer, was very useful. Thanks. Still, is there any official documentation/samples on how to do iOS Extensions at all? |
Description
I am experiencing an issue with the notification service extension in my app. The extension works perfectly when building and running the app locally in development mode. However, when I build the app for release and upload it to TestFlight, the notification service extension does not function properly. The following error appears in the device logs when attempting to use the extension:
"No service extension record found for app"
This issue only occurs in the TestFlight build, not in the local development build.
In the main app's .csproj file, I have added the following:
Steps to Reproduce
Link to public reproduction project repository
No response
Version with bug
8.0.20 SR4
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: