fix(core): Set userAgent when using AmplifyOutputs to configure#3215
Conversation
|
https://github.com/aws-amplify/amplify-flutter/blob/1532f8419e0765ef290ecec484ea7c2ec4af5702/packages/amplify_datastore/android/src/main/kotlin/com/amazonaws/amplify/amplify_datastore/AmplifyDataStorePlugin.kt#L950 this will cause issues with this PR This is because flutter first calls As a workaround I removed the exception that's thrown if the user agent is configured multiple times, instead just silently failing on subsequent configures. This preserves the existing Flutter behaviour and allows the user agent to be set from |
0af117f to
ad15bff
Compare
Issue #, if available:
Description of changes:
The user agent is now configured when Amplify is using a Gen2 config.
How did you test these changes?
Documentation update required?
General Checklist
fix(storage): message,feat(auth): message,chore(all): message)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.