Unhandled Exception: Please call init before getting identity provider

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.

Hi all,

After following the first Hike (which shows how to make a login with Microsoft Active Directory) and try to login to my mobile app I get the following error message: Unhandled Exception: Please call init before getting identity provider. I followed the tutorial (Hike) word for word and I can't seem to find out why is this error occurring.

Thanks,

@Pvolo Fields​ can you check this post?

Hi guys . Is there any updates on the issue I posted. I would really like to solve this problem ASAP!

@Pvolo Fields​ @Jvne Dickens​ @Adwivn Russell​

Hi @Joshuv Stewvwt​ ,

We have created sample app based on the Hike and it was perfectly working fine.

Can you please confirm these;

1) Are you able to see the Mobile Fabric App name created beside the Kony Fabric.

2) Have you connected to any Kony Cloud environment.

Thanks,

Hello,

I can confirm, both of the points you mentioned and still could not run the app.

**Image removed for security reasons**

The error persisted. I solved my problem by manually initializing the kony.sdk and calling client.init as shown in this post :

https://basecamp.kony.com/s/question/0D56A00000TKwrmSAD/install-last-update-kony-73-later-you-do-not-want-to-connect-this-error-errorsinitfailure-please-call-init-before-invoking-this-service

This solution did not work for me when I first tried it, but now it seems to solve my problem. Isn't kony.sdk module supposed to be loaded automatically without the need to initialize it manually? If not it should be mentioned in the Hikes.

Thanks,

Hello

I have also encounter the same problem . This will happen when your cloud Account have no runtime environment setup

Check the console you will be seeing the below message

There are no runtime environments found. Services for this application will not work as expected".

Solution to the issue : Go to your cloud account under Environments you should have the Kony Fabric runtime as attached in the screenshot

I found another nuance to this. The "connection" between the Visualizer app and the Kony Fabric app is not "100% sticky". At least that is what I found using Visualizer 8.4.9. In other words, between "sessions" (in either Visualizer or Fabric) the "connection" between the Visualizer app and the Fabric would sometimes disappear. The resolution for me, was to simply "re-associate" the Visualizer app with the Fabric app. Not difficult but not obvious that this was the problem.

I am facing the same issue, my app name is shown in Kony Fabric. but still there is no change. Unable to move forward with this issue

@Pvolo Fields​ can you please take a look at this query. Thanks!

I am also experiencing this issue on iPhone 7 Ios 13.1 Visualizer V9 Fix pack 5

PS This 'Unhandled Exception' occurs when pressing the 'Login' button in the example App 'RecipientsMobile' [ loaded 12 hours ago ]