cancel
Showing results for 
Search instead for 
Did you mean: 

where can I remove the alert message "Passcode policy is not enabled" ?

axeldion
Explorer
0 Kudos
292

Hi,

I"m using the SAP Cloud Platform for android SDK. We don't want a password on the application. We disabled passcode policy inside mobile services. Now everytime the app gets opened for the first time the user is getting following alert dialog:

I'm unable to find this dialog inside my project code. So this must be generated within the SDK Library. How can I remove this message so my end users are not seeing this message?

Accepted Solutions (1)

Accepted Solutions (1)

qiang_zhang3
Product and Topic Expert
Product and Topic Expert

Hi,

From the screenshot, I guess you're using 'flowsv2' component of Android SDK. If so, since we're thinking it's essential to protect the app with the passcode policy, there will be this 'information' showing up. But it's not necessary to be a dialog, it can also be a Toast. To do this, when starting the onboarding flow, customized FlowOption can be provided like this:

//Create a class extends from 'FlowOptions'
class MyFlowOption: FlowOptions() {
    override fun infoMessageOption(): InfoMessageOption = InfoMessageOption.TOAST
}

Then when starting the flow:

start(
    this,
    flowContext = FlowContext(
        appConfig = AppConfig.Builder().applicationId("your_app_id").build(),
        flowActionHandler = MyFlowActionHandler(),
        flowStateListener = MyFlowStateListener(application),
        flowOptions = MyFlowOption()
    )
)

Then that dialog would be shown as a Toast. Will discuss this more see if we should provide another option like 'NONE', then not shown such messages at all.

Thanks

Qiang

qiang_zhang3
Product and Topic Expert
Product and Topic Expert

And discussed with the team, we're going to add 'NONE' option in the next release. Thanks

Answers (1)

Answers (1)

axeldion
Explorer
0 Kudos

Thank you! Any idea when the next release will be available ?