* 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>
|
|
||
517 |
|
517 |
|
518 |
|
518 |
|
519 |
|
519 |
|
|
520 |
|
|
|
521 |
|
|
|
522 |
|
|
|
523 |
|
|
|
524 |
|
|
|
525 |
|
|
|
526 |
|
|
|
||
64 |
|
64 |
|
65 |
|
65 |
|
66 |
|
66 |
|
|
67 |
|
|
67 |
|
68 |
|
68 |
|
69 |
|
69 |
|
70 |
|
|
|
||
1127 |
|
1128 |
|
1128 |
|
1129 |
|
1129 |
|
1130 |
|
|
1131 |
|
|
|
1132 |
|
|
|
1133 |
|
|
|
1134 |
|
|
|
1135 |
|
|
|
1136 |
|
|
|
1137 |
|
|
|
1138 |
|
|
|
1139 |
|
|
|
1140 |
|
|
1130 |
|
1141 |
|
1131 |
|
1142 |
|
1132 |
|
1143 |
|
|
|
||
140 |
|
140 |
|
141 |
|
141 |
|
142 |
|
142 |
|
|
143 |
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
|
|
|
147 |
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
|
|
|
151 |
|
|
143 |
|
152 |
|
144 |
|
153 |
|
145 |
|
154 |
|
|
|
||
163 |
|
172 |
|
164 |
|
173 |
|
165 |
|
174 |
|
|
175 |
|
|
166 |
|
176 |
|
167 |
|
177 |
|
168 |
|
178 |
|
|
|
||
1031 |
|
1041 |
|
1032 |
|
1042 |
|
1033 |
|
1043 |
|
|
1044 |
|
|
|
1045 |
|
|
|
1046 |
|
|
|
1047 |
|
|
|
1048 |
|
|
|
1049 |
|
|
|
1050 |
|
|
|
1051 |
|
|
|
1052 |
|
|
|
1053 |
|
|
|
1054 |
|
|
|
1055 |
|
|
|
1056 |
|
|
|
1057 |
|
|
|
1058 |
|
|
|
1059 |
|
|
|
1060 |
|
|
|
1061 |
|
|
|
1062 |
|
|
|
1063 |
|
|
|
1064 |
|
|
|
1065 |
|
|
|
1066 |
|
|
|
1067 |
|
|
|
1068 |
|
|
|
1069 |
|
|
|
1070 |
|
|
|
1071 |
|
|
|
1072 |
|
|
|
1073 |
|
|
|
1074 |
|
|
1034 |
|
1075 |
|
1035 |
|
1076 |
|
1036 |
|
1077 |
|
|
|
||
1038 |
|
1079 |
|
1039 |
|
1080 |
|
1040 |
|
1081 |
|
|
1082 |
|
|
|
1083 |
|
|
|
1084 |
|
|
|
1085 |
|
|
1041 |
|
1086 |
|
1042 |
|
1087 |
|
1043 |
|
1088 |
|