Open AnalyticsManager.swift and you’ll see some existing code. Open awsconfiguration.json and you’ll see information about the region, the Cognito PoolId, and the AppId used for your app. This file contains all the information needed for the Pinpoint SDK to properly set up its connection to AWS. You should be able to see the file in the Supporting Files group: Ensure that Copy items if needed and Add to targets are both selected. Drag the file to the Supporting Files group. Is it worthwhile to keep investing in your current UI? Would it make sense to give your app a new look and feel? Adding analytics may help you answer these questions, and more.įirst, you’ll need to add the awsconfiguration.json file you downloaded earlier to the project. While this seems fairly straightforward, it may be unclear to you how much users actually interact with each of these features. The Beer Tracker app allows users to record the following details about the beer they consume: You can learn more about getting started with CocoaPods here. Navigate to your project’s directory in Terminal, and run pod install. Note: If you have any build issues, you may need to reinstall the pods. Build and run the app, and take a look around. The app uses CocoaPods and has integrated the Pinpoint SDK into your project. Open the starter project by selecting BeerTracker.xcworkspace. Once you have cloud-enabled your app, you should now see a screen that looks like this: The starter project has integrated the AWS Mobile SDK for you.You’ll use this cloud configuration file in your Xcode project. This will add AWS cloud services to your app. Select iOS as the platform and then click Add.Tick the Allow AWS Mobile Hub to administer resources on my behalf box. You’ll arrive at the following page:įollow the steps below to cloud-enable your Beer Tracker app with AWS Mobile Hub service: Once you have an active AWS account, head to the AWS Console.Ĭlick on the Services dropdown. Your first task is to cloud-enable your app so it can interact with AWS services. For this tutorial, you’ll add analytics to understand what users are actually doing when they are using your app. The app lets users keep track of and rate their favorite beers. This project builds upon the Beer Tracker app from a previous tutorial. Use the Download Materials button at the top or bottom of this tutorial to download the starter project. You will not get charged as long as you are within the free daily allotment of 100,000,000 analytics events. You will also need a credit card to set up your account as a safeguard. If you don’t have one yet, you can get started with an AWS account here simply look for the Create A Free Account link. You’ll need to have an AWS account for this tutorial. If you’re curious about the general ins and outs of mobile analytics, you can read through the precursor to this tutorial here to get caught up: Getting Started with Mobile Analytics This tutorial will help you get started with AWS Pinpoint app analytics for iOS. If you’re not using an analytics tool or find your current tool lacking, you should consider introducing analytics into your development practices as soon as possible.Īmazon’s previously separate AWS mobile analytics tool has since been rolled into Amazon Pinpoint. Knowing how long a user stays on a screen, which UI/UX experiments work best, or what users like to spend money on can help you make more informed decisions to improve your apps. Most developers will agree that mobile app analytics information can be invaluable.
0 Comments
Leave a Reply. |