angular / angular/components

CDK Platform always return true for ANDROID for all platform

Open
#20,624 4 comments 0 reactions 0 assignees View on GitHub
area: cdk/platform help wanted P4
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

`"@angular/cdk": "9.2.4"`

```
console.log('PLATFORMS');
console.log(this.platform.ANDROID);
console.log(this.platform.BLINK);
console.log(this.platform.EDGE);
console.log(this.platform.FIREFOX);
console.log(this.platform.IOS);
console.log(this.platform.isBrowser);
console.log(this.platform.SAFARI);
console.log(this.platform.TRIDENT);
console.log(this.platform.WEBKIT);
```
![image](https://user-images.githubusercontent.com/16483904/93839828-5ba5dc80-fcb8-11ea-97e4-3dae1a475271.png)

Contributor guide

Open the contributing guide

Research direction

Reproduce the report with @angular/cdk 9.2.4 by logging the listed this.platform properties in a browser environment. Start by locating the CDK Platform implementation and its platform-detection tests, then compare the reported ANDROID value with the other detection flags across relevant browsers. Done means ANDROID is not true for every platform and the regression is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.