I'm trying to implement Pinpoint Analytics into an existing React Native app through the Amplify SDK. We have an existing user base with our own authN and authZ implementation, so we do not require (and more importantly, can't afford) a Cognito user pool.
On one hand, Pinpoint API does not require any integration with Cognito when recording events, yet the amplify documentation seems to require the auth
plugin when using analytics
, and an auth
param is required when configuring Amplify.
Amplify.configure({
// To get the AWS Credentials, you need to configure
// the Auth module with your Cognito Federated Identity Pool
Auth: {
identityPoolId: 'us-east-1:xxx-xxx-xxx-xxx-xxx',
region: 'us-east-1'
},
Analytics: {
// OPTIONAL - disable Analytics if true
disabled: false,
...
Is there a way of using analytics
through Amplify without generating a user pool? I've tried checking the AWS mobile SDKs but they are clearly deprecated and most documentation points now to Amplify. We could consume the Pinpoint API directly, but that implementation seems a bit redundant.