Geolocation for Roku Apps

Because the app logic is running on an Amazon server, its geolocation checks return the server’s IP addresses (an Amazon server, probably in the US).

For You.i React Native apps, you need to get the end user’s Roku IP address with rokuExternalIp() from the Cloud module. For C++ apps, you can get the end user’s Roku IP Address with CYICloud::GetInterface().GetRokuExternalIp().

Then, update the app logic’s HTTP request X-Forwarded-For header with the Roku device’s IP address.