Wednesday, February 14, 2024
HomeiOS Developmentios - Sign R works on background utilizing iPhone Simulator however doesnt...

ios – Sign R works on background utilizing iPhone Simulator however doesnt on actual machine + Xamarin


I’ve an app that exhibits data and fetches Sign R messages each 5-10 seconds, and updates the knowledge in actual time because it modifications

I’ve created a Background Service to detect if the app is in Background Mode, and whether it is, i ship a Native Notification to alert the person when a key change/replace happens.

The whole lot works flawlessly on the Simulator, if i put the app in background mode, i can see all of the messages from SignalR approaching the Debug window

I added these Background fetch modes on Information.plist

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

The whole lot works EXCEPT on an actual iPhone. Debugging on foreground exhibits all of the incoming messsages and updates, however as quickly as i put the app on background, none of them present up.

I do know i ought to use APN but it surely appears overkill for what im tryting to do. In addition to, it really works on simulator.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments