This isn’t an iPhone problem. This doesn’t happen normally. There’s one of two things going on:
-
you jailbroke your phone/sideloaded/installed some shady app. Solution: hard reset that phone and set it up as new. Do not copy over anything, and use the phone as close to stock as possible for a bit. These notifications will stop. Then you add apps and stuff slowly until you figure out what is the offender.
-
you’re being targeted. Somebody did something nefarious and they are probably good at it. It’s not easy to get into a stock device. I find this option possible but unlikely unless you’re a VIP or you’ve REALLY pissed off an ex lover or are married to overly attached girlfriend.
*Edit
Maybe there’s a third option. Maybe the phone’s hardware is just borked somehow - a chip or sensor or something is broke. /shrug. I suppose that’s possible too.
Anyone still defending Microsoft at this point has cognitive dissonance and deserves what they get. Seriously people - just use Linux. And for the 1% of you that can’t get that 1% of your programs working in Linux - just dual boot.
It’s like people forgot how to use computers.