photoviewer icon indicating copy to clipboard operation
photoviewer copied to clipboard

Hide / Delete share-button

Open jakubprogramming opened this issue 9 years ago • 9 comments

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!

jakubprogramming avatar Feb 11 '16 14:02 jakubprogramming

From your Android project just remove this line: https://github.com/sarriaroman/photoviewer/blob/master/src/android/PhotoActivity.java#L114

sarriaroman avatar Feb 11 '16 14:02 sarriaroman

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.

jakubprogramming avatar Feb 11 '16 15:02 jakubprogramming

Check the plugins folder in your project. Sometimes Cordova replace the plugins during the prepare process ;)

sarriaroman avatar Feb 11 '16 15:02 sarriaroman

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?

jakubprogramming avatar Feb 11 '16 15:02 jakubprogramming

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;
}

sarriaroman avatar Feb 11 '16 15:02 sarriaroman

Okay, I will look into this later. Thanks a lot!

jakubprogramming avatar Feb 11 '16 15:02 jakubprogramming

The action sheet or the share widget takes a really long time to appear once the share button is clicked. Any workarounds for that?

srameshr avatar Mar 06 '16 14:03 srameshr

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?

meyyappanv avatar Apr 04 '16 11:04 meyyappanv

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!

gjord83 avatar Apr 27 '18 15:04 gjord83