Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update keyboard plugin #10

Merged
merged 5 commits into from
Aug 27, 2018

Conversation

kbullaughey
Copy link
Contributor

Upgrading to the new cordova-plugin-ionic-keyboard plugin turned out to be more involved than I expected. There are two main differences I noticed:

  1. The location of the Keyboard plugin moved from window.cordova.plugins.Keyboard to window.Keyboard. We now check both places.
  2. The event names have changed from things like native.keyboardshow to keyboardDidShow. And there are new events, i.e., DidShow and WillShow varieties.

A problem with this PR at the moment is that the event name changes are not backwards compatible and there's not a one-step upgrade path. You would need to remember to remove the old cordova plugin and add the new one. I fixed the blueprint so that for new projects it installs the correct one, but I'm not sure what the appropriate behavior is for upgrades. Is there a graceful way to handle this?

@ddoria921
Copy link

@kbullaughey This issue goes lists out some differences in the upgrade ionic-team/ionic-plugin-keyboard#305 (comment)

@alexblom
Copy link
Member

Thanks! This slipped through but I'll get it in next week.

@amrutha-rajiv
Copy link

Hi, we're waiting on these changes to use the new plugin in our project. When is the approximate time when this change will be merged in?

@alexblom alexblom merged commit be9fb54 into isleofcode:master Aug 27, 2018
@alexblom
Copy link
Member

All I can do is say sorry this got dropped! All on me, thank you for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants