50
Views
1
Comments
Solved
[Android Permissions Plugin] Warning while checking permission in OnIntialize
Question
android-permissions-plugin
Mobile icon
Forge asset by Miguel Antunes

I am requesting the Android permission in the Screen OnInitialize() event but it gives me a warning as below


Performance Suggestion: 

'OnInitialize' contains accesses to the local storage or server, which delays the screen's render. To avoid performance issues, use Aggregates or Data Actions instead.


So can we call the permission in OnInitialize() action or do we have a better way to do this.

2023-03-30 10-13-40
Miguel Antunes
Solution

Hello Pankaj,

You can do that in the 'OnReady' instead of 'OnInitialize'. 


Will that work for your use case?


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.