Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

phuo1032
Community profile phuo1032 Employee
Job title here
Location here
6 BADGES
Employee

Employee

Learn more
Joined the community 15-05-2015 2:44:35 PM
Offline
Top badges earned by phuo1032
Customize the badges you want to showcase on your profile
Re: Context data and variables
Avatar
Give Back 3
Employee
phuo1032
Employee

Likes

5 likes

Total Posts

3 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 1
View profile
phuo1032
- Adobe Experience Platform SDKs
1. It depends on where you are inserting this line of code in the application. The contextData variable may be a field of another object (s or p). The developers should recognize whether they need it or not.2. Yes, I used 'login_status' in my example to be consistent with the String used in the setObject call from Objective-C. In actual implementation it is likely that it is a value of current login status, for this particular example.

Views

2.4K

Likes

2

Replies

0
Re: Context data and variables
Avatar
Give Back 3
Employee
phuo1032
Employee

Likes

5 likes

Total Posts

3 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 1
View profile
phuo1032
- Adobe Experience Platform SDKs
Hi jha0024, the example above you provided above would be the correct syntax. For example: instead of doing[contextData setObject:@"login_status" forKey:@"mobile.login_status"];you may do contextData['mobile.login_status'] = 'login_status'

Views

2.4K

Likes

2

Replies

0
Re: Context data and variables
Avatar
Give Back 3
Employee
phuo1032
Employee

Likes

5 likes

Total Posts

3 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Boost 5
Boost 3
Boost 1
View profile
phuo1032
- Adobe Experience Platform SDKs
Hi jha0024​ - May I ask if you are asking about the Android or iOS app implementation? If it is iOS, is your application written in Swift or Objective-C.[contextData setObject] is Objective-C syntax. The example you provided: s.contextData[‘mobile.login_status’] = ‘Logged In’, looks like a Swift syntax.

Views

2.4K

Like

1

Replies

0