ReviewOS

also looking at this

craft-native/craft

fix(ios): hand the page the answers native was already sending

#222
Merged glennmichael123 wants to merge fix/ios-unanswered-posts into main
18 files +597 -164
packages/ios/README.mdmodified+11-8
Changes to packages/ios/README.md
@@ -159,14 +159,17 @@ window.addEventListener('craftReady', (e) => {
159159 console.log('Capabilities:', e.detail.capabilities);
160160});
161161
162// Haptic feedback
163window.craft.haptic('light'); // light, medium, heavy
164window.craft.haptic('success'); // success, warning, error
165window.craft.haptic('selection');
166
167// Speech recognition
168window.craft.startListening();
169window.craft.stopListening();
162// Haptic feedback. Resolves true, and rejects with CAPABILITY_DISABLED when
163// enableHaptics is off.
164await window.craft.haptic('light'); // light, medium, heavy
165await window.craft.haptic('success'); // success, warning, error
166await window.craft.haptic('selection');
167
168// Speech recognition. startListening resolves true once the request is
169// taken; whether listening actually began arrives as the events below
170// (craftSpeechError for a declined prompt or no recognizer).
171await window.craft.startListening();
172await window.craft.stopListening();
170173
171174// Listen for speech events
172175window.addEventListener('craftSpeechStart', () => { /* recording started */ });