GetOfflineSurveyDescription and SetOfflineSurveyDescription
The AskMe app has the ability to control the description text that appears for surveys in survey tiles - see the figure below. You can also read from and write to that description using the functions:
GetOfflineSurveyDescription()SetOfflineSurveyDescription(description)Figure 1 - Description text
The rules for this text are:
- The text defaults to the survey description input in Survey Designer.
- HTML formatting is supported. However, hyperlinks are not supported.
- If a respondent data field called “SurveyDescription” exists, the text will take the value of this variable. This allows for respondent-level overrides of the initial value for the field.
- The function
SetOfflineSurveyDescription()can be used to set the text while the survey is being completed.
Refer to the separate Survey Designer documentation for further information on the AskMe app.
GetAdvertisingInfo
Use GetOfflineInfo().GetAdvertisingInfo() function, to access device Advertising information:
-
.AdvertisingIDreturns the device advertisingID where possible. This is a helper function without needing to perform platform specific checks. -
.GAIDreturns the Google Advertising ID (Android only, iOS returnsnull). -
.IFVreturns the Apple Identifer for Vendors (iOS only, Android returnsnull). -
.IFAreturns the Apple Identifer for Advertisers (iOS only, Android returnsnull). -
.IsLimitAdTrackingEnabledreturnstrueif user has enabled option to limit ad tracking (Android only, iOS returnsnull). -
.IsAdvertisingTrackingEnabledreturnstrueif user has enabled option to limit ad tracking (iOS only, Android returnsnull).
Examples of use:
var adId = GetOfflineInfo().GetAdvertisingInfo().AdvertisingID
var gaid = GetOfflineInfo().GetAdvertisingInfo().GAID
var ifv = GetOfflineInfo().GetAdvertisingInfo().IFV
var ifa = GetOfflineInfo().GetAdvertisingInfo().IFA
var isl = GetOfflineInfo().GetAdvertisingInfo().IsLimitAdTrackingEnabled
var isl = GetOfflineInfo().GetAdvertisingInfo().IsAdvertisingTrackingEnabled
notifyNativeApp
This function is available for custom branded AskMe applications.
notifyNativeApp(provider, eventName, customData)