How do I detect that an iOS app is running on a jailbroken phone?

后端 未结 17 1479
情书的邮戳
情书的邮戳 2020-11-22 10:48

If I want my app to behave differently on a jailbroken iPhone, how would I go about determining this?

17条回答
  •  不知归路
    2020-11-22 11:22

    What we did is, we already have an RSS feed to communicate with our users (Stocks Live), we put a news item that states something like this:

    Some jailbroken devices have problems bla bla bla, we made a hack to solve those issues but we need to know if this a jailbroken device or not, press here so the app fixes the issue. If you ever return to normal, ie removed the jailbreak, press here.

    Then you process the user interaction and do what is appropriate, like behaving different etc...

提交回复
热议问题