While I don’t like staring at my phone constantly while I’m around others, have you considered the possibility that people simply enjoy whatever are on their phones more than talking to and spending time with you? A lot of people just want to be left alone, when you think you’re “having an interesting conversation” or “having a good time” or whatnot with them, it’s entirely possible they’re only doing it out of politeness.