This question already has an answer here:
I am using an end-to-end encrypted messenger on my smartphone. However, today I asked myself if the content of the messages is really secure because of the keyboard on my Android device.
As you know, the keyboard makes suggestions for words and also saves some previously written words.
So my question is if Google has access to the words I type on my keyboard or if this suggestion-system is offline-only?