I'm using document.referrer in a hybrid app in which I conditionally show some buttons, based on the previous page. While the use of document.referrer in my ios and browser versions of the app is running perfectly, in Android, it always returns an empty string on document.referrer. Has everyone ever had this problem?

I haven't but use the object browser. See if the method is named differently in android.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.