-
When moving to Shiny 3.x you will find that in Android this code
will no longer compile because the ShinyOnRequestPermissionsResult extension has been replaced. Do not naively think "oh Shiny 3.x must be hooking this internally now". That call to ShinyOnRequestPermissionsResult needs to be replaced with a call to If you do not do this then your RequestAccess calls will never return. The permission will be granted (assuming the user agreed) and subsequent calls will return but the one that triggered OnRequestPermissionsResult will not. I spent far too long looking elsewhere for the problem suspecting threading deadlocks. Don't be me :-) The ShinyAndroidActivityclass in 3.x does have this in it base implementation and it is how I realised my mistake, https://github.com/shinyorg/shiny/blob/dev/src/Shiny.Hosting.Native/Platforms/Android/ShinyAndroidActivity.cs#L38 There is a similar change in the iOS' AppDelegate for
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey @munkii - take a look at this: https://shinylib.net/client/hosting/manual/ I think this covers everything |
Beta Was this translation helpful? Give feedback.
Hey @munkii - take a look at this: https://shinylib.net/client/hosting/manual/
I think this covers everything