photoviewer
photoviewer copied to clipboard
Hide / Delete share-button
I have been trying to get rid of the share-image button, as it does makes no sense to share an image in my application. I tried to delete the ImageButton tag in the activity_photo.xml, but this does not change anything.
Could somebody help me with this?
Thank you!
From your Android project just remove this line: https://github.com/sarriaroman/photoviewer/blob/master/src/android/PhotoActivity.java#L114
Thank you for this quick answer. The changes are not reflected in my project. I suppose that is a cordova issue though. I will figure it out from here on.
Check the plugins folder in your project. Sometimes Cordova replace the plugins during the prepare process ;)
Just went the easy way and removed / added the android platform. Now it works, thank you! Is it just as easy to achieve the same on IOS?
On iOS you can't hide it but can disable it just adding the next code
- (BOOL)documentInteractionController:(UIDocumentInteractionController *)controller canPerformAction:(SEL)action{
return false;
}
Okay, I will look into this later. Thanks a lot!
The action sheet or the share widget takes a really long time to appear once the share button is clicked. Any workarounds for that?
I like the recent fix in version 1.1.5. Works like a charm with Andriod. Can you provide a similar fix (argument based) in iOS?
Hi guys, I am using the plugin for my app: this.photoViewer.show(this.fullScreenImg, null , { share: false });
share false works fine on android... not on iOS. Have you a workaround? Thanks!