Why not just have the self control to not use the phone 24/7 .... edit: turning off notifications helps a long way with this, other than text message or phone calls
I love me some chocolate chip cookies, and if there are any in the house I might ignore them when I'm rested, or full, or energized. But at some point I'm going to be tired and hungry and feeling lazy, and those cookies will begin to disappear.
Set up your environment to help you make good decisions.
I completely agree that turning of notifications is incredibly valuable, and I do this myself. That being said, it's not that easy for many people who are tied to email or Slack or anything else.
If self control were as simple as throwing a switch, we'd all be Olympian heroes of might and mind, and apps/smart phones are just another example of a "utility" that preys on human weaknesses.