diff --git a/src/App.tsx b/src/App.tsx index 1880b1c..1646773 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -65,11 +65,7 @@ export default function App() { React.useEffect(() => { // ensure FCM works - messaging() - .getToken() - .then((token) => { - console.log(token); - }); + messaging().getToken(); }, []); React.useEffect(() => { @@ -78,7 +74,7 @@ export default function App() { }, []); // ensure push keys are generated - console.log(usePushKeys()); + usePushKeys(); return ( diff --git a/src/components/web.tsx b/src/components/web.tsx index 7326ff3..223a260 100644 --- a/src/components/web.tsx +++ b/src/components/web.tsx @@ -101,7 +101,6 @@ const Web: React.ForwardRefRenderFunction = ( const [DLTarget, setDLTarget] = React.useState(null); const handleBack = React.useCallback(() => { - console.log("handleBack"); try { const c = innerRef.current; if (c) { @@ -128,7 +127,7 @@ const Web: React.ForwardRefRenderFunction = ( type: string; value: unknown; }; - console.log({ type, value }); + // console.log({ type, value }); switch (type) { case "theme": @@ -136,11 +135,9 @@ const Web: React.ForwardRefRenderFunction = ( onThemeChange({ foreground: fg, background: bg }); break; case "pressImage": - console.log("pressImage", value); setDLTarget(value as string); break; case "share": - console.log("share", value); // share API workaround // https://github.com/react-native-webview/react-native-webview/issues/1262#issuecomment-933315821 const param = value as WebShareAPIParam; diff --git a/src/notifications.ts b/src/notifications.ts index 916534d..b769986 100644 --- a/src/notifications.ts +++ b/src/notifications.ts @@ -116,8 +116,6 @@ export default async function messageHandler( keys.authSecret ); - console.log("Notification From: " + src); - console.log("Decrypted message: " + raw_msg); const m = JSON.parse(raw_msg); const notif = composeNotification(src, m); if (notif === null) return; // do not show notification