Skip to content

Commit d5950b9

Browse files
authored
Merge pull request #3670 from passportxyz/fix-intercom-auto-popup
fix(app): prevent Intercom auto-popup while keeping messenger icon visible
2 parents acaf0b6 + cf126f7 commit d5950b9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/hooks/useIntercom.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ export const updateIntercomUserData = ({ address }: { address?: string }) => {
1212
boot({
1313
app_id: INTERCOM_APP_ID,
1414
name: address,
15+
hide_default_launcher: false, // Keep the bubble/icon visible at all times
16+
// Positioning options
17+
alignment: "right",
18+
horizontal_padding: 20,
19+
vertical_padding: 20,
1520
});
1621
};
1722

@@ -20,8 +25,13 @@ export const useIntercom = () => {
2025
const { isConnected } = useAppKitAccount();
2126

2227
const initialize = useCallback(() => {
23-
Intercom({
28+
boot({
2429
app_id: INTERCOM_APP_ID,
30+
hide_default_launcher: false, // Keep the bubble/icon visible at all times
31+
// Positioning options
32+
alignment: "right",
33+
horizontal_padding: 20,
34+
vertical_padding: 20,
2535
});
2636
}, []);
2737

0 commit comments

Comments
 (0)