EddyVerbruggen / cordova-plugin-native-keyboard

:musical_keyboard: Add a Slack / WhatsApp - style chat keyboard to your Cordova app!
273 stars 66 forks source link

Incompatible with cordova-plugin-googlemaps on Android #37

Open AwsmOli opened 7 years ago

AwsmOli commented 7 years ago

When using this Plugin together with cordova-plugin-googlemaps the chatbox will be behind the webview on the z-axis.

As discribed here: The googlemaps plugin works by displaying the map behind the app and just adding css to each layer in the webview to make its background transparent - so it seems that it places all then native components behind the webview taking the chatbox with it.

Is there some fix to be done here? or will this be a bug with cordova-plugin-googlemaps

This only happens on Android - IOS works fine

EddyVerbruggen commented 7 years ago

I wasn't able to reproduce this at first attempt. Can you please share a repo reproducing the issue?

AwsmOli commented 7 years ago

There you go: https://github.com/AwsmOli/NativeKeyboardGMapsIssue

Seems to be a XWalk issue, on reproducing it with a new project i saw the problem only after i added https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview

So its an issue when using GoogleMapsPlugin + Corsswalk Plugin + NativeKeyboardPlugin... That Escalated Quickly.

EddyVerbruggen commented 7 years ago

Lol. And thanks!

Just wondering: since Crosswalk is no longer maintained do you think apps will continue using it?

AwsmOli commented 7 years ago

Well the only reason to go for XWalk now is if you target Android 4.X, we just added it to be able to support 4.1 I guess within the year people will stop targeting 4.x and go for 5.x, and then xwalk just adds a lot of bundle size...

We actually stopped using Gmaps and are using leaflet now, so its no longer an issue for us.

if i where you i'd add it to the known bugs and tell people to post here if they would need xwalk support ;)

sam2x commented 6 years ago

Hey, I have exactly the same issue, did you solve this ? The nativekeyboard is loaded but not showed (is there anything similar to z-index at this layer ?)

AwsmOli commented 6 years ago

just remove crosswalk from your project

sam2x commented 6 years ago

That's not a solution... Crosswalk brings a lot of benefits. I just removed the nativekeyboard, thanks.

AwsmOli commented 6 years ago

actually, it is - as crosswalk is not maintained anymore: https://crosswalk-project.org/blog/crosswalk-final-release.html

And most of its Features are just for old browser versions as newer browser versions implemented the crosswalk improvements natively

sam2x commented 6 years ago

android_meta-chart

Crosswalk is mainly important for people having Android 4.4 (KitKat and before). 20% is still huge. Crosswalk will not be needed in next years, or when this share will go down to less than 5%.

I like this project, I wanted to use it, it's just that now either I build two version, or I remove it. Cheers