The Zipped project contains workspace with demo app and package.
- AppAnalyticsUsage(Demo App)
- AppAnalytics(Package)
- AppAnalyticsUsage.xcworkspace
- README.md
- start sessoin
- end session
- log event
import AppAnalytics
- add
AppAnalytics.shared.startSession()
where ever you want to use this service basically in appdelegate/session during launch of app - user end service
AppAnalytics.shared.endSession()
during dismissal of app - log event where you want to log with public Event and Properties classes to provide your desired events using
AppAnalytics.shared.log(event: Event, properties: Properties)
This app has used the dummy baseurl and endpoint with mock decoder for response.
This app has enabled user session and event logged locally with session start and event log and delete of log with end session locally. For local storage have used UserDefaults as of now. Every event are pushed to server using urlsession network