Search code examples
ibm-mobilefirst

App authenticity is giving a different error


I am trying to implement app authenticity on android native app. It works fine I am able to get fail on app authenticity failure .. But the problem is I am getting an error saying .

Unexpected errorCode occurred. Please try again.

But what I am expecting is. I was seeing this error before yesterday, But from yesterday I am seeing "Unexpected errorCode occurred. Please try again.". I took an update can that be a cause.

app authenticity security check failed

And I am also seeing below error, even before fail is being called.

07-27 05:30:02.392 15664-15664/com.ds I/MultiDex: VM has multidex support, MultiDex support library is disabled.
07-27 05:30:02.392 15664-15664/com.ds I/MultiDex: install
07-27 05:30:02.392 15664-15664/com.ds I/MultiDex: VM has multidex support, MultiDex support library is disabled.
07-27 05:30:02.448 15664-15686/com.ds W/com.worklight.common.Logger: com.worklight.common.Logger.setContext(Context) must be called to fully enable debug log capture. Currently, the 'capture' flag is set but the 'context' field is not. This warning will only be printed once.
07-27 05:30:03.493 15664-15670/com.ds W/art: Suspending all threads took: 149.185ms


Solution

    1. I was checking the value(App authenticity failure message) by calling wlFailResponse.getErrorMsg() which was giving me "Unexpected errorCode occurred. Please try again."
    2. But the actual value(App authenticity failure message) that i am looking for was in wlFailResponse.getResponseJSON().getString("reason").