Was That an Earthquake? v2.0 Released

apps

Was that an Earthquake? v3.0 is now available for macOS, iOS, and visionOS.

Updates

  • Updated user interface
  • Improved support for side-by-side windows
  • You can now create Notable Areas to receive notifications regarding earthquakes near regions that you define.

Notable Areas

Look up regions by name or address using the on-device Maps API. You can set up triggers for

  • distance to the selected location
  • magnitude of the earthquake
  • if the earthquake has a tsunami warning

Notable areas are evaluated when the app fetches new data from USGS earthquake feed. The app schedules a background task to refresh roughly every hour but this timing is controled by your device itself so the update time may vary.

Download on the App Store

Test Background Task in Xcode

snippets

I am absolutely going to forget this (again) but if your app has a background task scheduled with BGTaskScheduler you can manually trigger it by pausing the app in the Xcode debugger and running the debug command

e -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@"com.your.domain.task-id"]

When you continue the app it will trigger your background task.

You have to do this on a real device since BGTaskScheduler is not present on simulators.

Was That an Earthquake? v2.0 Released

apps

Was that an Earthquake? v2.0 is now available for macOS, iOS, and visionOS.

Updates

  • UI fixes and tweaks.
  • Improved serialization.
  • iOS and visionOS support background updates.
  • All versions will periodically import earthquakes while active.
  • Stats view for data stored on-device.
  • Data management view allows for deletion of all data or earthquakes within a specified time range.
  • Earthquakes are now automatically imported when you select a new day.

Please note that this version removes CloudKit syncing in favor of fetching data directly from USGS. Data is cached locally on the device and can be removed from the data management view.

Download on the App Store

Support Multiple Scenes

snippets

In your applications Info.plist add a new setting for Application Scene Delegate. Xcode will create a dictionary with 2 entries.

  • Enable Multiple Scenes
  • Scene Configuration

Enable Multiple Scenes is a boolean with a default value of NO. Change this to YES.

Create a new simulator from CLI

snippets

Create a new visionOS simulator. Command takes a name, device type, and runtime.

% xcrun simctl create "TestAVP" com.apple.CoreSimulator.SimDeviceType.Apple-Vision-Pro-4K com.apple.CoreSimulator.SimRuntime.xrOS-26-2 
4F8B10C1-90F3-4E91-8A73-AED33CACE123