Signal R works on background using iPhone Simulator but doesnt on real device + Xamarin

62 Views Asked by At

I have an app that shows information and fetches Signal R messages every 5-10 seconds, and updates the information in real time as it changes

I have created a Background Service to detect if the app is in Background Mode, and if it is, i send a Local Notification to alert the user when a key change/update occurs.

Everything works flawlessly on the Simulator, if i put the app in background mode, i can see all the messages from SignalR coming on the Debug window

I added these Background fetch modes on Info.plist

<key>UIBackgroundModes</key>
<array>
    <string>processing</string>
    <string>fetch</string>
    <string>location</string>
</array>

Everything works EXCEPT on a real iPhone. Debugging on foreground shows all the incoming messsages and updates, but as soon as i put the app on background, none of them show up.

I know i should use APN but it seems overkill for what im tryting to do. Besides, it works on simulator.

0

There are 0 best solutions below