FleksySDK / VirtualKeyboardSDK

The simplest, fastest and most reliable way to create a virtual keyboard 💁 . (iOS and Android)
https://fleksy.com
255 stars 6 forks source link

Unable to use swipe typing on Android with default "English US" language #98

Closed limanup closed 3 months ago

limanup commented 3 months ago

Affected Fleksy SDK versions:

Swipe typing is not working for default language "English US", but works for other "English" languages (e.g. "English CA") on Android devices. Tested on Pixel 6 and Pixel 7a devices.

xevifar commented 3 months ago

Hi @limanup , Could you share a bit more insights on this one ? I was trying to reproduce this using the demo project and I'm not able. Thank you

limanup commented 3 months ago

Hi @xevifar, the demo project is still on old Fleksy SDK version (4.0.1), please upgrade the SDK to the versions I mentioned above. The bug seems to only exist on the 3 versions mentioned above.

xevifar commented 3 months ago

Hello @limanup , Could you share your configuration ? We have been trying to reproduce this issue on these three versions and we are not able to reproduce, the swipe typing works on English US.

limanup commented 3 months ago

@xevifar I think I figured out what was wrong. We've always had the automaticDownload = false as our KeyboardConfiguration.LanguageConfiguration, the swipe typing works fine if I change it to true. We have the default en-US file (resourceArchive-en-US.jet) stored in app/assets/encrypted/. Do we need to update this jet file with a more up-to-date version? Just curious what was changed that we now have to enable automaticDownload to get swipe typing for the default en-US language? Thanks!

xevifar commented 3 months ago

Hi @limanup , ahh, good catch!

This might be due to the old .jet for en-US does not support swipe typing for some reason. Could you just copy the last .jet that we have on the example ? That one should work too.

We introduced the automaticDownload to keep the .jet files updated at the end user, so you do not need to worry about sending the improvements on all the languages that we are constantly making.

Thank you for the reporting!

xevifar commented 3 months ago

@limanup , would it be possible for you to attach the .jet file here so we can analyse it and see why it did not work as expected ? Thank you

limanup commented 3 months ago

@xevifar that would be great! Please see attached. Thanks! assets.zip

xevifar commented 3 months ago

@xevifar that would be great! Please see attached. Thanks! assets.zip

Thanks @limanup . We have checked this .jet, and this is quite old for this reason does not support swipe typing anymore. Could you update the local .jet to this one en-US ?

limanup commented 3 months ago

Yep, I just replaced the old one with one from the demo folder. @xevifar thanks for clarifying everything here!