iOS uikeyboardnumberpad with voice input
Does iOS voice input option is available with "Number Keypad" in the applications as I observed that "Voice input" option disappears when we select number keypad for textfield or search bar.
Please help!
See also questions close to this topic
-
Breakpoint not getting hit, nor the Message extension is getting attached in iOS
I am writing a SMS filter extension for iOS. I created a
MessageFilterExtension
. The extension code isimport IdentityLookup final class MessageFilterExtension: ILMessageFilterExtension { var words: [String] = ["deal", "spam", "offer"] override init() { print("message filter init") } } extension MessageFilterExtension: ILMessageFilterQueryHandling { func handle(_ queryRequest: ILMessageFilterQueryRequest, context: ILMessageFilterExtensionContext, completion: @escaping (ILMessageFilterQueryResponse) -> Void) { //... }
I had set breakpoints in the container app did launch, in the appex
handle
and other methods. The appex does not call remote services. Then I choose the appex target, clicked run, in the attach list chose the container app as the likely target which was already mentioned. It then shows "Waiting to attach". Then I choose container app and hit run, it build and runs, and hits the breakpoint. However, the appex is not getting attached or launched. I then send some SMS texts, but it does not filter. No print statements in Xcode or Console.app. I have enabled message filter and set the Container app to filter SMS.I am testing this on iPhone 7 Plus and iOS 12.1.4. Tested on previous release of iOS, but still did not work.
Methods I tried so far:
How To Debug iOS Appex
Messages App Extension won't hit breakpointsI do not have the contact name saved. (With some combination, it worked once, but I now I am not able to debug). How do debug message filter extensions?
-
There is no payment productid in an array of purchase receipts in the app
I'm using to use Unity iap. Current Apple In App Payment Restore I'm testing
The productid and receipt are well inserted in the arrangement of the purchase receipt in the app, but over time, the payment receipt disappears and only a few non-applicable receipts are displayed.
{ "receipt":{ "receipt_type":"ProductionSandbox", "adam_id":0, "app_item_id":0, "bundle_id":"", "application_version":"0", "download_id":0, "version_external_identifier":0, "receipt_creation_date":"2019-02-14 12:53:47 Etc/GMT", "receipt_creation_date_ms":"1550148827000", "receipt_creation_date_pst":"2019-02-14 04:53:47 America/Los_Angeles", "request_date":"2019-02-18 14:20:29 Etc/GMT", "request_date_ms":"1550499629809", "request_date_pst":"2019-02-18 06:20:29 America/Los_Angeles", "original_purchase_date":"2013-08-01 07:00:00 Etc/GMT", "original_purchase_date_ms":"1375340400000", "original_purchase_date_pst":"2013-08-01 00:00:00 America/Los_Angeles", "original_application_version":"1.0", "in_app":[ { "quantity":"1", "product_id":"puzzle18", "transaction_id":"", "original_transaction_id":"", "purchase_date":"2019-02-14 12:08:20 Etc/GMT", "purchase_date_ms":"1550146100000", "purchase_date_pst":"2019-02-14 04:08:20 America/Los_Angeles", "original_purchase_date":"2019-02-14 12:08:20 Etc/GMT", "original_purchase_date_ms":"1550146100000", "original_purchase_date_pst":"2019-02-14 04:08:20 America/Los_Angeles", "is_trial_period":"false" } ] }, "status":0, "environment":"Sandbox" }
The product that I restored to buy is fuzzle11 but does not exist in the receipt.
-
Old message is not removing in iPhone notification try
I am using push plugin in ionic 3 app, everything is working fine but from my server end we are sending one message at a time and im receiving message to iPhone, but old message should overwrite with new message or once we receive new message then old message is clear automatically.. I'm not able to find anything related to this, please anybody help me to solve this.
const options: PushOptions = { android: {}, ios: { alert: 'true', badge: true, sound: 'false' }, windows: {}, browser: { pushServiceURL: 'http://push.api.phonegap.com/v1/push' } }; const pushObject: PushObject = this.push.init(options); pushObject.on('notification').subscribe((notification: any) => console.log('Received a notification', notification));
-
How to automatically load data
Hi I want to automatically load the data after the action. For that one I am using the pull to Refresh controller. When the user is pull on that time only it is loading I want automatically loading. I write the following code
@IBOutlet var scrool: UIScrollView! var refreshControl = UIRefreshControl() override func viewDidLoad() { super.viewDidLoad() // Add refresh control for the Home page scroll view. self.refreshControl.tintColor = UIColor.appcolor self.refreshControl.attributedTitle = NSAttributedString(string: "Pull to refresh") self.refreshControl.addTarget(self, action: #selector(refresh(sender:)), for: UIControl.Event.valueChanged) self.scrool.isScrollEnabled = true self.scrool.alwaysBounceVertical = true scrool.addSubview(refreshControl) } @objc func refresh(sender:AnyObject) { // Code to refresh table view self.getHomePageApi() refreshControl.endRefreshing() }
-
Not able to show the alert if user denied the camera access
If user dennied the camera access, i am showing one alert with cancel and setting button to show it. But the code is not working.
@IBAction func ProfileImageButton(_ sender: UIButton) { print("profile image Button is pressed") let imagePickerController = UIImagePickerController() imagePickerController.delegate = self profileimgbool = true let actionSheet = UIAlertController(title: "Photo Source", message: "choose a Source", preferredStyle: .actionSheet) actionSheet.addAction(UIAlertAction(title: "Camera", style: .default, handler: {(action:UIAlertAction) in imagePickerController.sourceType = .camera self.present(imagePickerController, animated: true, completion: nil) })) actionSheet.addAction(UIAlertAction(title: "Photo Library", style: .default, handler: {(action:UIAlertAction) in imagePickerController.sourceType = .photoLibrary self.present(imagePickerController, animated: true, completion: nil)})) actionSheet.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: nil)) self.present(actionSheet, animated: true, completion: nil) } func checkCameraPermission() { let cameraMediaType = AVMediaType.video AVCaptureDevice.requestAccess(for: cameraMediaType) { granted in if granted { //Do operation print("Granted access for camera") // self.setCamera() } else { self.noCameraFound() print("Denied access for camera ") } } } func noCameraFound(){ let alert = UIAlertController(title: "CallDoc", message: "Please allow camera access in phone settings", preferredStyle: UIAlertControllerStyle.alert) alert.addAction(UIAlertAction(title: "Back", style: UIAlertActionStyle.cancel, handler: {(action:UIAlertAction) in })); alert.addAction(UIAlertAction(title: "Open setting", style: UIAlertActionStyle.default, handler: {(action:UIAlertAction) in UIApplication.shared.open(NSURL(string:UIApplicationOpenSettingsURLString)! as URL, options: [:], completionHandler: nil) })); self.present(alert, animated: true, completion: nil) }
in my above code my method was
checkCameraPermission
where i will call this to show alert. I needs to show when user click camera, and when if user denied that black screen will show instead of camera. There i need to show that alert pop up.Where i can call this
checkCameraPermission
method to show my popup ?.Any idea ?
-
TrueDepthCamera depth data transfer
Truedepth camera capturing depthdata, how can it be send as pointcloud values over internet to the other app where it can be rendered?
-
'keyboardDidHide' returns null instead of an object
I'm currently working on a
react-native
app and I'm trying to animate the layout of the login-screen when a keyboard is shown.To track the state of the keyboard, I'm using this code:
componentDidMount() { this.keyboardDidShowSub = Keyboard.addListener('keyboardDidShow', (event) => console.log(event)); this.keyboardDidHideSub = Keyboard.addListener('keyboardDidHide', (event) => console.log(event)); }
keyboardDidShow
is working and returning:Object { "endCoordinates": Object { "height": 286, "screenX": 0, "screenY": 354, "width": 360, }, }
However,
keyboardDidHide
is NOT working and returningnull
.What could cause my problem? Thank you so much for your help!!
-
Keyboard.IsKeyDown() in .NET returning incorrect value?
I set the event for my
RichTextBox
in WPF:_window._richTextBox.PreviewKeyDown += _richTextBox_PreviewKeyDown;
Then in
_richTextBox_PreviewKeyDown
I get information about currently pressed keys on keyboard:bool isAltPressed = Keyboard.IsKeyDown(Key.LeftAlt) || Keyboard.IsKeyDown(Key.RightAlt); bool isCtrlPressed = Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl); bool isShiftPressed = Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift);
Then I press only "RightAlt" key on keyboard.
When first time the breakpoint in
_richTextBox_PreviewKeyDown
is hitisAltPressed = false
isCtrlPressed = true
(because
Keyboard.IsKeyDown(Key.LeftCtrl)
returnstrue
) andisShiftPressed = false
.Only after the second hit of the breakpoint
`isAltPressed = false`
Can someone explain to me such strange behavior? Is it somehow possible to check the 'real' pressed keys on the keyboard? Finally when I press Right Alt on keyboard
Keyboard.IsKeyDown(Key.LeftCtrl) = true
which is misleading. -
Show enter key in keyboard when there are 2 edittext
I have two edittext both with textMultiline as the inputtype. So when the focus is on both the edittext, the 'Next' key is shown in the keyboard. I want 'Enter' key to be shown for my 2nd editext.
How can this be achieved?
-
How do I disable / remove website keyboard hotkey on imgur.com? Specifically, the upload accent / tilde (`) command
I thought I found a tampermonkey script but it just doesn't work. Do you have any wisdom?
https://greasyfork.org/en/scripts/31704-imgur-remove-key-listener
How do I disable website shortcut keyboard hotkeys? I use Push to talk discord and the key interferes with my browsing experience.
I search on google for queries like "unbind website hotkeys -browser" and "script disable remove website keyboard hotkey" and "disable imgur hotkey" but no results on first 20 links.
// ==UserScript== // @name Imgur remove key listener // @namespace xxx // @description Removes the key shortcuts on imgur // @include *://imgur.com/* // @version 1 // @grant none // @locale en // ==/UserScript== $(document).unbind('keydown').unbind('keyup');
When I press tilde / accent key on keyboard an upload dialogue should not appear on imgur website.
-
Escape key should not open dropdown in Bootstrap 4
Escape key should not open dropdown in bootstrap 4.
I expect the output of pressing Esc key to be "Do Nothing", But the actual output is while pressing Esc key dropdown open and close.
<!-- Add dropdown needs inline-block --> <div class="dropdown" style="display: inline-block" (keyup)="onEscUp($event)"> <!-- btn and btn-secondary adds border to the button, and the btn-secondary changes its color to gray --> <!-- Button size is independent from its class --> <button [id]="'bsdropdown-button-' +text" type="button" class="dropdown-toggle flexColumnContainer" data-toggle="dropdown" [disabled]="disabled" [ngClass]="buttonClass" [style.width]="width" [style.height]="height"> <div class="centerVertical"> <span *ngIf="charIcon" class="char-icon mr-2">{{charIcon}}</span> <span *ngIf="text" class="flexColumnFill" style="margin-right: 8px">{{text}}</span> <span *ngIf="!isChevronIconNotVisible"> <mat-icon [svgIcon]="icon" class="flexColumnStatic" [ngClass]="iconClass"></mat-icon> </span> </div> </button> <!-- Others are based on this; changes must be in sync --> <!-- dropdown-item and href are required for up/down nav; href w/ # messes up routing, so use javascript:void(0) --> <ul id="bsdropdown-list" class="dropdown-menu dropdown-list" [ngClass]="{'dropdown-menu-right': alignMenuRight}" [style.width]="menuWidth"> <li *ngFor="let item of items"> <!-- Default implementation --> <ng-container *ngIf="!useTemplate"> <!-- Prefer url to others --> <a [id]="'bsdropdown-route-item-' +item.text" *ngIf="item.url" class="dropdown-item useEllipses" [ngClass]="item.disabled? 'disabled' : ''" [style.text-align]="itemTextAlign" [style.font-size]="itemFontSize" [routerLink]="item.url" [title]="item.text" (keyup)="onKeyUp($event, item)">{{item.text}}</a> <a [id]="'bsdropdown-noroute-item-' +item.text" *ngIf="!item.url" class="dropdown-item useEllipses" [ngClass]="item.disabled? 'disabled' : ''" [style.text-align]="itemTextAlign" [style.font-size]="itemFontSize" href="javascript:void(0)" [title]="item.text" (click)="itemClicked(item)" (keyup)="onKeyUp($event, item)">{{item.text}}</a> </ng-container> <!-- Custom implementation --> <ng-template *ngIf="useTemplate" [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ item: item }"> </ng-template> </li> </ul>
-
Document.body.removeChild() only removes modal when in debugging mode
I have attached a keydown listener in the constructor of my class like
constructor(props: DropDownProps) { this.wrapper = document.createElement("div"); document.body.appendChild(this.wrapper); .. this.confirm = this.confirm.bind(this); this.handleEnterKey = this.handleEnterKey.bind(this); document.body.addEventListener("keydown", this.handleEnterKey); }
The attached function, handleEnterKey() checks for the entered keycode and if it is the return key, it calls confirm().
handleEnterKey:
private handleEnterKey(e: any) { if (e.keyCode === 13) { this.confirm(e); } }
confirm:
private confirm(e: any) { this.onConfirmIn(); document.body.removeEventListener("keydown", this.handleEnterKey); document.body.removeChild(this.wrapper); ConfirmationDialog.isConfirmationDialogOpened = false; }
Now what is happening is that the modal doesn't vanish and enter needs to be pressed again. It seems the modal doesn't vanish until either:
- Enter is pressed the second time
- Breakpoint exists (no matter where)
- The Modal is clicked upon, and then the enter is pressed
What could be the reason the modal doesn't simply detach itself on the first attempt?
-
"Done" or "Go" for password field in signup / login form?
Should "Done" or "Go" be written on the keyboard return button when entering the password in a signup or login form?
I've seen it both ways. Is there a best practice or design guideline?
-
Swift iOS Stripe -How to dismiss keyboard when Expiration or CVV fields are Active and card number field is empty
I have 1 stripe textfield that accepts the card number, expiration date, and cvv. I also have a tap gesture recognizer on the view to dismiss the keyboard.
If the card number is empty or improperly filled out (eg. 4 digits instead of 16) and I press the expiration date or cvv fields and then I press outside textfield to dismiss the keyboard, instead if it immediately dismissing it jumps to the card number field, then I have to press outside the textfield again to dismiss the keyboard. Essentially I have to press outside the keyboard twice to dismiss it which looks like a bug.
However if the card number is properly filled out and then I go through the same process I only have to press the outside the textfield once to dismiss the keyboard.
It seems like there is a default on the
STPPaymentCardTextField
that says "if the card number is invalid and the user tries to dismiss the keyboard from the expiration date or cvv fields then don't dismiss the keyboard, jump to the card number first and only dismiss it from there"How can I immediately dismiss the keyboard from the expiration date or cvv fields even if the card number is improperly filled out?
import Stripe let paymentTextField: STPPaymentCardTextField = { let stp = STPPaymentCardTextField() stp.translatesAutoresizingMaskIntoConstraints = false return stp }() override func viewDidLoad() { super.viewDidLoad() paymentTextField.delegate = self let tapGesture = UITapGestureRecognizer(target: self, action: #selector(dismissKeyboard)) view.addGestureRecognizer(tapGesture) } @objc fileprivate func dismissKeyboard() { view.endEditing(true) }
-
What happened that makes my keyboard just a bar
For some reason that I don't know and can't find, my Keyboard, is just a bar. I got several fields that needs a numeriek keyboard pad on the iPad/Ios. It did work, but then i did dismiss the keyboard and it never comes back, not even after a restart of the simulator. Even when I set the keyboard type in IB, I got the same result, just a bar.
self.NearPoint.keyboardType = .decimalPad self.FarPoint.keyboardType = .decimalPad