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

Allow passing custom headers for requests #27

Merged
merged 2 commits into from
Jul 21, 2021

Conversation

acoutts
Copy link
Contributor

@acoutts acoutts commented Jul 1, 2021

Required to use platform-specific API keys where you must provide the following headers:

    final headers = <String, String>{
      if (defaultTargetPlatform == TargetPlatform.iOS)
        'x-ios-bundle-identifier': Env().bundleIdentifier, // com.my.app
      if (defaultTargetPlatform == TargetPlatform.android) ...{
        'x-android-package': Env().bundleIdentifier, // com.my.app
        'x-android-cert': Env().ANDROID_SIGNING_KEY_SHA1, // signing key used to build/publish the app
      }
    };

@acoutts
Copy link
Contributor Author

acoutts commented Jul 20, 2021

@Vitor-Bukovitz @bazrafkan @DiegoArredondo @kuroshmondora any chance to review this please? Thank you.

@bazrafkan bazrafkan merged commit a276e1f into bazrafkan:master Jul 21, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants