If you can do a close up in high res of the shoulder title, it may help pin him down. Prior to 01 Apr 1918 and the formation of the RAF, men served in the services you mentioned, but when the medal cards came to be written, they were all RAF so they were listed thus.
This is an Army uniform, witnessed by the army good conduct chevron, and he is in the middle or far east when this was taken.