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

App crashing when HTTP call has **accept=application/pdf** #9

Closed
grandhisubrahmanyam35 opened this issue Dec 11, 2020 · 6 comments · Fixed by #10
Closed

App crashing when HTTP call has **accept=application/pdf** #9

grandhisubrahmanyam35 opened this issue Dec 11, 2020 · 6 comments · Fixed by #10
Assignees
Labels

Comments

@grandhisubrahmanyam35
Copy link

grandhisubrahmanyam35 commented Dec 11, 2020

I am using this Cordova plugin in my Cordova application. This plugin saved me a lot of my time. It worked for all my cases except the 1 following case.

Whem I am making API with https://vsltst1.applaudsolutions.com/OA_HTML/applaud/api/assignments/259/oracle-payslips/US/8809896?_accept=application/pdf&inline=true&biPublisherTemplate=# app got broken. After I debug got to know it's because of accept query parameter.

If I change from application/pdf to application/json it's working. seems like Mime-types not handled properly. @Raphcal Could you please help with this?

@Raphcal
Copy link
Owner

Raphcal commented Dec 11, 2020

Yes binary content is not yet supported by the plugin. Do you intend to use responseType to change the expected type of response and to use it instead of responseText to access the binary data as an Uint8Array ?

@Srinivas-Alle
Copy link

Hi @Raphcal. Really helpful for me if you close this issue. Blocked by this.

@grandhisubrahmanyam35
Copy link
Author

grandhisubrahmanyam35 commented Dec 14, 2020

@Raphcal Yes, I am expecting the response-type to different compared with the existing one.

Now getting response-type as application/json
Expecting response-type as application/pdf

@grandhisubrahmanyam35
Copy link
Author

@Raphcal I see you have already created a branch and made a commit init. When I can expect the new release with new changes?

@Srinivas-Alle
Copy link

Hi @Raphcal any update on this?

@Raphcal
Copy link
Owner

Raphcal commented Jan 5, 2021

Sorry for the delay, I just released a fix for this in version 1.2.0.

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

Successfully merging a pull request may close this issue.

3 participants