I'm also interested in this ,
In can also contribute with this piece of information for apps :
In mobile service also, you can collect by assigning the context data of the prop evar you want with : "&& IP".
But, Is it ... legal ?
Should be different by country , I'm almost sure that - at least in EMEA regions - this is not GDPR-compliant !
Cheers la bande !