Bug #14450

MB - Social Share QR code

Added by chok yee fan about 2 years ago. Updated about 2 years ago.

Status:ClosedStart date:07 October 2022
Priority:NormalDue date:
Assignee:chok yee fan% Done:

0%

Category:-Spent time:-
Target version:-
Phase:R1 Branch Code:showroom-proj-base-i5

Description

Expected
-------
Screenshot and social the image

Refer the attachment for the flow.

https://www.figma.com/file/tpkIy3H3ORGp4XQR16SkL0/User-Journey?node-id=0%3A1

WhatsApp Image 2022-10-07 at 11.41.39 AM.jpeg (34.3 KB) chok yee fan, 07 October 2022 05:18 PM

Video.mov (1.59 MB) chok yee fan, 11 October 2022 02:21 PM

History

#1 Updated by chok yee fan about 2 years ago

  • File Video.mov added
  • Status changed from New to Closed

using 2 plugins.
Tested on iOS
working on email, notes, hangout.
Tested on Android
working on whatsapp.

"com.darktalker.cordova.screenshot": "git+https://github.com/gitawego/cordova-screenshot.git",
"cordova-plugin-x-socialsharing": "^6.0.4",

screenshot2() {
console.log('screenshot2');
this.isShowHeader = false;
navigator.screenshot.URI((error, res) => {
if (error) {
console.error(error);
this.isShowHeader = true;
} else {
this.isShowHeader = true;
console.log('ok', res.URI); //should be path/to/myScreenshot.jpg
//For android
window.plugins.socialsharing.share(
null,
null,
res.URI,
null,
(successRes: any) => {
console.log('socialsharing successRes', successRes);
},
(errorRes: any) => {
console.log('socialsharing err', errorRes);
}
);
//For iOS
//window.plugins.socialsharing.share(null, null,imageLink, null)
}
}, 50);
}

Also available in: Atom PDF