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

FILE_NOT_FOUND_ERROR After Removing and Adding Android Platform #652

Open
btate opened this issue Apr 21, 2020 · 0 comments
Open

FILE_NOT_FOUND_ERROR After Removing and Adding Android Platform #652

btate opened this issue Apr 21, 2020 · 0 comments

Comments

@btate
Copy link

btate commented Apr 21, 2020

I'm seeing a strange issue where if I have this plugin installed, and I remove/add then android platform, emulating android without live reload results in a white screen.

For some reason the app loads

Ionic App
file:///android_asset/www/index.html

Instead of http://localhost/

And I get the following errors on load in the chrome inspector

/runtime-es2015.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
cordova.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
/vendor-es2015.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
/main-es2015.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
/styles-es2015.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
/polyfills-es2015.js:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
/assets/icon/favicon.png:1 Failed to load resource: net::ERR_FILE_NOT_FOUND

I have noticed that if I remove this from the plugin.xml and remove/add the android platform, I no longer have these errors. So whatever is being loaded here seems to be adjusting some root/network value in the config.

<config-file target="config.xml" parent="/*">
      <feature name="BranchSDK">
        <param name="android-package" value="io.branch.BranchSDK" />
        <param name="onload" value="true" />
      </feature>
</config-file>

Any thoughts?

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

1 participant