gpt4 book ai didi

ios - 在iOS级别上本地更改远程推送通知的声音

转载 作者:行者123 更新时间:2023-12-03 01:48:45 25 4
gpt4 key购买 nike

我想要类似WhatsApp的通知功能。

我观察到的。
1.我进行了分组,并开始正常的聊天。
2.我关闭了设备A的WiFi(所有互联网),然后进入设置并使其无声音。见下图

enter image description here
enter image description here

  • 已终止应用程序,已从后台删除。 (但尚未连接互联网)。
  • 从设备B向设备A发送消息,而设备A还没有互联网。
  • 通知时仍打开WiFi,仍播放最新选择的声音。表示没有声音播放,我没有选择。

  • WhatsApp如何在本地处理声音。
  • 在到达之后和到达之前是否更改有效载荷。
  • 它是否在确认服务器(如何终止应用程序)。
  • 如果是本地处理,则如何处理。

  • 有什么想法吗?

    最佳答案

    import MediaPlayer 

    将值1设置为最大值,将0设置为最小值。
    (MPVolumeView().subviews.filter{NSStringFromClass($0.classForCoder) == "MPVolumeSlider"}.first as? UISlider)?.setValue(1, animated: false)

    快乐编码

    供引用链接 Click

    Just For Remote Notification

    Follow Video Tutorial for help

    关于ios - 在iOS级别上本地更改远程推送通知的声音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41500522/

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