Xamarin/MAUI iOS Local Push Connectivity

Kim, Do Hyung 0 Reputation points
2024-09-11T18:35:25.5966667+00:00

I have the local push entitlement from apple and also a separate bundle id for a new local push extension. I am project referencing this extension project from my main iOS .csproj and setting these flags:

<IsAppExtension>true</IsAppExtension>

<IsWatchApp>false</IsWatchApp>

On my local push extension project, I configure info.plist & entitlements.plist with the following values.

Info.Plist

<key>NSExtension</key>
	<dict>
		<key>NSExtensionPointIdentifier</key>
		<string>com.apple.networkextension.app-push</string>
		<key>NSExtensionPrincipalClass</key>
		<string>LocalPushProvider</string>
	</dict>

Entitlements.plist

<dict>
<key>com.apple.security.application-groups</key>
	<array>
		<string>group.com.mycompany.product</string>
	</array>
	<key>com.apple.developer.networking.networkextension</key>
	<array>
		<string>app-push-provider</string>
	</array>
</dict>

On my main ios project profile, i have these capabilities on:
Enabled Capabilities

Access Wi-Fi Information, App Groups, Data Protection, In-App Purchase, Network Extension (additional values), Network Extensions, Push Notifications

I've also given NetworkExtension(additional values) and Network Extensions capabilities on my local push provisioning profile which has its own bundle id.

I am keep getting an integrity could not be verified when installing this app on a real device. This works fine without the local push extension project added. Any thoughts?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,342 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,449 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.