Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Social Login Not Working on iOS (Stuck on Loading) #92

Closed
karthikeyan9952 opened this issue Jan 31, 2025 · 10 comments
Closed

Social Login Not Working on iOS (Stuck on Loading) #92

karthikeyan9952 opened this issue Jan 31, 2025 · 10 comments
Labels
appkit AppKit related issue awaiting customer Further information has been requested

Comments

@karthikeyan9952
Copy link

I'm using Reown AppKit for Web3 social and wallet logins in my Flutter app. While the social login works fine on Android, it is not working on iOS. When I attempt to log in using a social provider (e.g., X, Apple, etc.), the app gets stuck on the loading screen with a spinning indicator indefinitely.

To Reproduce

Steps to reproduce the behavior:

  1. Run the app on an iOS Simulator
  2. Open Appkit Model
  3. Select any social provider
  4. See error

Expected behavior

The user should be redirected to complete authentication and log in successfully.

Actual behavior

The app remains stuck on a loading screen with no errors or response.

Image

Environment :

  • Device: iPhone 16 Pro Max (Simulator)
  • Platform: iOS 18.2
  • SDK Version: 1.3.0

Flutter Doctor Output

[✓] Flutter (Channel stable, 3.27.3, on macOS 15.2 24C101 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.96.4)
[✓] Connected device (5 available)
[✓] Network resources

• No issues found!

Let me know if any additional details are needed. Thanks!

Copy link

linear bot commented Jan 31, 2025

@reown-com reown-com deleted a comment Jan 31, 2025
@quetool
Copy link
Member

quetool commented Jan 31, 2025

Hello @karthikeyan9952! Thanks for reporting! Before all, please don't engage with any link sent by non-members for your security.

What version of AppKit are you using?
Is this happening only on iOS?
Is this happening with every social option, including email option?

@karthikeyan9952
Copy link
Author

Hello @quetool
Thanks for your response!

  • AppKit Version: 1.3.0
  • Platform Affected: iOS only
  • Social Login Behavior: Every social option, including the email login option.

Please let me know if you need any additional details or logs. I appreciate your help!

@quetool
Copy link
Member

quetool commented Jan 31, 2025

I will check that version!
In the meantime, do you mind trying reown_appkit: ^1.4.0-beta03
Also, did you follow the guide? Specially the NOTE at the bottom https://docs.reown.com/appkit/flutter/core/email#options

@karthikeyan9952
Copy link
Author

karthikeyan9952 commented Feb 1, 2025

I will check that version! In the meantime, do you mind trying reown_appkit: ^1.4.0-beta03 Also, did you follow the guide? Specially the NOTE at the bottom https://docs.reown.com/appkit/flutter/core/email#options

I just noticed that the issue has expanded. Now, the entire social login and email login section is stuck on loading on both Android and iOS. Previously, it was only happening on iOS, but now the issue occurs across both platforms.

I tried both reown_appkit: ^1.4.0-beta03 and reown_appkit: ^1.3.0

Android
Image

iOS
Image

Config on Reown cloud
Image

In my build.gradle

 defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId = "com.gifmebeer.app"
        // You can update the following values to match your application needs.
        // For more information, see: https://flutter.dev/to/review-gradle-config.
        minSdk = 23
        targetSdk = 35
        versionCode = flutter.versionCode
        versionName = flutter.versionName
        multiDexEnabled true
    }

In my project.pbxproj

MARKETING_VERSION = 0.0.1;
PRODUCT_BUNDLE_IDENTIFIER = com.azotos.gifmebeer;
PRODUCT_NAME = "$(TARGET_NAME)";

Would you like me to provide any additional logs or debugging information? Let me know how I can help in troubleshooting this.

Thanks!

@quetool
Copy link
Member

quetool commented Feb 3, 2025

Hello @karthikeyan9952, can you share your code? I'm struggling to reproduce this, I even created a brand new flutter project and installed version 1.3.0 but everything works fine. The behavior you are seeing is typically associated with none bundleId/packageName whitelisted but you are doing it so the only thing I can think of is that you are not using AppKitModalConnectButton nor AppKitModalAccountButton

You can also enabled logLevel: LogLevel.all, in your ReownAppKitModal() instance to check if you see something valuable.

@Immadominion
Copy link

@karthikeyan9952 have you tested on a physical device?
I would try to look into this issue today

@quetool quetool added appkit AppKit related issue awaiting customer Further information has been requested labels Feb 12, 2025
@quetool
Copy link
Member

quetool commented Feb 23, 2025

Closing this issue due to lack of activity. Feel free to reopen if needed.

@quetool quetool closed this as completed Feb 23, 2025
@karthikeyan9952
Copy link
Author

Hello @quetool,

I’ve fixed the issue by adding the redirect parameter, which was mentioned as optional in the documentation. It turns out that without this parameter, the login process was getting stuck.

Thanks for your help! This can be closed now.

@quetool
Copy link
Member

quetool commented Feb 24, 2025

Wonderful @karthikeyan9952 ! Yes, I will be fixing the redirect parameter issue this week. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
appkit AppKit related issue awaiting customer Further information has been requested
Projects
None yet
Development

No branches or pull requests

3 participants