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 Download Redirect URLs not setting a cookie while in Android platform while it sets it in IoS #290

Open
2 of 3 tasks
rajeshnarayanan-mcoe opened this issue Nov 11, 2020 · 0 comments

Comments

@rajeshnarayanan-mcoe
Copy link

Bug Report

Problem

We are using file transfer plugin 1.6.3 for our hybrid ionic app. When we try to download a file from a redirect PDF URL , it doesn't download on the Android platform while it works from the ios platform.
Upon investigation we found that in IoS, the url we use to download creates a cookie, its validated for authentication and redirects to the correct PDF url, while the same url isnt creating a cookie so the url is denied access to the redirect url.

What is expected to happen?

When we use the redirect url for downloading PDF in Android, it should create a cookie (basically like a browser) and sent it along with the redirect URL.

What does actually happen?

In Android , the cookie isnt getting set for the redirect URL, so the request is denied.

Information

Command or Code

Environment, Platform, Device

Issue is in Android Platform

Version information

Ionic version: 5.4.13
Android : 8

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@rajeshnarayanan-mcoe rajeshnarayanan-mcoe changed the title URLs not setting a cookie while in Android platform while it sets it in IoS File Download Redirect URLs not setting a cookie while in Android platform while it sets it in IoS Nov 11, 2020
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