Opened 9 years ago
Closed 7 years ago
#1323 closed defect (bug) (fixed)
Browse Happy banner shows up when App users open their Admin view using a Webview from the official apps (Android or IOS)
Reported by: | mbiais | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Browse Happy | Keywords: | |
Cc: |
Description
That would be great if we could whitelist User Agent used by the apps.
Here are a sample of the an Android UA:
wp-android/2.6.4 (Android 4.3; en_US; samsung GT-I9505/jfltezh)
wp-iphone/4.6.1 (iPhone OS 8.1.2, iPhone) Mobile
References:
- WPAndroid https://github.com/wordpress-mobile/WordPress-Android/blob/c525136b31f6430e46113ee2b1081a25ab2435f8/WordPress/src/main/java/org/wordpress/android/WordPress.java#L590
- WPiOS https://github.com/wordpress-mobile/WordPress-iOS/blob/d63c39bc1f87888d46108417f7a5f5287d9aa384/WordPress/Classes/Utility/WPUserAgent.m#L44
Reference to the issue opened on the WPAndroid bug tracker: https://github.com/wordpress-mobile/WordPress-Android/issues/3308
Change History (5)
#2
@
9 years ago
I'm unable to duplicate this on an Android, and the user agents provided don't trigger Browse Happy.
Android: https://api.wordpress.org/core/browse-happy/1.1/?useragent=wp-android/2.6.4%20(Android%204.3;%20en_US;%20samsung%20GT-I9505/jfltezh)
iOS: https://api.wordpress.org/core/browse-happy/1.1/?useragent=wp-iphone/4.6.1%20(iPhone%20OS%208.1.2,%20iPhone)%20Mobile
Both the update & insecure flags are false, and there's nothing in the UA to identify it as Chrome..
#3
@
9 years ago
Sent that a little early..
The Browser within the Android app doesn't use the wp-android/
user-agent, on my device it uses this:
Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/45.0.2454.95 Mobile Safari/537.36
which is detected as Mobile Safari
Can you post the user agents in question for the Nexus 7? I have a feeling that it really is an outdated version that needs updating.
Related: #1303