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:
5
App.tsx
5
App.tsx
@@ -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;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user