Questions tagged [iphone-privateapi]

A question with this tag is about non-public (aka private) iOS APIs. Apple will reject apps that use non-public APIs, but they can be distributed using ad-hoc or enterprise distribution (on jailed and jailbroken devices), or through jailbreaks. The main difference from software development standpoint of iOS private API that such APIs aren't declared in header files. As result extra steps are required to figure out API signature for its usage.

Questions with this tag discuss which private API can be used to accomplish different tasks, what are private API's signatures, runtime restrictions for usage of private API and so on.

The words "private API" in a question doesn't automatically make it suitable for this tag. As example, questions regarding Apple policies (why something was rejected or how do they know whether app uses some private API) aren't good fit for this tag. First of all, it's not purely software development question (it's more legal, tools questions). Second, all questions with this tag imply that it will be used in application which won't be submitted to Apple.

508 questions
3
votes
0 answers

Logging touch events in the background using private APIs in iOS

I am trying to log touch events in the background using IOKit framework in iOS 14+. I followed the code in the accepted answer for this question. The problem is that the callback function is not called with any touch events. I am only getting…
Reham M Samir
  • 1,635
  • 2
  • 8
  • 11
3
votes
2 answers

How to use MKLocationManager (a Private API) in iOS

I need to call [[MKLocationManager sharedLocationManager] _applyChinaLocationShift:newLocation] in my iOS app. I believe MKLocationManager is a private class, and there does not seem to have a MapKit/MKLocationManager.h file. I'm not targeting App…
Zhao Xiang
  • 1,625
  • 2
  • 23
  • 40
3
votes
2 answers

iOS App based on PhoneGap rejected by Apple for "using non-public API"

We just built an iOS app based on PhoneGap 0.9.5.1 and got it rejected by Apple with this response: Apps that use non-public APIs will be rejected We found the following non-public APIs in your app: _gsEvent setNavigationBar: The app has multiple…
3
votes
3 answers

iOS Private API for VPN

I'm looking for some private API to start a VPN connection configured in the Settings app. Anyone any suggestions where I can find them? The only thing I found is the ManagedConfiguration.framework. Is that the right place to start? it's kind a hard…
V1ru8
  • 6,139
  • 4
  • 30
  • 46
3
votes
0 answers

iPhone SDK of runJavaScriptConfirmPanelWithMessage is private API?

My iPhone application which use the WebView runJavaScriptAlertPanelWithMessage, but I can not find in the iPhone API documentation of this method, only the Mac OS API documentation to find it, I am worried that if use this method will not be on…
Jasper
  • 2,314
  • 3
  • 26
  • 33
3
votes
0 answers

Change iOS Home Screen Wallpaper Programmatically

I'm trying to change the wallpaper of Home Screen and Lock Screen programmatically. I've seen many blogs and posts so far like: Setting iOS background/lockscreen image…
SandeepM
  • 2,601
  • 1
  • 22
  • 32
3
votes
3 answers

Display app status in top bar

The Evernote iPhone app displays a "second" status bar at the top to keep the user informed about the progress of the synchronization without blocking the rest of the user interface. You can see the green bar in this…
Martin Reichl
  • 932
  • 9
  • 13
3
votes
1 answer

iPhone brightness private API not working properly

I am trying to set the brightness of the backlight, but it's acting very strangely. I am using the private API: [(id)[UIApplication sharedApplication] setBacklightLevel:1.0f]; However, when I call this, the screen dims, not becoming 100% bright like…
Ned
  • 6,280
  • 2
  • 30
  • 34
3
votes
1 answer

Re-launching a VOIP application from background mode using private API's

TO start off with - this app doesn't need to get into the App Store. I'm thinking something along the lines of the following should work: mach_port_t *p; void *uikit = dlopen(UIKITPATH, RTLD_LAZY); int (*SBSSpringBoardServerPort)() =…
Luke Rhodes
  • 293
  • 3
  • 13
3
votes
2 answers

How can you unlock an iOS device using private frameworks?

I haven't dabbled in iOS private frameworks until now, when I randomly wanted to make an app which could lock & unlock the device.. An iOS hacker friend of mine pointed me to GraphicsServices.framework and GSEvent.h - there I found…
Michael
  • 409
  • 4
  • 11
3
votes
1 answer

iOS 11 list all applications

Is it possible to get a list of all installed applications in iOS 11 beta? I'm working on enterprise application, so I'm able to use any private API. I know about old methods, such as using LSApplicationWorkspace class, but it's not working in iOS…
3
votes
3 answers

How do I bring application to foreground after a call?

In my app, I am placing a phone call due to which my app goes in background and suspended. After disconnecting the call instead of my app coming in foreground, native phone app comes into foreground. Is there any way by which my app comes into…
Varun
  • 31
  • 2
3
votes
1 answer

iOS private API for changing user settings

I need to enable mobile data from user setting from my today extension. This option is missing from iOS control center, so I want to be able to enable it from widget. This is solely for personal use, so any method is welcomed.
Heisenbug
  • 951
  • 6
  • 25
3
votes
0 answers

Super Generic Apple Rejection from using private API. How to find the culprit?

An update to an existing app (with small changes) just got rejected with the following reason: Performance - 2.5.1 Your app uses or references the following non-public API: Name It seems like Apple made some changes in how they check private…
Tiago Almeida
  • 14,081
  • 3
  • 67
  • 82
3
votes
2 answers

How to change iPhone's Screen Display Color with Private APIs?

I have seen so many posts regarding the same but all are outdated or not working anymore. I am using iOS-Runtime-Headers and everything is just nicely setup. But it said that I can't find out the method in which I can set iPhone's screen display…
Hemang
  • 26,840
  • 19
  • 119
  • 186