-1
我需要有一個演示應用程序,它將在計時器事件中從後臺喚醒自己。使用私人API可以不越獄?嘗試這種代碼:iOS私有API:從後臺喚醒應用程序
void* sbServices = dlopen(SBSERVPATH, RTLD_LAZY);
int (*SBSLaunchApplicationWithIdentifier)(CFStringRef identifier, Boolean suspended) = dlsym(sbServices, "SBSLaunchApplicationWithIdentifier");
int result;
result = SBSLaunchApplicationWithIdentifier(CFSTR("com.my.app"), false);
dlclose(sbServices);
沒有工作
這是上述代碼中的私人API? – Hisenberg
LSApplicationWorkspace類 – Rost
它正在使用iOS 10嗎? – Hisenberg