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

IOKit access to various sensors

I need to access the ambient light sensor and get the carrier strength on iOS 11. I know that IOKit provides this information, but how?
Gianclè Monna
  • 387
  • 1
  • 5
  • 12
0
votes
1 answer

Video shooting in iPhone

Is there a way to capture video from iPhone?
Vishal
0
votes
1 answer

IOS - Hide icon from springboard

I'm developing an app for personal use (development certificate) without uploading it to the AppStore. I want the icon to be automatically hidden from the SpringBoard and to be able to looked up from the search. I tried…
Jentel
  • 148
  • 2
  • 17
0
votes
0 answers

Enable speaker during telephony call in iOS programmatically

How can I enable speaker when call in progress, I am using this set of code, but this does not work let audioSession = AVAudioSession.sharedInstance() do { try audioSession.setCategory(AVAudioSessionCategoryPlayAndRecord) try…
Jas_meet
  • 366
  • 1
  • 20
0
votes
0 answers

How to change the iPhone device name programmatically using Private frameworks

I want to change the name of iPhone device. App is for enterprise distribution, so I can use private frameworks.
Jas_meet
  • 366
  • 1
  • 20
0
votes
1 answer

Detect if an app has been installed on iOS in JavaScript

I have been searching around to see if it was possible to check for already installed apps on an iOS device using JavaScript or another web language. I'm aware of ways to do this natively in Objective-C but due to the nature of this project this…
Colin
  • 865
  • 1
  • 6
  • 23
0
votes
1 answer

Can we dismiss system generated alerts programmatically using private api's

I want to dismiss system generated alerts. Application developed is enterprise version, so I don't have to worry about Apple review. I want this to work without jailbreak. Any help will be appreciated.
Jas_meet
  • 366
  • 1
  • 20
0
votes
1 answer

LSApplicationWorkspace Broken in iOS 11

LSApplicationWorkspace is a private API in iOS that allows you to see what apps are installed on a device. Apple does not allow you to use private API's when you submit to the App Store, but I need this solution for an enterprise…
D. Wall
  • 77
  • 1
  • 5
0
votes
1 answer

How can I find private iOS API usage in my app?

My app was rejected from the app store for using the private API "LSApplicationWorkspace", but I can't find that in my source code. How can I find what library is using it? I'm using Xamarin.iOS on macOS.
Gandalf458
  • 2,139
  • 1
  • 21
  • 36
0
votes
1 answer

How to use private frameworks in XCode 8.3.2 and IOS 10.3?

I am currently attempting to add the BluetoothManager private framework to my xcode project, but it is always ending up as a failure. I've downloaded all of the files already from NST's github but it's pointless if I don't know what to do with…
Matt
  • 1,087
  • 1
  • 12
  • 28
0
votes
1 answer

How to import private API in iOS 10, Xcode 8?

Please check the image. Thats what I get when I try import private frameworks.
0
votes
1 answer

Check if location services are used at the moment

My goal is to check if a jailbroken iPhone is currently using any background navigation service. I've gone mainly thru the CLLocationManager.hheader, but searched for appropriate methods in all other CoreLocation headers. Found nothing of use. Also…
Clawish
  • 2,934
  • 3
  • 24
  • 28
0
votes
0 answers

ios enable hotspot by private API

I have to write an app that enables hotspot programmatically. After doing a lot of search, I realized that is impossible to be done with public API. So I decide to use private API, though my app can not publish to store. There are some steps that I…
kemdo
  • 1,429
  • 3
  • 15
  • 29
0
votes
1 answer

iOS Private API: wake app from background

I need to have a demo app that will wake up itself from background on timer event. Is it possible without jailbreak by using private API? Tried this code: void* sbServices = dlopen(SBSERVPATH, RTLD_LAZY); int…
Rost
  • 265
  • 1
  • 11
0
votes
1 answer

Programmatically lock iPhone on iOS

Does anyone know how to programmatically lock the iPhone on iOS? I don't care if it involves using private API or framework as it's for personal use. I have tried using https://github.com/neuroo/LockMeNow but it doesn't work on my device (running…