You must manually exercise a long Call option before 16:30 EST on the business day prior to the Ex-Dividend/Record date in order to receive long settled stock on the Record Date and be entitled to the dividend. You can use the Option Exercise Tool in Classic TWS/Mosaic or IBKR Mobile any time before 17:25 EST to early exercise an American style option.
Alternatively log in to Client Portal and open the Settings menu (from the avatar Welcome icon in the top right of the title bar). In the Account Communication category, select FYI Notifications. Check the box to automatically exercise options early to capture dividends.
To see the important dates regarding option exercise/assignment for dividends please visit the IBKR Knowledge Base.