Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App stopped while running headless service. #31

Closed
solomonaboyeji opened this issue Dec 26, 2019 · 2 comments
Closed

App stopped while running headless service. #31

solomonaboyeji opened this issue Dec 26, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@solomonaboyeji
Copy link

The plugin works fine for transactions and that is great.
My app has an audio player and it runs in the background, any time the play button has been tapped the app crashed and the following stack trace is given.

java.lang.IllegalStateException: registrar.activity() must not be null
E/AndroidRuntime(14901): at co.paystack.flutterpaystack.FlutterPaystackPlugin$Companion.registerWith(FlutterPaystackPlugin.kt:18)
E/AndroidRuntime(14901): at co.paystack.flutterpaystack.FlutterPaystackPlugin.registerWith(Unknown Source:2)
E/AndroidRuntime(14901): at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(GeneratedPluginRegistrant.java:29)

I am guessing you will need to guard against Headless service which doesn't have an activity in them.

@wilburx9
Copy link
Owner

Thanks for pointing this out. I will fix it ASAP.

@wilburx9 wilburx9 added the bug Something isn't working label Dec 26, 2019
@wilburx9
Copy link
Owner

I believe the issue has been fixed. Please, reopen if you can still replicate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants