Skip to content

Commit

Permalink
feat: enable to call setAdvertisingIdForDeviceId in ios (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhao900914 authored Jun 2, 2022
1 parent 183a6b0 commit 6711d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/AmplitudeReactNative.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ReactNative: NSObject {
func setAdvertisingIdForDeviceId(_ instanceName: String,
resolver resolve: RCTPromiseResolveBlock,
rejecter reject: RCTPromiseRejectBlock) -> Void {
resolve(false)
resolve(Amplitude.instance(withName: instanceName).useAdvertisingIdForDeviceId())
}

@objc
Expand Down

0 comments on commit 6711d84

Please sign in to comment.