Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
default dialogs (e.g. date/time) don't work #92
Because the WebView is instantiated using the application context, the default dialogs (e.g. date and time pickers) don't show. So you have to figure out some workaround to make your app work with date/time forms.
This should probably be added as a warning.
@kassim That's definitely valid documentation but currently (and this is subject to change soon because we ran into issues with Chrome 64) we swap the application context with the current activity's context whenever a new activity is loaded. And so dialogs, such as a
When we do eventually make the change to not swap the application context out (which Chrome 64 is going to force us to do, we're investigating now), we we for sure either provide this warning clearly or provide some backup options on how to take care of these dialogs yourself.
Hi, are you having trouble specifically with date/time? I confirmed that most web-to-native dialogs work OK (specifically dialogs) but it's possible that date/time fields might have issues.
Then in your
The solution suggested by @lateplate seems to only work for the first Activity in the backstack which created an instance of a TurbolinksView.
I worked out how to deal with this.