Search Unity

Mobile: Can you detect other apps that are opened?

Discussion in 'General Discussion' started by MechaKondor, Oct 16, 2019.

  1. MechaKondor

    MechaKondor

    Joined:
    Sep 4, 2017
    Posts:
    5
    I'm trying to create something with Unity where there is a feature in the game that should be able to detect when another app is opened, then the game will recognize that there is another app running and perform an action in response. Is there currently an asset or something that helps me to achieve this? (Android and iOS)

    I have looked into it, apparently, such a thing can be done in Windows? What about Android and iOS? I was looking at this thread: https://answers.unity.com/questions/24685/determine-if-an-external-application-is-running-wi.html

    But it has no mention of it working on either of the two platforms I am targeting.

    Any help or direction would be appreciated.
     
  2. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,983
    In mobile, applications operate in isolation of each other, as far as I am aware you certainly could not do this using unity alone but it may be possible if you were to write a native application (objective c or native java android app etc).

    Generally mobile apps operate this way to stop people making and running malicious software.

    This forum is not a support forum btw, in future post things like this in the relevant section such as one of the mobile support sections.

    https://forum.unity.com/forums/android.30
    https://forum.unity.com/forums/ios-and-tvos.27/
     
    Joe-Censored and Antypodish like this.
  3. MechaKondor

    MechaKondor

    Joined:
    Sep 4, 2017
    Posts:
    5
    I'll post there next time, thanks!
     
    MadeFromPolygons likes this.