Sometimes receiving iMessage notification on Mac is an annoying thing. Using the same Apple ID for both phones and MacBook Pro will create this problem. All messages that come from iPhone are synced to the MacBook iMessage app.
If you want to disable iMessage on OS X Yosemite, MacBook Pro, iMac, MacBook Air, or Mac Mini, then follow these steps.
Method 1:- (Permanently disable)
On the top left of the screen, click messages when they open. Then choose Preference under it.
In Message preferences, choose the Accounts tab to remove accounts.
It will stop receiving messages from iPhone or iPad.
Method 2:- How to turn off iMessage on Mac
Unclick the “Enable this Account” box in Messages -> Preferences ->Accounts -> Enable this Account. And click Sign Out.
Just turn off iMessage notifications
Open System Preferences -.> Notifications.
Select Messages on the left and select None.
If you have any other doubts, do let us via comment.