It’s slightly different on iOS due to
Apple’s restrictions but Truecaller managed to find a workaround. So what you’ll have to do is go to Truecaller, and dial the ‘recording line’ number then you add a call and merge them both. Once you do this, the call will be recorded and you will receive a file with the recording when the call is over. The same process can be applied for incoming calls too.