gpt4 book ai didi

ios - Flutter iOS 应用提交问题警告 : Missing Push Notification Entitlement

转载 作者:IT老高 更新时间:2023-10-28 12:43:44 25 4
gpt4 key购买 nike

将 Flutter 应用上传到 App Store Connect 后,我​​收到以下电子邮件警告:

Dear Developer,

We identified one or more issues with a recent delivery for your app, "[APP NAME]". Your delivery was successful, but you may wish to correct the following issues in your next delivery:

Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the "aps-environment" entitlement. Xcode does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1.

After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to App Store Connect.

Best regards,

The App Store Team

我不在我的应用程序中使用推送通知?为什么我会收到此警告?以及如何删除“aps-environment”权利,无论它在哪里,无论它是什么?

注意:这个 App Store 问题在 SO 上多次出现,有时是因为人们需要添加推送通知(参见 thisthis),有时是因为他们没有(参见thisthis )。不过,在我的情况下,这似乎与 Flutter 相关,所以我添加了一个新问题。

最佳答案

大家都知道,只要您真的不使用推送通知,这不会导致您的应用被拒绝。因此,您可以放心 (?) 忽略此警告并继续提交您的应用。

此问题已在 GitHub here 上进行了描述,并且正在讨论解决方案here .它显然与使用 UIApplicationDelegate 回调的 Flutter 有关:

- (void)application:(UIApplication*)application
didReceiveRemoteNotification:(NSDictionary*)userInfo
fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;

我会让其他人更清楚地解释确切的原因。密切关注 GitHub 问题。

现在我将忽略警告。

更新:我提交了我的应用程序,它被接受了,从那以后它没有任何问题。所以请忽略警告。

关于ios - Flutter iOS 应用提交问题警告 : Missing Push Notification Entitlement,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55167611/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com