TheM4hd1 / SwiftyInsta

Instagram Private API Swift
MIT License
225 stars 51 forks source link

Setting user agent on loginview #155

Closed anonrig closed 4 years ago

anonrig commented 4 years ago

Is seems that there isn't any possibility to change the user agent of login web view. Today my application got rejected due to the webview having a "Find it for free on Google Play" header on Instagram login page, due to Android user-agent of the wkwebview.

sbertix commented 4 years ago

Definitely something we could implement.
Feel free to push a PR, if it's urgent, cause I'm not sure when I can get down to it 😊

Still, please keep in mind that WKWebView based authentication, like LoginWebView is, requiring full access to a third party user account through cookies is usually not allowed in the App Store, and might be a cause for future rejection, Android banner or not.

sbertix commented 4 years ago

I've added support for this in #156, @anonrig. It'll be merged to master as soon as @TheM4hd1 reviews it 😊💪