UIAccessibility and Apple Pay voice-over interaction issue

UIAccessibility and Apple Pay voice-over interaction issue

By : paule76
Date : November 22 2020, 10:40 AM
This might help you You can restore focus to the alert by issuing a well-timed UIAccessibilityPostNotification(), passing UIAccessibilityScreenChangedNotification and the element to be focused.
However, that's a hack to work around the details of how VoiceOver focuses on your app after returning from an out-of-process view controller. Please consider filing a bug report so that Apple can investigate a general solution.
code :

Share : facebook icon twitter icon
android voice recording - voice with background noice issue

android voice recording - voice with background noice issue

By : Moomba
Date : March 29 2020, 07:55 AM
around this issue Are you testing this with the emulator, or on an actual device (if so, which device)? The acoustic tuning (which includes gain control, noise reduction, etc) will be specific to a given platform and product, and is not something you can change.
Jellybean includes APIs to let applications apply certain acoustic filters on recordings, and a noise suppressor is one of those. However, by using that API you're limiting your app to only function correctly on devices running Jellybean or later (and not even all of those devices might actually implement this functionality).
Voice Interaction App [Android]

Voice Interaction App [Android]

By : Stephen Orioste
Date : March 29 2020, 07:55 AM
should help you out There's been an Android API for doing this for a long time. This is old code but I think it should work. It launches the google voice recognition dialog through an intent.
code :
private void startVoiceRecognitionActivity()
    Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
    intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Voice recognition Demo...");
    startActivityForResult(intent, REQUEST_CODE);

 * Handle the results from the voice recognition activity.
protected void onActivityResult(int requestCode, int resultCode, Intent data)
    if (requestCode == REQUEST_CODE && resultCode == RESULT_OK)
        // Populate the wordsList with the String values the recognition engine thought it heard
        ArrayList<String> matches = data.getStringArrayListExtra(
        wordsList.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,
    super.onActivityResult(requestCode, resultCode, data);
Why is UIAccessibility.post(notification: .announcement, argument: "arg") not announced in voice over?

Why is UIAccessibility.post(notification: .announcement, argument: "arg") not announced in voice over?

By : Hossain Ahmad
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further I am able to get this to work using a retry mechanism where I register as an observer of the UIAccessibility.announcementDidFinishNotification and then pull the announcement and success status out of the userInfo dictionary.
If the success status is false and the announcement is the same as the one I just sent, I post the notification again. This happens on repeat until the announcement was successful.
code :
private var _errors: [String] = []
private var _lastAnnouncement: String = ""

init() {
        selector: #selector(announcementFinished(_:)),
        name: UIAccessibility.announcementDidFinishNotification,
        object: nil

func showErrors() {
    if !_errors.isEmpty {
        view.errorLabel.text = _errors.first!
        view.errorLabel.isHidden = false

        if UIAccessibility.isVoiceOverRunning {
            _lastAnnouncement = _errors.first!
            UIAccessibility.post(notification: .announcement, argument: _errors.first!)
    } else {
        view.errorLabel.text = ""
        view.errorLabel.isHidden = true

@objc func announcementFinished(_ sender: Notification) {
    guard let announcement = sender.userInfo![UIAccessibility.announcementStringValueUserInfoKey] as? String else { return }
    guard let success = sender.userInfo![UIAccessibility.announcementWasSuccessfulUserInfoKey] as? Bool else { return }

    if !success && announcement == _lastAnnouncement {
        _lastAnnouncement = _errors.first!
        UIAccessibility.post(notification: .announcement, argument: _errors.first!)
Direct Interaction with Voice Over?

Direct Interaction with Voice Over?

By : Harri
Date : March 29 2020, 07:55 AM
I wish this help you To be able to process the taps (touchesBegan:withEvent: etc.) with VoiceOver turned on, you need to set two variables of an UIView:
UIAccessibility turn of/on voice objective-c

UIAccessibility turn of/on voice objective-c

By : Aykut
Date : March 29 2020, 07:55 AM
will help you No. There is no public API to do that. It's a feature controlled by the user.
Related Posts Related Posts :
  • Programmatically set size of UIView from Storyboard
  • Navigation bar blink
  • Web services issue on POST method
  • Parse.com error 'Method not allowed when Pinning is enabled.' when I use a PFQueryTableViewController subclass
  • Swift can't send URLRequest at all?
  • No Provisiong profiles with a valid signing identity were found and Failed to locate or generate matching signing assets
  • iOS: how to set httponly flag for NSHTTPCookie
  • How to get the mac address of a beacon in objective-c without knowing its UUID, major and minor values?
  • tableView is not showing data from JSON in swift
  • iTunes reject app for date of birth
  • SWIFT reporting "Extra argument in call" - works in Playground
  • save data depending on passed value in swift
  • webview not showing on full Screen of iphone 6
  • Location Notification's based on Latest iOS Feature
  • Adjusting Height of UITableViewCell
  • How to show five digit unicode in iphone
  • unwind doesn't work
  • Confusion about coordinates, frames & child nodes in SpriteKit on iOS?
  • If Statements not being recognized by Xcode
  • readonly property in RubyMotion
  • 'No available types for source 1' when the app runs on my device(IPhone 6) swift
  • IOS:Remove view when clicked in background
  • Removing "\" from URL in iOS Swift
  • iOS - Send an email automatically (NOT from user's account)
  • The usage of NSNotificationCenter in the relationship of parent and children
  • When do Apple auto-renewable subscriptions renew?
  • Unknown large spacing between x-axis label and base of plot in core-plot
  • How do I change the displayed time format after NSTimer is initiated?
  • Swift JSON breaks when [ ] are used
  • Secure Memory For Swift Objects
  • didSelectItemAtIndexPath doesn't work normally
  • Swift Documentation Comments
  • Is there a simple way to assign a value only once(first time) inside a loop/repeatedly running method?
  • Play sound in while app in background
  • If I have an embedded unrestricted webview, does that mean I have third-party content?
  • UITapGestureRecognizer on UIScrollView
  • App does not respond to hardware volume changes on iPad
  • troubleshoot asp.net web app on iOS
  • What size should my tab bar item icons be?
  • Parse.com Facebook authorize never calls completion handler
  • Implementing iAds on a SceneKit view
  • Getting objectForKeyedSubscript unrecognized selector when parsing data in table view
  • Execute action when back bar button of UINavigationController is pressed
  • iOS Table View - Set tag on cell or label?
  • Preferred approach for changing UITableViewCell content based on cell width
  • NSDateformatter dateFromString AnyObject
  • Type specifier for NSMutableArray?
  • iOS7 slideout drawer draggable bug
  • Fetch Core Data entity with a filtered set of child elements based on a property
  • UILabel AutoResize Swift
  • Swift - Selecting cells when having multiple custom cell-classes
  • Table View Cell Prototype from Storyboard not initializing subviews
  • Best way to implement view like map
  • Adding a tap gesture to a UIImageView to change a UILabel?
  • Minimum OS X and xcode requirements for ios 8.1 development
  • Changing the text of the Cancel button in the default TouchID dialog
  • iOS timing between taps
  • Swift: How do I link an action to a view inside of a tableViewCell?
  • Value for frame.size.height is always the same regardless of height of view
  • WatchKit / Apple Watch API: vibrations of custom length?
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org