Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Seems to fix a NullPointerException on Android 8.0+ built with API 28 #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

batesy87
Copy link

Someone who actually knows what they are doing will need to check this. It seems to fix the issue I had

@batesy87 batesy87 closed this Dec 16, 2019
@batesy87 batesy87 deleted the hotfix/fix_146 branch December 16, 2019 09:16
@batesy87 batesy87 restored the hotfix/fix_146 branch December 16, 2019 09:23
@batesy87 batesy87 reopened this Dec 16, 2019
@regnete
Copy link
Member

regnete commented Feb 26, 2020

Is this still working on lower Android versions? Did you test that?

@batesy87
Copy link
Author

I did not test, but as per https://developer.android.com/distribute/best-practices/develop/target-sdk

All the app submissions must target API level 28 as a minimum

android:name="de.sitewaerts.cordova.documentviewer.FileProvider"
android:authorities="$PACKAGE_NAME.DocumentViewerPlugin.fileprovider"
android:authorities="${applicationId}.DocumentViewerPlugin.fileprovider"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change this from $PACKAGE_NAME to ${applicationId}? Is that change relevant to fix the issue?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@regnete This will be help full if you have multiple variants(dev, staging prod) for your app and you want to install all the builds simultaneously. Then applicationId will help or else it will throw the following error
Failure [INSTALL_FAILED_CONFLICTING_PROVIDER: Scanning Failed.:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants