amplify-swift/AmplifyPlugins/Analytics/AWSPinpointAnalyticsPluginI...
Sebastian Villena 08d7313870
chore: Fixing SwiftLint warnings (#2732)
* chore: Fixing SwiftLint warnings in Amplify project

* chore: Fixing SwiftLint warnings in APICategoryPlugin  project

* chore: Fixing SwiftLint warnings in AnalyticsCategoryPlugin project

* chore: Fixing SwiftLint warnings in AWSCognitoAuthPlugin project

* chore: Fixing SwiftLint warnings in DataStoreCategoryPlugin project

* chore: Fixing SwiftLint warnings in PredictionsCategoryPlugin project

* chore: Fixing SwiftLint warnings in StoragePlugin project
2023-02-08 15:06:41 -05:00
..
AWSPinpointAnalyticsPluginIntegrationTests.swift chore: Fixing SwiftLint warnings (#2732) 2023-02-08 15:06:41 -05:00
AWSPinpointAnalyticsPluginTestBase.swift chore: Remove copyright year from .swift, .h, .plist files (#1008) 2021-01-06 11:44:40 -08:00
Info.plist feat(Core): bootstrap Auth configuration before other categories, and fixed analytics integration tests (#475) 2020-05-22 11:10:12 -07:00
README.md chore: Update integration tests (#1691) 2022-03-29 10:20:07 -07:00

README.md

Analytics Integration Tests

The following steps demonstrate how to set up Analytics. Auth category is also required for signing with AWS Pinpoint service and requesting with IAM credentials to allow unauthenticated and authenticated access.

Set-up

  1. amplify init

  2. amplify add analytics

? Select an Analytics provider: Amazon Pinpoint`
? Provide your pinpoint resource name `yourPinpointResourceName`
? Apps need autorization to send analytics events. Do you want to allow guests and unauthenticated users to send analytics events? (we recommend you allow this when getting started) `Yes`
  1. amplify push

  2. Copy amplifyconfiguration.json as AWSPinpointAnalyticsPluginIntegrationTests-amplifyconfiguration.json inside ~/.aws-amplify/amplify-ios/testconfiguration/

cp amplifyconfiguration.json ~/.aws-amplify/amplify-ios/testconfiguration/AWSPinpointAnalyticsPluginIntegrationTests-amplifyconfiguration.json
  1. You can now run all of the integration tests.

  2. You can run amplify console analytics to check what happens at the backend.