Skip to content

Commit

Permalink
[Test] #13 - 인스타 앱으로 사진 직접 업로드 부분 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
sayyyho committed Sep 23, 2024
1 parent ae94b96 commit a6bec44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/shareInsta.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ const captureAndShare = (element, buttons) => {
setTimeout(() => {
console.log(imageUri);
if (isIOS) {
const storyUri = `instagram-stories://share?source_application=your.app.package`;
window.location.href = storyUri;
window.location.replace("https://www.instagram.com/create/story");
} else if (isAndroid) {
const storyUri = `intent://instagram.com/#Intent;scheme=https;package=com.instagram.android;end`;
window.location.href = storyUri;
window.location.replace(
"intent://instagram.com/#Intent;scheme=https;package=com.instagram.android;end"
);
} else {
// 인스타그램 웹으로 리디렉션
window.location.href = "https://www.instagram.com/create/story";
Expand Down

0 comments on commit a6bec44

Please sign in to comment.