If you see flashes of light in the daytime, and you can't identify a source like reflections off passing cars, you might have a detached retina. You need to see an eye surgeon immediately.
If you see flashes of light in the night sky, like streaks, it could be meteors. If you see flashes and hear bangs, it's probably fireworks.
Other people asked questions on similar topics, check out the answers they received:
Other people asked questions on various topics, and are still waiting for answer. Would be great if you can take a sec and answer them