IBKR offers a feature that will notify you if your account holds call options where the underlying stock is scheduled to trade ex-dividend within the next two trading days. You can define your FYI settings by clicking the "FYI" button in TWS Mosaic. Click on "FYI Subscription Settings" to turn notifications on or off and select "FYI Delivery Options" to specify where to send notifications. You can also have the system automatically exercise call options early if this action is projected to be economically beneficial to your account. Regardless of whether or not you elect this action, the "always on" Dividends notification will notify you in cases where early exercise may be beneficial.
To activate automatic actions and have your Call option auto exercised early, login to Client Portal and select the User menu (head and shoulders icon in the top right corner) followed by Settings. Under Account Settings find the Account Communication section and click on FYI Notifications. Then check the box for "Dividends- Automatically Exercise my Options Early".