1、Please remove the phone case and try again.
2、Try another iPhone and check whether the connection popup appears.
3、Check whether the IR accessory connector is intact or damaged.
4、Make sure the charging port is clean and has a secure connection.
5、If it worked before but no longer works, please restart your iPhone and try again.