podigee/device_detector

Using 'os_name' returns 'Mac' instead of 'iOS' when calling from IONIC Cordova app running on iphone

Closed this issue · 1 comments

Hi guys,

I use the gem in my rails app server to check where the user are making the request from.
I just accept "os_name" Android and iOS. But the gem identify iphones as "Mac" instead of iOS.

I build my project using Ionic/Cordova. I think maybe the cordova framework is using WebView, what causes the error, but not completely sure.

Hope this report help someone in the future.

Hi Acosme,

Usually, we recommend fixing the upstream definitions first: https://github.com/matomo-org/device-detector

Once the changes are merged there, we can pull the latest device definitions into this project.

Thanks a lot