Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序设计中,当用户向下滑动屏幕的顶部边缘时,我从顶部有一个下拉菜单。这会干扰推送通知托盘。当我的应用程序在前台时,有什么方法可以禁用默认托盘下拉菜单?
目前,还没有公开的 API 用于操纵通知中心的行为或如何防止它。
我认为以开发者自由为代价保持一致的用户体验是一项设计决策。我认为应用程序不太可能阻止通知的出现,而且应用程序能够阻止通知中心出现的可能性略小一些。
毕竟,正是它让 iOS 如此成功。操作系统和应用程序之间的一致性。