You can change when to flash and which apps will flash the LED when there are new notifications.
Go to Settings, and then tap
Sound & notification.
Choose whether to always flash the LED or flash it only when the screen is off.
App light notifications.
Choose which app notifications you want the LED to flash for.
Tip: In other apps, check their settings to find out if they have an option for flashing the LED.