Bug #14450
MB - Social Share QR code
Status: | Closed | Start date: | 07 October 2022 | |
---|---|---|---|---|
Priority: | Normal | Due 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
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);
}