Skip to main content
Answer

Paywall issues with flutter-android and ryanheise audioservice

  • August 6, 2025
  • 1 reply
  • 74 views

Forum|alt.badge.img

See also closed topic 

I would add my solution to that post but it is now closed for comments.

Experience an issue on build where audioservice no longer worked if main activity became a fragmented activity.

The solutions in the end was on the audioservice page itself: https://pub.dev/packages/audio_service , see ‘Integration as a FragmentActivity

In the end this MainActivity.kt worked to resolve the issue for me:

package com.something.app

import com.ryanheise.audioservice.AudioServiceFragmentActivity

class MainActivity: AudioServiceFragmentActivity() {
}

No changes were required in the AndroidManifest, the activity name still is android:name=".MainActivity"

Hope this helps, I busted my skull on this one (and Claude’s, and Grok’s, ...)

Best answer by Haley Pace

Hi, thank you for sharing this with us! I have cross-posted it on the previous post as well.

This post has been closed for comments

1 reply

Forum|alt.badge.img+8
  • RevenueCat Staff
  • Answer
  • August 8, 2025

Hi, thank you for sharing this with us! I have cross-posted it on the previous post as well.