How do I make an iOS application without Mac and Xcode?

1 points by osxfcn ↗ HN
So, I have an iPhone and no mac. I want to make a simple application that needs to be able to check if the phone is locked/unlocked or the screen is on/off, even if the app is killed / in background. Also, I need to schedule events / notifications daily.

I could possibly use hackintosh, but it's illegal and I don't want to mess with Xcode. So, I can't use React Native or Expo. I can't use Ionic because I need Xcode to build the app anyway. Seems like PWAs (installable home web apps) can't provide features I want (background, check lock/display state) hat are my options if any? Am I stuck and I just need to buy Mac or Android phone?

5 comments

[ 5.8 ms ] story [ 31.1 ms ] thread
Does iOS give you the APIs you’d need to know if the device was locked or the state of the screen when you’re in the background?
Get a virtual machine, that would be the next option if you don't want to go the Hackintosh route.

For any serious project, just get a Mac though.

Use a cloud-hosted virtual Mac? A search for "cloud virtual macos" turns up a bunch of links.
NativeScript and NativeScript Sidekick allow you to build for iOS or Android from Windows or OS X.
I believe with kivy you can do some stuff with python.

https://kivy.org/#home

"Kivy runs on Linux, Windows, OS X, Android, iOS, and Raspberry Pi. You can run the same code on all supported platforms.

It can natively use most inputs, protocols and devices including WM_Touch, WM_Pen, Mac OS X Trackpad and Magic Mouse, Mtdev, Linux Kernel HID, TUIO. A multi-touch mouse simulator is included."