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

When entering pip this error is occuring #7

Open
ragul-steamA opened this issue Oct 3, 2024 · 11 comments
Open

When entering pip this error is occuring #7

ragul-steamA opened this issue Oct 3, 2024 · 11 comments

Comments

@ragul-steamA
Copy link

----------------FIREBASE CRASHLYTICS----------------
I/flutter (11285): PlatformException(error, Activity must be resumed to enter picture-in-picture, null, java.lang.IllegalStateException: Activity must be resumed to enter picture-in-picture
I/flutter (11285): at android.app.Activity.enterPictureInPictureMode(Activity.java:2984)
I/flutter (11285): at com.thesparks.android_pip.AndroidPIPModePlugin.onMethodCall(AndroidPIPModePlugin.kt:102)
I/flutter (11285): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
I/flutter (11285): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
I/flutter (11285): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
I/flutter (11285): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
I/flutter (11285): at android.os.Handler.handleCallback(Handler.java:958)
I/flutter (11285): at android.os.Handler.dispatchMessage(Handler.java:99)
I/flutter (11285): at android.os.Looper.loopOnce(Looper.java:205)
I/flutter (11285): at android.os.Looper.loop(Looper.java:294)
I/flutter (11285): at android.app.ActivityThread.main(Ac
I/flutter (11285): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:651:7)
I/flutter (11285): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
I/flutter (11285):
I/flutter (11285): #2 AndroidPIP.enterPipMode (package:android_pip/android_pip.dart:57:9)
I/flutter (11285):
I/flutter (11285): ------------------------------

@harshitverma209
Copy link
Owner

Hi Ragul, please share a minimal reproducible sample for me to run.

@ragul-steamA
Copy link
Author

it is while entering into pip by calling enter pip method. I am using google pixel 8 pro android 14 emulator for checking this issue.

@harshitverma209
Copy link
Owner

Thanks Ragul, but by a minimal reproducible sample, I mean a piece of code that would directly run as a flutter app.

@ragul-steamA
Copy link
Author

ragul-steamA commented Oct 3, 2024

oh but it takes a lot of time to seperate the pip code from my whole project. I will try running the example project.

@harshitverma209
Copy link
Owner

harshitverma209 commented Oct 3, 2024

You don't really need to do that. You can create a new scratch project and use the package in it. This helps us make sure that something is wrong with this package and not some other package/code that might be conflicting. Also, it would help me pinpoint the issue.

@ragul-steamA
Copy link
Author

Actually the example code is working good.

@harshitverma209
Copy link
Owner

That means it's not a problem with the package itself. Still, I would be able to help if you can share a sample in which the issue is occurring.

@ragul-steamA
Copy link
Author

ragul-steamA commented Oct 3, 2024

Is it possible for you join me over a google meet call. because I can't share this code. Most propably this code has some conflicts which may be the reason for error

@ragul-steamA
Copy link
Author

Can you please get back to me fast. Its an urgent fix.

@harshitverma209
Copy link
Owner

Hi Ragul, please do not share your organization code. What I mean by a sample is a piece of code which has the same issue as the one you are mentioning and is a complete flutter app.

@ragul-steamA
Copy link
Author

It will take a lot of time. because I can't understand where it goes wrong.

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

No branches or pull requests

2 participants