-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