What is the alternative for iOS?

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?

+1
javascript ionic-framework
source share
1 answer

On iOS, atob does not accept spaces. Therefore, use atob as follows:

 var input = response.data.content; input = input.replace(/\s/g, ''); var content = window.atob(input); 

Look at this answer about atob

+4
source share

All Articles