it came to my attention that the definition of the "requestPermission" function is erroneous.
The function is implemented as an asynchronous function for android as well as for IOS. See
the pictures below.
The android implementation calls a function which returns a promise. The IOS implementation constructs a promise in the function implementation.
Unfortunately the type definition doesn't show that the function returns a promise. That made me
believe the function executes synchronously, which lead to some strange behaviors in my program.
It would be very nice if you could update the "index.d.ts" file.
Dear Ladies and Gentlemen,
it came to my attention that the definition of the "requestPermission" function is erroneous. The function is implemented as an asynchronous function for android as well as for IOS. See the pictures below.
The android implementation calls a function which returns a promise. The IOS implementation constructs a promise in the function implementation.
Unfortunately the type definition doesn't show that the function returns a promise. That made me believe the function executes synchronously, which lead to some strange behaviors in my program.
It would be very nice if you could update the "index.d.ts" file.
Kind regards, Lord Saumagen.