Reduce noisy runtime logging in frontend flows.

This keeps chat, notification, and post interactions cleaner in production while preserving error-level visibility.
This commit is contained in:
2026-03-09 22:18:47 +08:00
parent 3968660048
commit 63e32b15a3
21 changed files with 14 additions and 284 deletions

View File

@@ -55,7 +55,6 @@ export default function App() {
// 初始化后台保活服务
const { initBackgroundService } = await import('./src/services/backgroundService');
await initBackgroundService();
console.log('[App] 后台保活服务已初始化');
// 监听 App 状态变化
const subscription = AppState.addEventListener('change', (nextAppState) => {
@@ -72,14 +71,14 @@ export default function App() {
notificationResponseListener.current = Notifications.addNotificationResponseReceivedListener(
(response) => {
const data = response.notification.request.content.data;
console.log('[App] 通知被点击:', data);
void data;
}
);
// 监听通知到达(用于前台显示时额外处理)
const notificationReceivedSubscription = Notifications.addNotificationReceivedListener(
(notification) => {
console.log('[App] 通知已接收:', notification.request.content.title);
void notification;
}
);