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

Issue on Capacitor 3.2.5 While building in android studio #5151

Closed
anuroopfrancis1 opened this issue Oct 18, 2021 Discussed in #5140 · 4 comments
Closed

Issue on Capacitor 3.2.5 While building in android studio #5151

anuroopfrancis1 opened this issue Oct 18, 2021 Discussed in #5140 · 4 comments

Comments

@anuroopfrancis1
Copy link

Discussed in #5140

Originally posted by anuroopfrancis1 October 15, 2021
Getting this error "Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details."
Fixed by adding android:exported="true" in all with intent-filter for eg:
image
This have to updated in the new capacitor release

@jcesarmobile
Copy link
Member

That looks like it comes from phonegap push plugin, so should be fixed there.
In our Capacitor plugins that have intent-filter tags, we will fix them when we prepare them for Capacitor 4 as that's the version that will target Android 12, at the moment, Capacitor 3 targets Android 11.

@piotr-cz
Copy link

I fixed this by adding android:exported="false" in `AndroidManifest.xml application activity

@piotr-cz
Copy link

Actually the value should be true, otherwise opening the app will result with App isn't installed notification when not being run directly from Android Studio.

It's a backport from Capacitor 4: #5351

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 10, 2022

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants