Closed daltonpearson closed 5 years ago
No problem thanks for the quick response. I also opened a PR in the ionic native repo to add base64 and quality options so they will be available whenever the patch goes out.
No problem thanks for the quick response. I also opened a PR in the ionic native repo to add base64 and quality options so they will be available whenever the patch goes out.
Absolutely love it!!!
Description
On android the base64 string was being returned with line breaks in the string, angular will mark the URL as unsafe if it contains line breaks and it won't be displayed. So I've updated the option to return the base64 string without line breaks.
Type of change
How Has This Been Tested?
I made the changes to the source and ran the plugin in an ionic-native v4 app using angular and verified that the strings were being returned without line breaks.
Notes
I spent a lot of time debugging why the URLs were being marked as unsafe and wanted to save others from having to debug this. On iOS the URLs are returned without line breaks so this change also makes the behavior consistent between platforms.