If you are referring to the use of PSS, when messages like "Battle Spot" and "Wonder Trade" appear then just switch off your wireless button when not in use or just use the Pokémon Amie or Super Training Screen, it'll stop them from appearing.
Hope I Helped.