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.
我正在尝试在客户端实现静默远程条件。
基本上,我会收到来自服务器的通知,一旦收到,我将根据用户设备收到通知之前的某些条件决定是否将通知静音。
因此,与其在服务器端设置内容可用,我想知道是否有任何方法可以在客户端(iOS Swift 代码)上实现它?
据我所知,这是做不到的。
从您的服务器,在您将通知发送到 APNS 之后,下一次您可以运行的任何代码是用户响应通知或启动您的应用程序的时间。苹果处理介于两者之间的一切。