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

Indicator is not displayed in "Handheld.StartActivityIndicator()" on iOS 13 or later

Discussion in 'iOS and tvOS' started by nax_unity, Jun 28, 2020.

  1. nax_unity

    nax_unity

    Joined:
    Jan 24, 2018
    Posts:
    63
    I am trying to display an indicator on an iOS device,
    The same code is used, but it is displayed on iOS 12 terminals and not displayed on iOS 13 and later terminals.

    #if UNITY_EDITOR || UNITY_IOS
    [SerializeField] private UnityEngine.iOS.ActivityIndicatorStyle _iosStyle;
    #endif

    private void Awake ()
    {
    #if UNITY_IOS
    Handheld.SetActivityIndicatorStyle( _iosStyle );
    #endif
    }

    public void Show()
    {
    StartCoroutine(StartActivityIndicator());
    }

    private IEnumerator StartActivityIndicator(){
    Handheld.StartActivityIndicator();
    yield return new WaitForSeconds(0);
    }

    public void Hide(){
    Handheld.StopActivityIndicator();
    }

    Do you know the indicator display processing in iOS13 or later?

    Development environment
    Unity2018.4.22f1
     
  2. odysoftware

    odysoftware

    Joined:
    Jul 21, 2015
    Posts:
    84
    It's still not working in 2023 on any latest iOS device I tested... how can this be, is this abadoned?
     
  3. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,602
    yeah, fixing it. Can you submit a bug report for tracking purposes?
     
  4. odysoftware

    odysoftware

    Joined:
    Jul 21, 2015
    Posts:
    84
    Hey thanks for your reply!

    Hmm I can try, but I fixed it now by using my own idling indicator while processing purchases, so I don't have any examples anymore. Is there a way to do a simple bug report without any additional "examples" and then I just reference this thread?