agent icon indicating copy to clipboard operation
agent copied to clipboard

Platform returns false for iOS user agent

Open harman28 opened this issue 5 years ago • 0 comments

Received the following user agent in a request: MyAirtel/4.6.38 (iPhone; iOS 13.1.2; Scale/3.00)

Appears to be iPhone, but ->platform returns simply false.

>>> use Jenssegers\Agent\Agent;
>>> $agent = new Agent();
=> Jenssegers\Agent\Agent {#2215}
>>> $agent->setUserAgent('MyAirtel/4.6.38 (iPhone; iOS 13.1.2; Scale/3.00)');
=> "MyAirtel/4.6.38 (iPhone; iOS 13.1.2; Scale/3.00)"
>>> $agent->platform();
=> false

Is this a known issue? Is it fixable?

harman28 avatar Nov 07 '19 10:11 harman28