We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 004b596 commit 3b44278Copy full SHA for 3b44278
packages/plugins/plugin-advertising-id/src/AdvertisingIdPlugin.ts
@@ -6,10 +6,16 @@ import {
6
getNativeModule,
7
} from '@segment/analytics-react-native';
8
9
+import { Platform } from 'react-native';
10
+
11
export class AdvertisingIdPlugin extends Plugin {
12
type = PluginType.enrichment;
13
14
configure(analytics: SegmentClient): void {
15
+ if (Platform.OS !== 'android') {
16
+ return;
17
+ }
18
19
this.analytics = analytics;
20
getNativeModule('AnalyticsReactNativePluginAdvertisingId')
21
?.getAdvertisingId()
0 commit comments