Skip to content
This repository was archived by the owner on Apr 2, 2018. It is now read-only.

Commit 2ad92c9

Browse files
committed
chore(): improve show() warning on iOS
1 parent fc3483e commit 2ad92c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

www/ios/keyboard.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ Keyboard.close = function() {
1717
};
1818

1919
Keyboard.show = function() {
20-
exec(null, null, "Keyboard", "show", []);
20+
console.warn('Showing keyboard not supported in iOS due to platform limitations.')
21+
console.warn('Instead, use input.focus(), and ensure that you have the following setting in your config.xml: \n');
22+
console.warn(' <preference name="KeyboardDisplayRequiresUserAction" value="false"/>\n');
23+
// exec(null, null, "Keyboard", "show", []);
2124
};
2225

2326
Keyboard.disableScroll = function(disable) {

0 commit comments

Comments
 (0)