Android and iOS devices (8.3 + version) can use GPS in airplane (flight) mode. However, if iOS version on your device is 8.2 or earlier, airplane mode will block GPS. You can even track your flight while on the airplane if you can receive GPS signal near the windows.