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
requestPermission method out of the Push object and into a separate PushUtils class 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