Open
Conversation
- Create Android native Kotlin module for background haptics using VibrationEffect API with amplitude control for different styles - Update expo-module.config.json to register Android module - Enable haptics for both iOS and Android platforms in index.js - Add Android permissions: VIBRATE, FOREGROUND_SERVICE, and FOREGROUND_SERVICE_MEDIA_PLAYBACK for background audio - Configure Android build properties: minSdk 23, targetSdk 34 - Update eas.json with Android build configurations for preview (APK) and production (app-bundle) builds - Add Android package identifier ms.contact.compass
…ayer - Add react-native-track-player for reliable foreground service on Android - Create audioService.js to manage background playback with silent audio track - Create playbackService.js to handle track player remote events - Create custom index.js entry point to register playback service - Update App.js to initialize and manage background service on state changes - Add WAKE_LOCK permission to prevent CPU sleep during background playback The track player creates a foreground service with notification that keeps the app alive in the background, allowing expo-av sounds and haptics to continue working reliably on Android (vs being killed after ~60 seconds).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.