Skip to content

Commit 3273bc2

Browse files
Add ATT Constants
1 parent 887f0be commit 3273bc2

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

js/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ const PromotionActionType = {
6262
Click: 1
6363
}
6464

65+
const ATTAuthStatus = {
66+
NotDetermined: 0,
67+
Restricted: 1,
68+
Denied: 2,
69+
Authorized: 3
70+
};
71+
6572
// ******** Main API ********
6673

6774
const logEvent = (eventName, type = EventType.Other, attributes = null) => {
@@ -80,6 +87,7 @@ const logScreenEvent = (screenName, attributes = null) => {
8087
NativeModules.MParticle.logScreenEvent(screenName, attributes)
8188
}
8289

90+
// Use ATTAuthStatus constants for status
8391
const setATTStatus = (status, timestamp = null) => {
8492
NativeModules.MParticle.setATTStatus(status, timestamp)
8593
}
@@ -600,6 +608,7 @@ const MParticle = {
600608
UserAttributeType,
601609
ProductActionType,
602610
PromotionActionType,
611+
ATTAuthStatus,
603612

604613
Product, // Classes
605614
Impression,

sample/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ target 'MParticleSample' do
1313
#
1414
# (See https://github.com/mparticle/mparticle/apple-sdk for the latest version)
1515
#
16-
pod 'mParticle-Apple-SDK', :path => '../../../../mparticle-apple-sdk'
16+
pod 'mParticle-Apple-SDK', '~> 8'
1717

1818
#
1919
# And, if you want to include kits, you can do so as follows:

0 commit comments

Comments
 (0)