Skip to content

Add full Android support#50

Open
Mihonarium wants to merge 2 commits intomainfrom
claude/add-android-support-01BeNB4H5FdV25CqNUY33pmb
Open

Add full Android support#50
Mihonarium wants to merge 2 commits intomainfrom
claude/add-android-support-01BeNB4H5FdV25CqNUY33pmb

Conversation

@Mihonarium
Copy link
Owner

No description provided.

- 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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants