iOS Silent APNS push notification does not go thru

Nick Renzhiglov 1 Reputation point
2022-08-29T11:32:00.997+00:00

Hi there
I am experiencing the Apns silent background notification sent with pushtype="background", priority="5", contentavailable=true never reaches the phone. I expect the DidReceiveRemoteNotification triggers but the break point on that line never stops. Additionally, my Azure Service bus explorer does not encounter it as Dead-letter so it seems to get thru.

I can see the notification comes thru' if pushtype="alert", priority="5" in foreground mode. It shows up the message on the message tray yet DidReceiveRemoteNotification do not trigger either. But at least it gets thru'

How to isolate if it is due to not well-formed message json for silent mode or wrong event wiring the phone side?

My info.plist keeps

<key>UIBackgroundModes</key>  
	<array>  
		<string>location</string>  
		<string>fetch</string>  
		<string>remote-notification</string>  
		<string>processing</string>  
	</array>  

iPhone 11, software version 15.3.1

Thanks

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,357 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.