Mobile Device detection is not working

When we track from mobile using the official iOS tracker (, then it does not pick up the device. Every single device is tagged as Desktop and MacOS. We are using 3.0.1.

I went through the DeviceDetector source code, and it seems that mobile devices are fully supported.
What can be wrong?

I got this resolved.
You will need to update the User Agent in order to Piwik to detect that we are coming from a mobile native app.
We capture a UIWebView userAgent and store that in the Piwik Tracker.

In swift:

if let userAgent:String = UIWebView().stringByEvaluatingJavaScriptFromString(“navigator.userAgent”)! + " Custom-Agent" {