Hi there,
I’ve followed a few posts and Ionic docs in using PhotoViewer, below is my code so far. The URL is passed okay but after tapping on the image - it will get stuck permanently with a loading spinner with no way of getting out. Any hints or clues as to why this might be happening?
Any help would be greatly appreciated.
import { PhotoViewer } from 'ionic-native';
@Component({
selector: ‘hero-image’,
template:
{{model.item.name}}
constructor(
private _platform: Platform
) {
}
viewFullScreenImage(image: string, title?: string): void {
console.log(‘View Image in Fullscreen clicked’);
this._platform.ready()
.then(() => {
if (PhotoViewer)
PhotoViewer.show(image, title);
})
console.log(‘Image’, image);
}