gpt4 book ai didi

IOS - 将消息添加到状态栏

转载 作者:行者123 更新时间:2023-12-02 05:18:48 25 4
gpt4 key购买 nike

当我使用地理位置时如何向状态栏添加消息。如下图所示

enter image description here

最佳答案

正如 @Quentin Hayot 所描述的 here

This banner is displayed by iOS itself in the following situations:

  • A background app is tracking your position (after a startUpdatingLocation)
  • A background app is using your microphone
  • A background app is performing a VOIP call

The banner color changes with the reason. There is no way to force iOS to display those banners but by using one of the relevant background modes.

如果您的应用没有tracking position, using microphone或执行VOIP call ,您将无法显示该栏。

关于IOS - 将消息添加到状态栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41998312/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com