0maru / twitter_login

MIT License
54 stars 54 forks source link

【iOS】Unable to process request #22

Closed mitUltimate closed 3 years ago

mitUltimate commented 3 years ago

I encountered a problem that when running on iOS, after logging in to Twitter, the message of the attached image was displayed and the transition to the app did not occur.

Since I received a login notification from Twitter, so I think the login itself works. Do you have any idea to solve this problem?

Simulator Screen Shot - iPhone 12 Pro Max - 2021-01-31 at 21 43 41

gyakhoe commented 3 years ago

I encountered a problem that when running on iOS, after logging in to Twitter, the message of the attached image was displayed and the transition to the app did not occur.

Since I received a login notification from Twitter, so I think the login itself works. Do you have any idea to solve this problem?

Simulator Screen Shot - iPhone 12 Pro Max - 2021-01-31 at 21 43 41

I got the same issue

mitUltimate commented 3 years ago

I resolved this problem by the following procedure. Note that your-app:// indicates the root for the deep link.   ・Setting TwitterDeveloper configuration to firebase callback URL and your-app://. ・Setting the URL schema for info.plist to the reverse client id and your-app://, ・Setting intent-filter in AndroidManifest.xml to your-app://. ・Setting redirectURL in the TwitterLogin constructor to your-app://.

He shared this method with us. I'm thankful to him! https://twitter.com/appcreator_masa/status/1343872642739105796?s=20