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

Unable to upgrade to Android 12 #116

Open
Diegodotcom opened this issue Jan 7, 2022 · 3 comments
Open

Unable to upgrade to Android 12 #116

Diegodotcom opened this issue Jan 7, 2022 · 3 comments

Comments

@Diegodotcom
Copy link

Your Environment

  • Plugin version: 1.4.0
  • Platform: Android

Expected Behavior

The application should run with no problems after updating the compile and target sdk version to 31 (Android 12).

Actual Behavior

The application is having issues during the manifest merger due to the lack of the "android:exported" tags in one of the SDK receivers in the AndroidManifest.

Steps to Reproduce

  1. Load the 1.4.0 plugin in a sample app.
  2. Go to app/build.gradle
  3. Set "compileSdkVersion" to 31
  4. Set "targetSdkVersion" to 31
  5. Run the application.

Debug logs

Build output:
Manifest merger failed : android:exported needs to be explicitly specified for <receiver>. 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.
Receiver:
     <receiver android:name="com.transistorsoft.locationmanager.BootReceiver">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED"/>
                <action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
            </intent-filter>
        </receiver>
@martinpoulsen
Copy link

@christocracy it seems the RN version of your geolocation library is much ahead of this native version. Is this version deprecated? - and is there a different way to consume your geolocation library in iOS / Android native apps? (I hope so, that would be cool!)

@stale
Copy link

stale bot commented Jun 12, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

@stale stale bot added the stale label Jun 12, 2022
@barunsoft0819
Copy link

@christocracy it seems the RN version of your geolocation library is much ahead of this native version. Is this version deprecated? - and is there a different way to consume your geolocation library in iOS / Android native apps? (I hope so, that would be cool!)

@christocracy please answer this question.

@stale stale bot removed the stale label Jul 27, 2022
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

3 participants