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.
如果您的 iPhone 应用程序正在运行,是否有办法让应用程序知道何时有新通知出现?
通常通知窗口会在顶部弹出然后消失,但这由系统处理。是否对当前正在运行的应用程序进行了调用?
当我的应用程序正在运行时,我想跟踪新的通知。
谢谢,尼克
对 AppDelegate 进行了调用
-didReceiveRemoteNotification
-(void)application: (UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo{ NSLog(@"%@",userInfo); }