TheM4hd1 / SwiftyInsta

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

Unusual login email #123

Closed mycroftcanner closed 4 years ago

mycroftcanner commented 5 years ago

It would be better to generate a standard user agent that looks as if the user logged in using Instagram. Is that possible?

sbertix commented 5 years ago

Are you setting your own custom user agent? Cause the ones automatically generated by SwiftyInsta never gave me any issues… Do you mind elaborating on this? @mycroftcanner

mycroftcanner commented 4 years ago

Using the ones automatically generated.

image
sbertix commented 4 years ago

You are using LoginWebView or LoginWebViewController, correct? I might try to address this (#96) so the user agent matches the SwiftyInsta APIHandler one, but I would say that you receiving that email is actually "intended behaviour" on Instagram side, and nothing to worry about: you are indeed login from a device you don't usually use when dealing with SwiftyInsta requests, after all.

mycroftcanner commented 4 years ago

ok so this is from the loginwebviewcontroller... and using the handler doesn't generate any warnings... I see.

sbertix commented 4 years ago

Yes, cause it's the only place where we simulate being on an iPhone (and it clearly states "iPhone" on the email). Everywhere else in SwiftyInsta you are using a 5 year old Android device hahaha (We might need to address that too in the future)