Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

iOS: Error with firebase URL #184

Closed
TdoubleG opened this issue Sep 14, 2019 · 12 comments · Fixed by #195
Closed

iOS: Error with firebase URL #184

TdoubleG opened this issue Sep 14, 2019 · 12 comments · Fixed by #195

Comments

@TdoubleG
Copy link

Hey there,

the plugin can't show firebase URLs in iOS. In Android it works like intended.
Does anybody have a solution for this?

That is my code:

  public showImage(url: string): void {
    if (this.platform.is('ios')) {
      url = decodeURIComponent(url);
    }

    this.photoViewer.show(url);
  }
@QuantariusRay
Copy link

@sarriaroman ^^^

@parodenas
Copy link

Hi, @TdoubleG did you find a solution?

@TdoubleG
Copy link
Author

TdoubleG commented Oct 31, 2019

@QuantariusRay @parodenas
I forked this one and fixed the bug for firebase URLs

https://github.com/TdoubleG/photoviewer

Just use it like this:

 public showImage(url: string): void {
    this.photoViewer.show(url);
  }

Have fun :)

@parodenas
Copy link

@TdoubleG is working, thank you! :D

@jcgz100
Copy link

jcgz100 commented Nov 1, 2019

@TdoubleG thanks for this !. I was stuck in this for days.

Thank you

@thameurr
Copy link

thameurr commented Nov 3, 2019

not working :
The file to show is not a valid image or could not be loaded

@TdoubleG
Copy link
Author

TdoubleG commented Nov 4, 2019

@thameurr what kind of url do you have?

@thameurr
Copy link

thameurr commented Nov 6, 2019

@TdoubleG firebase storage link
working fine on android, problem only on iOS

@TdoubleG
Copy link
Author

TdoubleG commented Nov 6, 2019

@thameurr and you are using the package from here: https://github.com/TdoubleG/photoviewer

Do like this:

  1. Remove your plugins folder
  2. ionic cordova platform rm ios
ionic cordova plugin rm com-sarriaroman-photoviewer
ionic cordova plugin add https://github.com/TdoubleG/photoviewer
  1. ionic cordova platform add ios
  2. ionic cordova build ios

and then try again

@thameurr
Copy link

same problem

@ahmadwa
Copy link

ahmadwa commented Jan 23, 2020

@TdoubleG thanks, I do it as you wrote. every thing is working.
for iOS use:
if (this.functions.isIos) { this.photoViewer.show(src); } else { this.photoViewer.show(src, '', options); }

@alaswer
Copy link

alaswer commented May 13, 2020

@QuantariusRay @parodenas
I forked this one and fixed the bug for firebase URLs

https://github.com/TdoubleG/photoviewer

Just use it like this:

 public showImage(url: string): void {
    this.photoViewer.show(url);
  }

Have fun :)

Thank you so much!

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

Successfully merging a pull request may close this issue.

7 participants