About to give up with IONIC 3 - Simple Native-like chat page not possible

Very nice. Have been watching this issue for a long time too.

Check out the following repo for the full implementation : https://github.com/alexmady/KeyboardTest

Seeing some very strange behaviour with spellcheck option. It does work sometimes randomly and the rest of the time it doesn’t

1 Like

Demo here:

@Alexmady :heart:

<textarea spellcheck="true" autocomplete="true"...

didn’t know these both attributes, sweet :slight_smile:

1 Like

let me know how you get on with spellcheck - for me it is nor working 100% of the time which is quite weird.

currently testing. look like it’s working on iOS but not on Android (or at least on my Samsung Edge)

Update: maybe found something, give me 5min

well still same, autocomplete is not displayed on android. just noticed that the attribute ā€œautocompleteā€ except ā€œon/offā€ not ā€œtrue/falseā€

https://www.w3schools.com/tags/att_input_autocomplete.asp

Final update, the autocomplete is working on my Nexus 5X / Android … well then I’m guessing that the Samsung TouchWiz or whatever they put over Android block the autocomplete

It’s strange, it does work on my S7 Edge :slight_smile: @Alexmady I saw this demo posted by @eakoriakin which looks pretty interesting regarding to elastic ion-inputs:

I think the spellcheck option works fine on android, iOS is the problem again. I think its due to the following issue:

2017-05-05 16:12:26.932712+0100 KeyboardTest[1257:707504] [MobileAssetError:29] 
Unable to copy asset information from https://mesu.apple.com/assets/ 
for asset type com.apple.MobileAsset.TextInput.SpellChecker

Searching but cant find any fix for this, pretty sure its the reason for the spellcheck issues, seems like not an ionic issue but a ios issue.

@Alexmady maybe have you then try adding https://mesu.apple.com/assets/ to your Content-Security-Policy in index.html?

@Alexmady how do you make the youtube screenshot videos?

Plug my iPhone into the USB port of my mac with the lighting cable, the
open QuickTime and choose ā€œnew movie recordingā€. Then on the drop down near
to the record button select the iPhone as the recording input device, then
press record!

By the way… still experiencing the spellcheck issue on iOS devices, is it
just me?!

Are you using UIWebview or WkWebview for IOS? I’ve had a load of problems with chat in WKWebView. But I’m going to try to implement a demo similar to yours. Also have you tried your demo app with ionic-refresher?

@maith123 I am not sure actually, how do I check whether I am using
UIWebview or WkWebview?

What is ion-refresher and how might it help?

I believe the simplest way would be to run cordova plugin list and see if it lists cordova-plugin-wkwebview-engine.

So I ran the command and it’s not listed. What is the anticipated benefit
of adding it in this particular case?

Im not sure about this particular case as I’ll have to try it. But it’ll be much smoother for scrolling and your app generally loads a lot faster. However, I’ve been struggling with creating a streamlined chat app for while now. I’m almost there. I’ll give your code a try within wkwebview and see if it works then share. Also the ion-refresher helps loads more messages so you don’t need to load all your messages as soon as you open your chat view page, aka a load more button but it works by scrolling to the top of the page.

Sounds good. Will also give the wkwebview a whirl.

Have you also had problems with the spellchecker on iOS by the way?