0maru / twitter_login

MIT License
54 stars 54 forks source link

[urlScheme] iOS14 - Not routed back to application #10

Closed bounty1342 closed 3 years ago

bounty1342 commented 3 years ago

Hi,

I can't make it work on iOS 14. Spent literally hours, trying different combination for the urlScheme with no success. After the login, the URLScheme don't come back to application and result in user cancel.

https://developer.twitter.com/ : image

image

<key>CFBundleURLTypes</key>
<array>
  <dict>
    <key>CFBundleTypeRole</key>
    <string>Editor</string>
    <key>CFBundleURLName</key>
    <string>app.flutter.twitter.login.schemes</string>
    <key>CFBundleURLSchemes</key>
    <array>
      <string>easivio</string>
    </array>
  </dict>
</array>

image

Please help, Regards

bounty1342 commented 3 years ago
<key>CFBundleURLTypes</key>
<array>
  <dict>
     <key>CFBundleIdentifier</key>
     <string>easivio</string>
    <key>CFBundleTypeRole</key>
    <string>Editor</string>
    <key>CFBundleURLSchemes</key>
    <array>
      <string>easivio</string>
    </array>
  </dict>
</array>

This will work ! Otherwise the Url is not correct, I think you should do a more complete example on this as it's not trivial those Info.plist for non ios dev.

Regards,

0maru commented 3 years ago

@bounty1342 Added to README.md about info.plist. Please let me know if there are any problems.