In my Ionic app, I use the atob () command.
It works fine on chrome and android, but for some reason it doesn't work on iOS, is there an alternative?
On iOS, atob does not accept spaces. Therefore, use atob as follows:
atob
var input = response.data.content; input = input.replace(/\s/g, ''); var content = window.atob(input);
Look at this answer about atob