This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal. |
I'm trying to connect Mobile Fabric using Android Native. But the Kony Mobile Fabric init is not getting initialized. It is not executing initSuccesscallback and initfailurecallback and not even returning any error KonyFabric initialization as well. I couldn't proceed
I've taken the code from Fabric project under android tab
try {
konyClient = new KonyClient();
konyClient.initAsync(context, appKey, appSecret, serviceURL,
new InitCallback() {
@Override
public void onSuccess(JSONObject result) {
//Init Success
try {
getFoxNews();
}catch(KonyException konyEx){
// Toast.makeText(this, "Not Working" + konyEx.getErrorDetails(), Toast.LENGTH_SHORT).show();
}
Log.d("Init","Success");
}
@Override
public void onFailure(KonyException exception) {
//Init Failure
Toast.makeText(getApplicationContext(), exception.getErrorDetails(), Toast.LENGTH_SHORT).show();
Log.d("Init","failure");
}
});
}
catch (KonyException exception) {
Log.d("Init","Exception");
Toast.makeText(getApplicationContext(), exception.getMFCode(), Toast.LENGTH_SHORT).show();
}