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
0
votes
1 answer

I want to include BluetoothManager framework in swift or objective-c, having problems

I am having problems including frameworks in my project. I have downloaded the private APIs from https://github.com/nst/iOS-Runtime-Headers/tree/master/PrivateFrameworks This gives me header files to use with the framework already in xcode as I…
Simon Guldstrand
  • 488
  • 1
  • 5
  • 24
0
votes
1 answer

Return to app from background on iOS

I have an app that works in background successfully. It also has a working URL scheme set up and running. Now I need to implement the following scenario - after 5 seconds in background I want the app to open itself up - and make it a foreground…
Sergey Grischyov
  • 11,995
  • 20
  • 81
  • 120
0
votes
0 answers

How can I use a private method in MapKit on iOS?

This is purely for a personal app that I will not be submitting to the app store. I would like to use a method and/or property that is in a private header file within the MapKit.framework. What is the process for using such a private…
pruppert
  • 111
  • 1
  • 12
0
votes
2 answers

iOS launch my app after screen unlocking

I want to launch my app after screen unlocking. I don't want to send it to AppStore, just for home use. Is it possible with private-api? To launch app I can use custom url scheme, just need to catch unlock event. I see similar question here but it…
ChikabuZ
  • 10,031
  • 5
  • 63
  • 86
0
votes
1 answer

Modifying private view appearance

I would like to change the background color of a highlighted link in UITextView. After inspection I found about this: when a link is tapped a UIHighlightView is created and positioned inside the UITextView under the link. I would like to detect this…
dvkch
  • 1,079
  • 1
  • 12
  • 20
0
votes
1 answer

How to communicate between applications in iOS?

Before we can use CFMessagePort, but now it's invalid for iOS7 and above, is there any replaced methods? I tried CFMessagePort when hooking the constructor of UIApplication in the jailbreak environment, but in most of the apps, it can't…
Suge
  • 2,808
  • 3
  • 48
  • 79
0
votes
0 answers

How to input text in to the frontmost app by program automatically (with private API) in iOS?

My Tweak is running inside SpringBoard, I want it be able to input text to first responder of the frontmost application.I tried the code below, but it only works for the subviews of SpringBoard, such as the search bar on of home screen, but not any…
Suge
  • 2,808
  • 3
  • 48
  • 79
0
votes
1 answer

Theos/Logos: Accessing Static/Global Variable Across Multiple Hooked Processes

So granted, I am very new to tweak development, but I'm running into an issue. I'm working on a tweak for personal use that hooks into multiple processes, but I'm having difficulty sharing a variable between those process-specific hooks. For…
Osbourne Ruddock
  • 465
  • 4
  • 20
0
votes
1 answer

iBeacon unique identifier with private api

I am in a situation to find the mac address or an unique identifier of an iBeacon with private API. With the CoreBluetooth i can have an identifier but it is not unique from iphone to another. and i can't link an identifier to an beacon with his…
Tekaya Marouene
  • 620
  • 3
  • 14
0
votes
1 answer

Using iPhoneContacts library in App Store

I tried publishing an app using https://github.com/AlanQuatermain/iPhoneContacts library. When validating the app for App Store review i have the following warning: Any idea what can be done about it? Is it safe to publish anyway? EDIT: fixed the…
dvkch
  • 1,079
  • 1
  • 12
  • 20
0
votes
1 answer

Using Objective-c hidden api (iphone)

I'm trying to use this guthub According to this link for using objective c private api but the documentation is pretty lousily. I copied past the exemple code to my xcode but I'm getting compilation error. NSBundle *b = [NSBundle…
Idan Magled
  • 2,186
  • 1
  • 23
  • 33
0
votes
0 answers

Private API show red pulsating double-height status bar (often used for recording)

I am looking for a private API example on how to show the red pulsating double-height status bar that is used when recording audio. I would like to enable this status bar from my app without starting recording. I want just the status bar and I want…
www.jensolsson.se
  • 3,023
  • 2
  • 35
  • 65
0
votes
2 answers

Why doesn't Apple make private APIs inaccessible?

If Apple doesn't want developers using private APIs in the iPhone SDK, why don't they do something like mark the classes and/or methods with whatever the Objective-C equivalent of C#'s "internal" keyword? If the APIs are spread amongst multiple…
Howiecamp
  • 2,981
  • 6
  • 38
  • 59
0
votes
1 answer

How to switch networks(2G/3G/4G) WITHOUT jailbreak in iOS7?

I'd found some private APIs, but it looks like without the root access, I can only 'read', not 'write', which means that it doesn't work with the function setAirplaneMode:YES Is there any way to do this WITHOUT jailbreaking, and if so, how?…
KaKa
  • 559
  • 7
  • 18
0
votes
1 answer

Access SpringBoardServices.h method in objective-c?

I downloaded SpringBoardServices.h file given in SpringBoardServices and added it to my project. But how to access one of the method present inside SpringBoardServices.h file. I am trying to call BOOL SBSProcessIDForDisplayIdentifier(CFStringRef…
user2533604
  • 655
  • 1
  • 11
  • 28