[Android Permissions Plugin] Warning while checking permission in OnIntialize

Forge Component
Published on 2019-02-13 by Miguel 'Kelter' Antunes
5 votes
Published on 2019-02-13 by Miguel 'Kelter' 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.


Hello Pankaj,

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

Will that work for your use case?