amplitude / Amplitude-iOS

Native iOS/tvOS/macOS SDK
MIT License
301 stars 191 forks source link

feat: add default events #455

Closed liuyang1520 closed 1 year ago

liuyang1520 commented 1 year ago

Summary

This PR adds the default events:

For more details, refer to doc.

Updates on the public interface:

Example:

Amplitude.instance().defaultTracking = AMPDefaultTrackingOptions.initWithAllEnabled();
Amplitude.instance().initializeApiKey("xxx", userId: "ios-objc-sample-user")
Amplitude.instance().continueUserActivity(activity: userActivity)
Amplitude *client = [Amplitude instanceWithName:@"xxx"];
client.defaultTracking.deepLinks = YES;
[client initializeApiKey:@"default_tracking"];
[client continueUserActivity:userActivity];

For more options setting the defaultTracking, check: https://github.com/amplitude/Amplitude-iOS/pull/455/files#diff-b12cbff1563d01315b12fe56142072bf3dd6e0f3964d10a48c815ae50e46e1bc.

Checklist

kevinpagtakhan commented 1 year ago

@liuyang1520 can you also share the interface updates here? thank you!

liuyang1520 commented 1 year ago

@liuyang1520 can you also share the interface updates here? thank you!

Good call, updated in desc, thanks for reviewing!

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 8.17.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: