I'm trying to build and run this Bluemix sample app:
BMS samples: helloTodoAdvanced
I'm following the instructions in the project's README.md verbatim. Specifically:
Clean checkout of the bms-samples-hellotodo-advanced project from Github.
Created a new Bluemix "MobileFirst Starter" boilerplace app.
Verified the basic functionality from the Bluemix console and the Web UI.
Created a new Facebook app ID, using the package and class in the sample app.
Configured BlueMix Mobile Client Access (MCA) to use my Facebook App ID.
Updated the NodeJS server.js app per the project instructions.
Modified the Android app source with the Facebook App ID, Bluemix route and Bluemix app guid.
I'm running on a Genymotion emulator: a Samsung Galaxy Sr/Android API 18
Here is the Android Studio logcat from an attempted run:
04-04 17:19:58.859 1276-1298/com.ibm.hellotodoadvanced E/MainActivity: Failed to authenticate against MCA: Response: {"error":"unauthorized_client","error_description":"Unknown client"} 04-04 17:19:58.859 1276-1298/com.ibm.hellotodoadvanced E/MainActivity: Failed to authenticate against MCA, unknown reason 04-04 17:19:58.863 1276-1291/com.ibm.hellotodoadvanced E/mfpsdk.AuthorizationProcessManager: AuthorizationProcessManager.handleAuthorizationFailure in AuthorizationProcessManager.java:426 :: authorization process failed
<= The program loads and runs ... but authentication fails with this error!
Q: Any suggestions as to how I can debug the "Failed to authenticate against MCA" errors?
Q: Are you supposed to log on to Facebook directly from Android?
My understanding is "No" - Bluemix authenticates the app directly with Facebook; the Android user is irrelevant.
Q: Are there any other "gotcha's" needed to get MCA authentication working with Bluemix for Android?