Hi,
I am developping an app for IOS using React Native. I want to write a native modules in Swift and use Objective C to bridge the React Native JS functions with native component. In particular, i want to use IOKit framework to access such information as Battery Temperature and Battery Level. I read in many stackoverflow articles and in ChatGPT that the usage of IOS Private APIs are forbidden andd Apple will reject the app from AppStore and block the account.
Is it true? Is there any legal way to use low level APIs and avoid to be rejected or blocked by Apple?
The official Apple Technical Support is not responding me.
I would really appreciate your help and support.
Best Regards, Kamran
If an API is private then yes your app will get rejected from the App Store. As to whether iokit is private, it doesn't look like it for 3 reasons: 1) you can find documentation about it by googling, a private api has no available documentation 2) it doesn't say it is 3) Eskimo doesn't say anything about it being private in his comment here: https://developer.apple.com/forums/thread/719564