I am working on a mobile application on iOS 8. document.referrer seems to always be empty. I have tried to check if it exists by using:
if( 'referrer' in document ) {
alert('referrer ' + document.referrer);
}
and it throws an alert, but the value is always empty, whether I am accessing it from another page or if I am accessing the page for the first time. I have also included the meta tag:
<meta name="referrer" content="always">
How do I get the value of document.referrer?
EDIT: I also forgot to mention, that I am not working on a native iOS app. I am using cordova and HTML5 and JS.