HomeDocumentationAPI Reference
Getting StartedAPI ReferenceDashboardHelp Center
API Reference

Setting Email Requirement

When a user creates a new feature request or adds a comment, they are asked to enter their email. You can use this method to set whether this email is required or not. This method takes a boolean for its first argument (whether the requirement is true or false) and enums for the second argument (for comment or new feature). More than one enum can be passed.

Method

iOS-Swift

FeatureRequests.setEmailFieldRequired(true, for: [.newFeature, .addCommentToFeature])

iOS-ObjC

[IBGFeatureRequests setEmailFieldRequired:YES forAction: IBGActionTypeRequestNewFeature | IBGActionAddCommentToFeature]

Android

FeatureRequests.setEmailFieldRequired(boolean, ActionType.REQUEST_NEW_FEATURE);

R.N.

FeatureRequests.setEmailFieldRequired(true, [Instabug.actionTypes.requestNewFeature]);

Cordova

cordova.plugins.featureRequests.setEmailFieldRequired(
  true,
  [cordova.plugins.featureRequests.actionTypes.requestNewFeature],
  function () {
    console.log('Email requirements set successfully!');
  },
  function (error) {
    console.log('Email requirements were not set - ' + error);
  }
);

Xamarin

//iOS
IBGFeatureRequests.SetEmailFieldRequired(true, IBGAction.RequestNewFeature);

//Android
FeatureRequests.SetEmailFieldRequired(true, Com.Instabug.Featuresrequest.ActionType.RequestNewFeature);

Flutter

FeatureRequests.setEmailFieldRequired(false, [ActionType.requestNewFeature]);

Email Parameters

iOS-Swift

//New Feature
.newFeature
//New Comment
.addCommentToFeature

iOS-ObjC

//New Feature
IBGActionTypeRequestNewFeature
//New Comment
IBGActionAddCommentToFeature

Android

//New Feature
ActionType.REQUEST_NEW_FEATURE 
//New Comment
ActionType.ADD_COMMENT_TO_FEATURE

R.N.

//New Feature
Instabug.actionTypes.requestNewFeature
//New Comment
Instabug.actionTypes.addCommentToFeature

Cordova

//New Feature
cordova.plugins.featureRequests.actionTypes.requestNewFeature
//New Comment
cordova.plugins.featureRequests.actionTypes.addCommentToFeature

Xamarin

//iOS
//New Feature
IBGAction.RequestNewFeature
//New Comment
IBGAction.AddCommenToFeature
  
//Android
//New Feature
Com.Instabug.Featuresrequest.ActionType.RequestNewFeature
//New Comment
Com.Instabug.Featuresrequest.ActionType.AddCommentToFeature

Flutter

//New Feature
ActionType.requestNewFeature
//New Comment
ActionType.addCommentToFeature