Hi
I am writting an App to allow people to divide their day into bite size segments. Each segment is tracked by a timer, and after each segment completed the user is informed of the next segement by a ping(sound).
The core of the application is the
Timer.publish(every: 1, on: .main, in: .common)
I have set the necessary Background modes - Background Fetch, Remote Notifications, Background Processing, Audio
The app works fine in the simulator. In the background the timer fires away and the sound is played after the completion of each segment. However the same app does not work on the device.
I have noticed a number of threads where contributors have stated that the Timer should not work in the background in the first place. Just dont understand why it works in the Simulator and not the device.
Please help.