react-native-webview/ios
RedPandaTronics d4ab332891
feat(iOS): Add Hardware Silence (#1218)
* Fixes Issue #1140

Fixes https://github.com/react-native-community/react-native-webview/issues/1140
Based on a solution found at: https://stackoverflow.com/questions/56460362/how-to-force-wkwebview-to-ignore-hardware-silent-switch-on-ios
I changed the code found in the linked source from Swift to Objective-C, as required by this project. WARNING: I haven't used Swift before and very limited experience with Objective-C.

- For me this seems to work, but it is not the cleanest solution in my opinion.
- It might also be possible to play generated sound (i.e. using oscillator) instead of hardcoding the silent base64 mp3 data.
- Maybe ignoring silence switch should only be done if a parameter is supplied

* fixes import path

* adds documentation for ignoreSilentHardwareSwitch

* adds ignoreSilentHardwareSwitch parameter

* reverting back to old import path

* Update Guide.md

Co-authored-by: Dominik Beste <dominik.beste@gmail.com>
2020-04-13 08:54:47 -07:00
..
RNCWebView.xcodeproj fix(iOS): UIWebView Removal (#828) 2019-08-30 12:04:32 +02:00
RNCWKProcessPoolManager.h feat(WKWebview): Add shared process pool so cookies and localStorage are shared across webviews in iOS (#138) 2019-01-07 15:19:32 +01:00
RNCWKProcessPoolManager.m feat(WKWebview): Add shared process pool so cookies and localStorage are shared across webviews in iOS (#138) 2019-01-07 15:19:32 +01:00
RNCWebView.h feat(iOS): WKUserScripts (e.g. injectedJavaScript) can now update upon props change; and can be configured to inject into all frames. (#1119) 2020-03-17 14:01:20 -07:00
RNCWebView.m feat(iOS): Add Hardware Silence (#1218) 2020-04-13 08:54:47 -07:00
RNCWebViewManager.h fix(iOS): UIWebView Removal (#828) 2019-08-30 12:04:32 +02:00
RNCWebViewManager.m feat(iOS): WKUserScripts (e.g. injectedJavaScript) can now update upon props change; and can be configured to inject into all frames. (#1119) 2020-03-17 14:01:20 -07:00