DevCrew-io / camerakit-flutter

An open-source SDK package for Flutter that provides developers with seamless integration and access to Snapchat's CameraKit features within their Flutter applications.
https://pub.dev/packages/camerakit_flutter
MIT License
14 stars 4 forks source link

CameraKit: Invalid Api Token #39

Closed fahmad480 closed 2 weeks ago

fahmad480 commented 2 weeks ago

it's work fine on android, run it on VSCode, but for iOS when open camera kit or lens list show "CameraKit: Invalid Api Token", are there any additional variables in info.plist?

najamsaqib-devcreew commented 2 weeks ago

Hi @fahmad480,

It looks like you didn't set the configuration before using it. You need to set the configuration before using the camera kit as we did in the example project.

@override void initState() { super.initState(); _cameraKitFlutterImpl.setCredentials(apiToken: Constants.cameraKitApiToken); }

Or Follow the documentation How to Set Configuration

fahmad480 commented 2 weeks ago

My bad, i use example too, but i forget to add that on my new scene. Thanks, ⭐️ for this repo