-
Notifications
You must be signed in to change notification settings - Fork 71
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
api_key is missing error in example project #117
Comments
Hey @Shahmirzali-Huseynov thanks for submitting an issue. Sounds like you didn't provide an api key. In the sample project we retrieve it from an environment variable that you have to set. |
@sachaarbonel thanks for support, but i set API key, but not working :( |
By set you mean hardcoded or set via environment variable? If it is the later it's possible that on mobile it doesn't work. I also have something else in mind: is it your API key (copy pasted from your dashboard) or the API key from the tutorial? |
I ran into this too. You need to match the ID of the user you are clicking on with the ID you used to generate the token. In my use case, I generated the user token like this in node. const userToken = client.createUserToken('test'); And after I copied it into the Flutter app for testing, none of the user buttons worked. So I went into const AppUser.sahil()
: id = 'test',
name = 'Sahil Kumar', |
@Shahmirzali-Huseynov the above solution which @MisterJimson shared will most probably solve your issue. |
Describe the bug
I download the example folder and run, then initialize API key, token and appID,
but this gives this error when I click any user, for example, Sahil Kumar or any other.
How can I solve this problem ?
What version of Flutter do you use?
Flutter 2.2.3
What package are you using? What version?
version 0.2.2
What platform is it about?
✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale en-AZ)
• Flutter version 2.2.3 at /Users/shahmirzali/Development/flutter
• Framework revision f4abaa0735 (3 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/shahmirzali/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5, Build version 12E262
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.58.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.24.0
[✓] Connected device (2 available)
• iPhone (mobile) • c47d4be7167357fd9af36d2acb585f38cc997040 • ios • iOS 14.4.2
• Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.164
• No issues found!
The text was updated successfully, but these errors were encountered: