Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Detecting "Focus Mode" and "Do Not Disturb"

Discussion in 'Editor & General Support' started by UnityGuy1717, Aug 9, 2023.

  1. UnityGuy1717

    UnityGuy1717

    Joined:
    Mar 20, 2020
    Posts:
    13
    Hey everyone,
    Is it possible to detect iOS "Focus Mode" and/or "Do Not Disturb" in the app? I assume there's something similar for Android as well but am not familiar with the name.

    Thanks!
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,028
    Natively sure. Whether Unity has an API for that I don't know, but I doubt it because this isn't exactly a gaming feature.
     
  3. UnityGuy1717

    UnityGuy1717

    Joined:
    Mar 20, 2020
    Posts:
    13
    Yeah, I was looking for a Unity API or 3rd party plug-in that is able to detect it. I know that you can check whether notifications are enabled for the app, so thought this might also be possible.