I couldn't get my P10 plus to connect via IR either. I did find a work around that may work for people that have a tv that is less than 7 years old and have a WiFi connection to their TV or ethernet to their tv (generally used for updates).
You can use an app like 'sure universal remote' to use...