parse-community / Parse-Swift

The Swift SDK for Parse Platform (iOS, macOS, watchOS, tvOS, Linux, Android, Windows)
https://parseplatform.org
MIT License
308 stars 69 forks source link

Parse Analytics - Track App Opened #436

Open davidhakki opened 1 year ago

davidhakki commented 1 year ago

New Issue Checklist

Issue Description

Xcode shows "Ambiguous use of 'trackAppOpened' error when using ParseAnalytics.trackAppOpened as shown in Playgrounds, I have not been able to get it to work no matter what.

Steps to reproduce

In AppDelegate or anywhere enter the following code:

ParseAnalytics.trackAppOpened { result in
            switch result {
            case .success:
                print("Saved analytics for app opened.")
            case .failure(let error):
                print(error)
            }
        }

Actual Outcome

"Ambiguous use of 'trackAppOpened'" error and build will fail

Expected Outcome

For it to not get an error and not fail

Environment

Client

Server

Database

Logs

parse-github-assistant[bot] commented 1 year ago

Thanks for opening this issue!