admin管理员组文章数量:1122832
While deployment Flutter app, am getting below warning on play console:
Your use of exact alarms is causing your app to crash for some Android users Your app schedules exact alarms without checking whether the SCHEDULE_EXACT_ALARM permission has been granted. This is causing your app to crash for users on Android 14 because the permission is no longer granted by default.
In most cases, alternative methods of scheduling work or inexact alarms are more appropriate. If your use of exact alarms is justified, update your app so that it checks this permission is granted before scheduling.
Authentication via WebView Your app performs authentication via WebViews, which leads to security and usability issues. Please see this Google Help Center article for details.
com.parkstreet.parkstreet.LoginViaAppleActivity.setupAppleWebviewDialog
Manifest:
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"
android:maxSdkVersion="32" />
While deployment Flutter app, am getting below warning on play console:
Your use of exact alarms is causing your app to crash for some Android users Your app schedules exact alarms without checking whether the SCHEDULE_EXACT_ALARM permission has been granted. This is causing your app to crash for users on Android 14 because the permission is no longer granted by default.
In most cases, alternative methods of scheduling work or inexact alarms are more appropriate. If your use of exact alarms is justified, update your app so that it checks this permission is granted before scheduling.
Authentication via WebView Your app performs authentication via WebViews, which leads to security and usability issues. Please see this Google Help Center article for details.
com.parkstreet.parkstreet.LoginViaAppleActivity.setupAppleWebviewDialog
Manifest:
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"
android:maxSdkVersion="32" />
Share
Improve this question
asked Nov 22, 2024 at 10:25
Jaimin ModiJaimin Modi
1,6674 gold badges28 silver badges91 bronze badges
1
- In your code. You need to ask for alarm permission from user. you can do this when starting the app or when scheduling an alarm. If the permission is not granted by user then you can't schedule any alarm. When user grant permission then you can schedule alarms and it'll work fine. For more info. developer.android.com/develop/background-work/services/alarms/… – Aks Commented Nov 22, 2024 at 12:54
1 Answer
Reset to default 1SCHEDULE_EXACT_ALARM, the permission introduced in Android 12 for apps to schedule exact alarms, is no longer being pre-granted to most newly installed apps targeting Android 13 and higher (will be set to denied by default)
Starting Android 13, you need to request SCHEDULE_EXACT_ALARM permission as it's no longer granted by default. Schedule the alarm only if permission is granted. You can check the sdk version before scheduling the alarm. If Android 12 or below, schedule it as usual, if 13 & above, check permission and schedule alarm only if permission is available
schedule-exact-alarms
本文标签: androidGetting Google play store deployment permission warningStack Overflow
版权声明:本文标题:android - Getting Google play store deployment permission warning - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736304546a1932273.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论