Skip to content

Commit

Permalink
Merge pull request #98 from SurveyMonkey/MOBILE-12718
Browse files Browse the repository at this point in the history
Follow up of bugs after ver 3.0.4
  • Loading branch information
winimeow authored Feb 27, 2024
2 parents 7733bca + 97cc674 commit 7fadd88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ To kick off the SurveyMonkey Feedback SDK Intercept process, call the following
```java
sdkInstance.onStart(this, [SAMPLE_APP_NAME], [SAMPLE_REQUEST_CODE], [SAMPLE_SURVEY_HASH]);
```
This will check to see if the user should be prompted to take your survey (i.e. if (timeSinceLastSurveyPrompt > maxTimeIntervalBetweenSurveyPrompts)).
This will initialise the SDK and check to see if the user should be prompted to take your survey (i.e. if (timeSinceLastSurveyPrompt > maxTimeIntervalBetweenSurveyPrompts)).

If you are on Advantage Plan or higher and want to include custom variables with each survey response, create a flat JSONObject with your custom variables and use:
```java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ public class SimpleActivity extends AppCompatActivity {
public static final String SAMPLE_APP = "Sample App";
public static final String SURVEY_HASH = "LBQK27G";
// Initialize the SurveyMonkey SDK like so
private SurveyMonkey s = new SurveyMonkey();
private final SurveyMonkey s = new SurveyMonkey();

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
//Here we're setting up the SurveyMonkey Intercept Dialog -- the user will be prompted to take the survey 3 days after app install.
//Here we're initialising the SDK and setting up the SurveyMonkey Intercept Dialog -- the user will be prompted to take the survey 3 days after app install.
// Once prompted, the user will be reminded to take the survey again in 3 weeks if they decline or 3 months if they consent to take the survey.
// The onStart method can be overloaded so that you can supply your own prompts and intervals -- for more information, see our documentation on Github.
s.onStart(this, SAMPLE_APP, SM_REQUEST_CODE, SURVEY_HASH);
Expand Down

0 comments on commit 7fadd88

Please sign in to comment.