I found that Spotify or any media related control app seems to always be chatting over the network keeping it awake and active.
A Google Home assistant type device like Home Mini can cause the same issue, especially with the 'Let others control your cast media' option.
The older devices sometimes just do not connect to networks with new Wi-Fi encryption modes. It can be an reason because as you said your Moto G4 connects to other wifi spots.
You can try to change region on your G4.
Or change your encryption method on your iphone.
Firstly, check the performance of other devices on your same WiFi. Are you getting the intended speed on it? Might be an internet issue at its core.
Secondly, there might be other WiFi from your neighbors that "overlap" with your WiFi and causing the issue. Use an app like this and see which networks are the same channel.
Depending on how overlap, just ...
This is most likely media related.
Devices on the network can be too chatty and try to constantly discover things and speak to each other non stop, keeping the wifi awake and active.
Two big culprits:
Spotify (uninstall or restrict all background activity?)
Google Home devices like the Mini (turn off "Let others control your cast media")
Also check out,
Yes the Mobile Network needs to support Wi-Fi calling.
From Settings -> Network & Internet -> Mobile Network -> [tap on]Advanced and scroll down a bit you should see something similar to the following which was taken on a Pixel 2 with Android 10.
I was also looking for this as well and I found this thesis submitted in 2015. They were able to get IEs using Android NDK. I still haven't tried it yet. Also if you have found some other solution could share it.
You will need an OTG cable. It allows you to connect various devices to your phone.
The way to control using the OTG cable via USB is to connect one end to the phone and the other to the keyboard.
All keyboards may not work, just like not all smartphones support the OTG cable (all tablets do).
Instead of a keyboard, you can use a regular computer mouse by ...