Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a Mac Version of OwnTracks #603

Closed
ckrey opened this issue Oct 15, 2019 · 2 comments
Closed

Creating a Mac Version of OwnTracks #603

ckrey opened this issue Oct 15, 2019 · 2 comments
Assignees

Comments

@ckrey
Copy link
Member

@ckrey ckrey commented Oct 15, 2019

The first step is very simple:
https://developer.apple.com/documentation/xcode/creating_a_mac_version_of_your_ipad_app?language=objc

  • Found issues:

    • CLLocationManager
      [ ] monitoringDidFailForRegion CLBeaconRegion - no Beacon monitoring
  • Solved/Worked Around issues:

    • CLLocationManager
      [x] maccatalyst does not support CLLocationManager startRangingBeaconsInRegion and other Beacon ranging methods. Excluded
      [x] maccatalyst does support new initializer CLBeaconRegion. Updated
    • UIKit
      [x] maccatalyst does not allow to use UIAlertController without actions (and termiation by dismissViewControllerAnimated). Workaround applied
      [x] maccatalyst MKMapView does not allow to zoom out. Added Zoom Controls
      [x] maccatalyst UITableView does not support left swipe actions. Added Edit/Done Button, another work around is to use 2 fingers to swipe left
      [x] maccatalyst does not support UIApplication statusBarStyle. Excluded
    • Miscellaneous
      [x] maccatalyst bundles have a different structure than in iOS. Need to use NSBundle URLForResource
      [x] SocketRocket needs some #ifdef (about to replace SockeRocket by native Websockets)
      [x] error: Today extensions are not available when building for Mac Catalyst. Ignored
      [x] maccatalyst does fail in CLLocationManager startUpdatingLocation - needs Wifi!
      [x] maccatalyst life cycle is different. Need to re-connect after laptop wakes up from sleep
      [x] export Settings/Waypoints does not work --> not yet implemented in Mac Catalyst
      [x] AVCaptureDevice *captureDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; returns nil, internal QR code reading removed
@ckrey ckrey added the enhancement label Oct 15, 2019
@ckrey ckrey self-assigned this Oct 15, 2019
@jpmens

This comment has been minimized.

Copy link
Member

@jpmens jpmens commented Nov 8, 2019

Fantastic. Tested and working:

  • association with address book
  • location copy to clipboard
  • publish settings
  • publish waypoints

We should remember to document:

  • requires WiFi enabled (cabled-only MBP didn't provide location services here)
@ckrey ckrey changed the title Creating a Mac Version of OwnTracks (WIP) Creating a Mac Version of OwnTracks Nov 19, 2019
@ckrey ckrey added the fixed label Nov 19, 2019
@ckrey

This comment has been minimized.

Copy link
Member Author

@ckrey ckrey commented Nov 30, 2019

macOS version available in App Store: https://jpmens.net/2019/11/29/owntracks-on-macos/

@ckrey ckrey closed this Nov 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.