Giter Club home page Giter Club logo

react-native-apk's People

Contributors

fossabot avatar skyzohkey avatar vacuumdecay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-native-apk's Issues

Conflict with rn-fetch-blob

After adding file provider configs to to AndroidManifest.xml i get the following error:

Error:
        Attribute provider#android.support.v4.content.FileProvider@authorities value=(com.rn_59_10.fileprovider) from (unknown)
        is also present at [:rn-fetch-blob] AndroidManifest.xml:38:13-60 value=(com.rn_59_10.provider).
        Suggestion: add 'tools:replace="android:authorities"' to <provider> element at AndroidManifest.xml:17:7-25:18 to override.
...\android\app\src\debug\AndroidManifest.xml Error:
        Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/filepaths) from (unknown)
        is also present at [:rn-fetch-blob] AndroidManifest.xml:43:17-55 value=(@xml/provider_paths).
        Suggestion: add 'tools:replace="android:resource"' to <meta-data> element at AndroidManifest.xml to override.

I use rn-fetch-blob to download apk.

Cannot install apk on sdk > 24

Hi,

I get this error when trying to install the downloaded apk file .
Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?

Error while trying to install APK

When I run the method ReactNativeAPK.installApp(${RNFS.ExternalDirectoryPath}/UpdateApk.apk);

I got the error:
No Activity found to handle Intent { act=android.intent.action.VIEW dat=/storage/emulated/0/Android/data/com.myapp/files/UpdateApk.apk typ=application/vnd.android.package-archive }

Any idea what I'm doing wrong? (Android 8/Nougat)

Attempt to invoke virtual method error

Getting the following error when trying to install an apk:

Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.PackageItemInfo.loadXmlMetaData(android.content.pm.PackageManager,java.lang.string)' on a null object reference

I'm using react-native-fs to download the apk to internal storage first.

Testing on a real Android device running version 7.1. It seems Android have changed the way you start intents from Android 7 onwards: https://stackoverflow.com/questions/39147608/android-install-apk-with-intent-view-action-not-working-with-file-provider/40131196

Could this be the problem?

I'm using react native version 0.55.4

Should this work?

Hey, this is an awesome package. Is it still maintained?

I've tried installing it, but it doesn't even get imported...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.