gpt4 book ai didi

ios - Flutter:Apple 拒绝我的应用程序,因为有 "push notification without using the APN API"

转载 作者:行者123 更新时间:2023-11-29 05:13:08 25 4
gpt4 key购买 nike

我使用 flutter 为我们的 Volley 队制作了一个小型应用程序,但 Apple 拒绝发布该应用程序,因为我们“在不使用 APN API 的情况下推送通知”。

完整邮件:

Guideline 4.5.4 - Design - Apple Sites and Services

Your app does not request and obtain the user's consent before sendingpush notifications, which is not appropriate for the App Store.

Next Steps

To resolve this issue, please revise your app to obtain the user'sconsent prior to delivering notifications in the app.

Resources

For information on working with push notifications, please review UserNotifications framework and Technical Note TN2265 Troubleshooting PushNotifications.

Please see attached screenshots for details.

由于我的应用程序要求用户同意安装,我不明白该投诉并请求进一步的建议。

答案:

Hello,

Thank you for your reply.

Regarding 4.5.4, we noticed that your app provides push notificationwithout using the APN API.

To resolve this issue, it would be appropriate to use the APN API.

Resources

For additional information and instructions on requesting permission,please review the Requesting Permission section of the iOS HumanInterface Guidelines and the Information Property List Key Reference.You may also want to review the Technical Q&A QA1937: Resolving thePrivacy-Sensitive Data App Rejection page for details on how toprovide a usage description for permission request alerts.

We look forward to reviewing your resubmitted app.

Best regards,

我对“使用 APN API 比较合适”这个答案真的很不满意,因为对于我(非母语)英语的理解,这意味着我不需要通过 APN API 实现通知,但它会保持友善。

此外,我还检查了所有附加文档,但没有发现任何线索提示我做错了什么。

我不使用APN API的原因是我使用Local Notifications作为推送通知的 flutter 包,并且没有 APN 配置。

有人可以帮我将应用程序上传到 AppStore 吗?我需要做什么才能获得批准?

最佳答案

根据this您需要向用户请求权限。

Local and remote notifications get the user’s attention by displaying an alert, badging your app’s icon, or playing sounds. These interactions occur when your app isn’t running or is in the background. They let users know that your app has relevant information for them to view. Because the user might consider notification-based interactions disruptive, you must obtain permission to use them.

permission_handler插件可能会帮助你。

enum PermissionGroup {
...

/// Android: Check notification enable
/// iOS: Check and request notification permission
notification

...
}

关于ios - Flutter:Apple 拒绝我的应用程序,因为有 "push notification without using the APN API",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59486572/

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