setSurveyedDefault method

  1. @override
dynamic setSurveyedDefault(
  1. bool surveyedDefault
)
override

iOS relevant only: Right after a vote or dismiss we are setting a NSUserDefault that lasts for 90 days and indicates that end user was already surveyed on this device. We are doing this to lower the requests amount to our eligibility server. If your survey throttle is different than 90 days and/or you don’t want to set the surveyed “cookie” you can set this option surveyedDefault to false.

Implementation

@override
setSurveyedDefault(bool surveyedDefault) {
  methodChannel.invokeMethod('setSurveyedDefault', {
    'surveyedDefault': surveyedDefault,
  });
}