since ‎15-05-2015
‎10-12-2019
phuo1032
Employee
Re: Context data and variables 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.
2175
Views
2
Likes
0
Answers
Re: Context data and variables 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'
2157
Views
1
Like
0
Answers
Re: Context data and variables 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.
2164
Views
0
Likes
0
Answers