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

Does not show in iOS Emulator #19

Open
karmicdice opened this issue Dec 10, 2024 · 2 comments
Open

Does not show in iOS Emulator #19

karmicdice opened this issue Dec 10, 2024 · 2 comments

Comments

@karmicdice
Copy link

karmicdice commented Dec 10, 2024

Describe the bug

CloudFlareTurnstile(
                  siteKey: Env.TURNSTILE_SECRET,
                  baseUrl: 'https://example.com/',
                  options: TurnstileOptions(
                      mode: TurnstileMode.managed,
                      size: TurnstileSize.normal,
                      language: 'en',
                      retryAutomatically: true,
                      theme: TurnstileTheme.auto),
                  onTokenRecived: (token) {
                    setState(() {
                      cftoken = token;
                    });
                  },
                )

To Reproduce
Steps to reproduce the behavior:

  1. Code above.
  2. Ran on a plain project too

Expected behavior
See Turnstile captcha

Screenshots
NO errors, no issues. No captcha. Checked if I had the necessary permissions too:

In Info.plist

<key>io.flutter.embedded_views_preview</key>
    <true/>
    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
        <key>NSAllowsArbitraryLoadsInWebContent</key>
        <true/>
    </dict>

Environment (please complete the following information):

  • Flutter Version: 3.24.5 on macOS 14.7.1 23H222
  • Dart Version: 3.5.4
  • Device: iPhone 15 Pro Max emulator
  • iOS 17.5

Additional context
Same code works with Android.

@karmicdice
Copy link
Author

Somehow it has issues with latest Inapp webview. Were dependencies changed by any chance?

@Nika0000
Copy link
Owner

Somehow it has issues with latest Inapp webview. Were dependencies changed by any chance?

Probably yes, I'll try to fix it today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants