-
Notifications
You must be signed in to change notification settings - Fork 966
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android Bug] Permission Request Crashes App When Using Embedded Capacitor 3.0 #4343
Comments
Thanks for reporting, I am also running into the same issue. I am investigating it further to find a short-term workaround. @jcesarmobile, @carlpoole and Capacitor-team: |
We have a separate effort underway for using Capacitor in Native applications. We will provide more info on the topic in coming months. This effort is a commercialization and will not be made available as open source. If you are interested in hearing more I am happy to chat about it! |
Thanks for the response, I think that it is important to have more clarity about this topic. I am obviously not happy with breaking functionality that worked in Capacitor 2.X. My fear about closed-source is the ongoing maintenance of this core-functionality. |
Thanks for your reply! Does that mean intentionally BridgeFragment was kind of "deprecated" in Capacitor 3.x? |
The fork is now released: https://github.com/fkirc/embedded-capacitor |
I appreciate you efforts for improving Capacitor over the long term, but embedded-support has been delayed multiple times. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
Platform(s)
Android
Current Behavior
Hey 馃憢馃徏
I got a tab bar in my app. When the user clicks on the second tab I want to show a Capacitor BridgeFragment. This worked fine with Capacitor 2.x.x. Here is the code:
After upgrading to 3.x.x the app crashes with a IllegalStateException. StackTrace below.
Expected Behavior
The Capacitor fragment is displayed normally.
Stack Trace
npm --version
output: 6.12.1node --version
output: v12.13.1Additional Context
When I directly add my Capacitor Fragment to my activity (not later, when the user did some action), I do not get this error.
The problem lays here:
at com.getcapacitor.Plugin.initializeActivityLaunchers(Plugin.java:133)
Capacitor tries to register something permission-related, which is not allowed at this point of the activity LifeCycle.
The text was updated successfully, but these errors were encountered: