Posts

Post not yet marked as solved
0 Replies
216 Views
I've noticed that Xcode's simulators are constantly downloading data after they get launched. They can be sitting there with nothing happening visually and without running an app built from Xcode and I see a constant download stream of 600-700 Kb/s. Just after Simulator startup there is a lot more data consumed but it eventually settles down. And it looks like it's additive... the more simulators I have open, the more data the Simulator process sucks down. Any ideas what this is and why?
Posted Last updated
.
Post not yet marked as solved
0 Replies
458 Views
The iOS app I'm working on uses push notifications to deliver messages the user can view in a Message Center. These messages have a set of custom keys outside the aps dictionary that we use to provide different treatments, etc. However, if the user doesn't tap on the notification, the message never appears in the app (server-side messaging not available yet).So we started adding `content-available` to the aps dictionary so the app can consume the payload and prepare the message in the message center: the device still receives the notification but now the message is available if they open the app without tapping on the notification. This has been working great in practice.It looks like this was supported in documentation (Configuring a Background Update Notification section, now archived) but now current docs say "To send a background notification, create a remote notification with an aps dictionary that includes only the content-available key.... You may include custom keys in the payload, but the aps dictionary must not contain any keys that would trigger user interactions." And the documentation page that leads to that says "The background notification flag. To perform a silent background update, specify the value 1 and don't include the alert, badge, or sound keys in your payload."I guess what we're trying to do you could call a Noisy Background Notification, one that updates the app in the background and still has user facing/interactive content.Are `content-available` and `alert` mutually exclusive keys in the `aps` dictionary?Thanks!
Posted Last updated
.