HomeiOS DevelopmentFlutter Ios forestall screenshot app evaluation rejection

Flutter Ios forestall screenshot app evaluation rejection


I’ve obtained this rejection from AppStore:

Guideline 4.0 – Design

We observed that your app reveals a customized screenshot-initiated interface when the person takes a screenshot, however the interface duplicates the iOS system-provided screenshot interface and performance.

Duplicating system-provided interfaces doesn’t present the straightforward, modern, and simple to make use of expertise App Retailer customers anticipate.

I’ve add this in app delegate

import UIKit
import Flutter

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func utility(
    _ utility: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {

    self.window.makeSecure()       //This line to activate the extension

    GeneratedPluginRegistrant.register(with: self)
    return tremendous.utility(utility, didFinishLaunchingWithOptions: launchOptions)
  }
}


// Extension
extension UIWindow {
func makeSecure() {
    let subject = UITextField()
    subject.isSecureTextEntry = true
    self.addSubview(subject)
    subject.centerYAnchor.constraint(equalTo: self.centerYAnchor).isActive = true
    subject.centerXAnchor.constraint(equalTo: self.centerXAnchor).isActive = true
    self.layer.superlayer?.addSublayer(subject.layer)
    subject.layer.sublayers?.first?.addSublayer(self.layer)
  }
}

What’s the mistaken ? and how one can remedy this situation
Notice : I’ve already used this methodology on preliminary add they usually accepted it .. however now in replace they reject it.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments