Cannot accept invitation to realm due to "incorrect privacy and online safety settings"

Solution 1:

I have this happen to me many times and most of the times that this happens to me isn't permanent

  • my First workaround: just closing Minecraft and then making sure that my internet is on and I am connected (By doing a simple google search of Hello or something) and then re-entering Minecraft.

if this doesn't work then I'll do my second workaround:

  • restarting my device

if both workarounds fail then I'll do my third workaround:

  • Singing out of Xbox live then Signing back in

if all workarounds fail then I have no more methods to fix this