简体   繁体   English

使用 SKStoreReviewController 时是否需要 Internet 连接?

[英]Do I need an Internet connection when using SKStoreReviewController?

When I'm asking the user to rate my app should I make sure there is an Internet connection?当我要求用户评价我的应用时,我应该确保有互联网连接吗? What happens if there is no Internet?如果没有互联网会发生什么? Apple documentation does not clarify this. Apple 文档没有说明这一点。 Should I assume that it is store locally and when there is a connection it will be updated?我是否应该假设它存储在本地,并且当有连接时它会被更新?

  if let scene = UIApplication.shared.connectedScenes.first(where: { $0.activationState == .foregroundActive }) as? UIWindowScene {
   SKStoreReviewController.requestReview(in: scene)
  }

You don't need to check for internet connectivity first.您无需先检查互联网连接。 Apple will take care of these scenarios and it that's a authentic review it will be added to your app on the store otherwise it will be rejected away, So the whole internet logic is hidden and taken care by the OS itself. Apple 将处理这些情况,这是一个真实的评论,它将被添加到您在商店中的应用程序中,否则它将被拒绝,因此整个互联网逻辑被隐藏并由操作系统本身处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Swift iOS - 当有 wifi 连接但没有互联网连接时该怎么办? - Swift iOS- What to do when there is a wifi connection but no internet connection? 知道 SKStoreReviewController 何时被解雇 - Know when SKStoreReviewController gets dismissed 需要为 SKStoreReviewController 自定义弹出警报 - Need to customise the pop up alert for SKStoreReviewController 如何限制对依赖互联网连接的UIViewController的访问? - How do I restrict access to UIViewController's that rely on an internet connection? 如何在iOS上检测互联网连接的变化,委托风格? - How do I detect change in internet connection on iOS, delegate style? 为什么在使用自动布局时需要调用layoutIfNeeded - Why do i need to call layoutIfNeeded when using autolayout 在iOS中使用MPMediaItem时需要使用mutableCopy到NSMutableArray吗? - Do i need to use mutableCopy to NSMutableArray when using MPMediaItem in iOS? 使用Core Data时需要本地数组吗? - Do I need a local array when using Core Data? 没有互联网连接时会调用“ performFetchWithCompletionHandler”吗? - Is 'performFetchWithCompletionHandler' called when no internet connection? 没有互联网连接时调用“ didFailLoadWithError”? - Call “didFailLoadWithError” when no internet connection?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM