Updated user agent pattern for iOS platform check

Looking for the "iPad" and "iPhone" patterns prevents the privly-applications from mixing other platform such as desktop Safari with iOS platforms.