ably-flutter
ably-flutter copied to clipboard
Refactor `Push#requestPermission` Method to Support Both iOS and Android
The current Push#requestPermission method has several major issues:
- It only works for iOS and lacks support for Android.
- It requires the Ably client to be initialized, which is not ideal for a simple permission request.
- The API doesn’t support retrieving information if permission is permanently denied, or showing the permission rationale widget flag
Proposed Solution:
- Move the
requestPermissionmethod out of thePushobject and into a separatePushUtilsclass as a static method. - Implement cross-platform support for both iOS and Android, ensuring permission requests can be handled universally without needing to initialize the Ably client.
┆Issue is synchronized with this Jira Story by Unito