Kony.ui.toast implementation for iOS

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.

When i invoke a sample Kony application with the example kony.ui.toast it seems to crash on iOS.

It works properly on Android.

I do not see anything in the documentation about it not being supported on iOS, but is that the case?

Thanks

Hi,

The Toast API does not support for iOS platform. We need to implement FFI to show Toast in iOS.

we have created a sample application to achieve your use-case using FFI. Kindly go through the attached sample application for your reference.

We have tested the application on:

Kony Visualizer: 7.3.0

iOS plugins 7.3.0_r38

Xcode 9.2

Please check and let us know if you need any further support.

Thank You

Thanks for the quick reply, I will try out the sample app!

Would you be able to send the code from the FFI for the iOS toast message?

Thanks!

Hi,

Yes we are sending the data from FFI to the toast message.

Thank You

Could you provide the source files for the FFI code? The .h and the .m files, that is. We want to take a look at it.

Thanks again!

Hi,

The FFI code is also present inside the above attached sample application. The native files are present inside the Application\resources\customlibs\lib\iphone\ToastFFI-iPhone.zip\ToastFFI-iPhone

Kindly check and let us know if you need any further support.

Thank You