FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
123 stars 19 forks source link

App crashes immediately due to Pub package #2162

Closed minashawky closed 9 months ago

minashawky commented 9 months ago

Has your issue been reported?

Current Behavior

In the most resent update the pub package has flutter_facebook_auth: 4.4.1+1

Which is causing all apps using it to crash on testflight

Expected Behavior

Expecting the app to open

Steps to Reproduce

  1. Publish an app to test flight
  2. Run the app locally
  3. App crashes

Reproducible from Blank

Bug Report Code (Required)

IT48lfLl08pgoddY7ZDUb+9anjwsJjo7ROc41up+SQs8J5zKB+wAYvf7P1FWTLykTwhDMGCamTke/Pfqit7lGu4oOS+aGYRJ/852UAzwXn+6RbGYPqi/fW1SGfpYFVSx4aao2B1+COhfLGQt2HGLNu6XSh3bJ4DrDEgZJf2LKdeK2SrDX1iXc2URm05KZDPz

Context

Whenever I'm testing now a new update on Testflight the app doesn't launch and crash immediately before showing the splash screen. The report on Xcode shows the following:

image

FBSDKCoreKit: -[FBSDKGraphRequestConnection raiseExceptionIfMissingClientToken] + 384

Visual documentation

Whenever I'm testing now a new update on Testflight the app doesn't launch and crash immediately before showing the splash screen. The report on Xcode shows the following:

image

FBSDKCoreKit: -[FBSDKGraphRequestConnection raiseExceptionIfMissingClientToken] + 384

Additional Info

No response

Environment

- FlutterFlow version: 4.0
- Platform: iOS
- Browser name and version: iOS - Test Flight
- Operating system and version affected: iOS
khomya commented 9 months ago

I have the same problem

steven-ck commented 9 months ago

I got the same problem. flutter_facebook_auth: 4.4.1+1 include SDK 13 and requires a client token (from Facebook app) in Info.plish/AndroidManifest.xml but there is no way to configure it in FlutterFlow. My only option is downgrade to version 3.x

jasonNumar commented 9 months ago

I'm experiencing the same problem currently. Running it locally I can see that the first error that occurs is actually "10.18.0 - [FirebaseCore][I-COR000005] No app has been configured yet.", which would cause the Facebook configurations to not work also.

jasonNumar commented 9 months ago

Has anybody had this same issue on a platform other than ios?

mackaby commented 9 months ago

I got the same problem. flutter_facebook_auth: 4.4.1+1 include SDK 13 and requires a client token (from Facebook app) in Info.plish/AndroidManifest.xml but there is no way to configure it in FlutterFlow. My only option is downgrade to version 3.x

I tried adding the token to info.plist locally and it did indeed solve the problem. Hopefully there will be a solution for adding it from Flutterflow soon.

hariprasadms commented 9 months ago

Hi @minashawky - This issue is related to package compatibility and specific configurations. It's considered an enhancement for the current design. We'll look into it for future updates, but there's no ETA at the moment. Thanks for your contributions. Thanks

hariprasadms commented 9 months ago

Hi, we need additional details. I've looked at your project, but I couldn't find the Facebook login and the package version you mentioned above. Have you made changes to the auth config in your project?

michelflight commented 9 months ago

it is necessary to push the code onto a git and add the FacebookClientToken parameter in info.plist for iOS. I have not yet tested on Android, but it should be the same.

minashawky commented 9 months ago

@hariprasadms yes so actually as @michelflight mentioned. I don't even use Facebook auth on the app yet my workflow includes me pushing the code and deploying to testflight via github. This flutter_facebook_auth package was added to the project and was updated recently to version 4.4.1+1 which is causing the issues.

I didn't try @michelflight suggestion to add the FacebookClientToken in the info.plist file but I downgraded the package to this and it worked:

flutter_facebook_auth:
    git:
      url: https://github.com/asmengistu/flutter-facebook-auth
      ref: b65ffb049c9f1e2704adbeb1aa19c61693c946a5
      path: facebook_auth
khomya commented 9 months ago

@hariprasadms pls look at my project too. (https://app.flutterflow.io/project/georgia-tennis-4hpmkx)

My Facebook App Name and Facebook App ID - are empty. And I dont use FB Auth. But I still got errors and cant compile my project.

And in community - I saw that several people has the same problem.

Screenshot 2024-01-13 at 18 00 46 Screenshot 2024-01-13 at 18 01 46

Link to FF community: https://community.flutterflow.io/ask-the-community/post/the-app-crashes-immediately-in-testflight-DlcuPUncN6ecBiL?highlight=vrYYS9mNU26h0be

hariprasadms commented 9 months ago

@hariprasadms pls look at my project too. (https://app.flutterflow.io/project/georgia-tennis-4hpmkx)

My Facebook App Name and Facebook App ID - are empty. And I dont use FB Auth. But I still got errors and cant compile my project.

And in community - I saw that several people has the same problem.

Screenshot 2024-01-13 at 18 00 46 Screenshot 2024-01-13 at 18 01 46 Link to FF community: https://community.flutterflow.io/ask-the-community/post/the-app-crashes-immediately-in-testflight-DlcuPUncN6ecBiL?highlight=vrYYS9mNU26h0be

Hi @khomya - If you're seeing this message, it might be due to having a Facebook login as the authentication type in any of your pages' actions. Please check and make sure you don't have any actions tagged as FB auth actions.

Marcelo1chagas commented 9 months ago

I got the same problem. flutter_facebook_auth: 4.4.1+1 include SDK 13 and requires a client token (from Facebook app) in Info.plish/AndroidManifest.xml but there is no way to configure it in FlutterFlow. My only option is downgrade to version 3.x

I tried adding the token to info.plist locally and it did indeed solve the problem. Hopefully there will be a solution for adding it from Flutterflow soon.

hello, I have the same error. Can you pass me the code you used to add the Client Token. thanks!

mackaby commented 9 months ago

I got the same problem. flutter_facebook_auth: 4.4.1+1 include SDK 13 and requires a client token (from Facebook app) in Info.plish/AndroidManifest.xml but there is no way to configure it in FlutterFlow. My only option is downgrade to version 3.x

I tried adding the token to info.plist locally and it did indeed solve the problem. Hopefully there will be a solution for adding it from Flutterflow soon.

hello, I have the same error. Can you pass me the code you used to add the Client Token. thanks!

This is the error log in Xcode. Doing this worked, but... not really a solution unless it is added into flutterflow.

Marcelo1chagas commented 9 months ago

I got the same problem. flutter_facebook_auth: 4.4.1+1 include SDK 13 and requires a client token (from Facebook app) in Info.plish/AndroidManifest.xml but there is no way to configure it in FlutterFlow. My only option is downgrade to version 3.x

I tried adding the token to info.plist locally and it did indeed solve the problem. Hopefully there will be a solution for adding it from Flutterflow soon.

hello, I have the same error. Can you pass me the code you used to add the Client Token. thanks!

This is the error log in Xcode. Doing this worked, but... not really a solution unless it is added into flutterflow.

thanks!!!

michelflight commented 9 months ago

Add in info.plist

<key>FacebookClientToken</key>
<string>YOURCLIENTTOKEN</string>

You will find your client token in the Advanded Settings section in your facebook account developer

Marcelo1chagas commented 9 months ago

Hello again

Add in info.plist

<key>FacebookClientToken</key>
<string>YOURCLIENTTOKEN</string>

You will find your client token in the Advanded Settings section in your facebook account developer

Hello again, I added the client token and the SDK, but the problem still there, what maybe I add wrong, but I putted in Info.plist. Can you help me? Thanks so much.

victoriahuang1 commented 9 months ago

Hi all, thank you for the report. Crashing due to flutter_facebook_auth should be fixed upon the next deploy.