-
Notifications
You must be signed in to change notification settings - Fork 112
Description
(english question follows korean)
์๋ ํ์ธ์, StackFlow ๋์ ๊ณผ์ ์์ ๊ธฐ์ ์ ์ธ ํ์ธ์ด ํ์ํ์ฌ ์ง๋ฌธ๋๋ฆฝ๋๋ค!
์๋น์ค๋ฅผ ๋ง๋ค๋ฉฐ PG ๊ฒฐ์ / SNS ๋ก๊ทธ์ธ์ฒ๋ผ ํน์ ์ํฉ์์ ์๋น์ค ์ธ๋ถ๋ก ์ด๋ํ๋ค๊ฐ ๋ค์ ํน์ Activity๋ก ๋์์ค๋ ์์๊ฐ ์๋๋ฐ์.
์ด ์์๋ฅผ ์ด๋ค ๋ฐฉ์์ผ๋ก ๊ตฌํํ๋๊ฒ ๋น๊ทผ ํ์์ ์๊ฐํ๋ ๋ชจ๋ฒ๋ต์์ผ์ง๊ฐ ๊ถ๊ธํฉ๋๋ค.
์ง๊ธ ๋น์ฅ ์๊ฐํ๋ ๋ฐฉํฅ์ฑ์ผ๋ก๋, ํ์ด์ง ์ด๋ / ํ์
๋ฑ์ ์ด๋ฒคํธ๋ฅผ ๊ฐ๋ก์ฑ ์ธ๋ถ ์๋น์ค์ผ ๊ฒฝ์ฐ,
์ฌ์ ์ ์ค๋นํ iframe๋ง ์กด์ฌํ๋ Activity๋ก ์ด๋์ ์์ผ ํ๋ก์ธ์ค๋ฅผ ์งํํ๊ฒ ํ๋๊ฒ์ด ์ ์ผ ๋จผ์ ์๊ฐ๋๋๋ฐ์.
์ด๋ด ๊ฒฝ์ฐ์๋ iframe์์ ํ๋ก์ธ์ค๊ฐ ์๋ฃ๋์์๋ postMessage ๋ฑ์ ์ฌ์ฉํด์ callback ์ฒ๋ฆฌ๋ฅผ ๋ณ๋๋ก ํด์ผํ๋ ๋ถํธํจ์ด ์๊ธฐ์ง๋ง,
์ง๊ธ์ ์ํฉ์์๋ ๊ฐ์ฅ ์ต์ ํด๋ผ๊ณ ํ๋จํ ์๋ ์๋๋ฐ์.
-> SOP ๋ฌธ์ ๋ฅผ ์๊ณ ์์๋ค์ ๐ซ
ํน์๋ผ๋ ์ค์ ๋ก ์ฌ์ฉํ๊ณ ๊ณ์ ๋ ํผ๋ฐ์ค / ๋ ์ข์ ๊ตฌํ ๋ฐฉ์์ด ์๋ค๋ฉด ๊ฐ์ด ๋
ผ์ํด๋ณด๋ฉด ํ๋ณตํ ๋ฏ ํฉ๋๋ค!
๊ฐ์ฌํฉ๋๋ค :)
--
Hello, I have a question regarding the technical aspects of StackFlow implementation.
While developing a service, there's a need to navigate outside the service and then return to a specific activity in certain situations, such as PG payments or SNS logins.
I'm curious about the Carrot team's best approach for implementing this requirement.
The direction I'm currently considering is intercepting events like page transitions and pop-ups, and if it's an external service,
the first thing that comes to mind is to navigate to an activity that only contains a pre-prepared iframe and proceed with the process.
This approach requires a separate callback using postMessage or something similar when the process is completed in the iframe, which is inconvenient.
But for the current situation, this may be the most optimal solution.
-> I forgot about the SOP issue. ๐ซ
If you have any references or better implementations you're using, I'd be happy to discuss them!
Thank you :)