Content
@
https://warpcast.com/~/channel/recaster
0 reply
0 recast
0 reaction
Haole
@haole
Iām currently working on the Recaster mini app. Building a mini app is much easier than developing a native app, and it offers nearly all the functionality I need. The only feature I miss is gesture control, as you cannot navigate back between different pages.
14 replies
9 recasts
60 reactions
Andrei O.
@andrei0x309
It's possible to do swipe gestures on the web too, there are a few libraries for that. But people don't expect it so it's not a good feature for the web. People mostly add swipe behaviors on the web to improve the experience for mobile users.
1 reply
0 recast
2 reactions
Haole
@haole
yeah, tab swipe is not hard to implement, but you cannot navigate to previous page in warpcast mini app modal, only possible with clicking buttons.
1 reply
0 recast
1 reaction
Andrei O.
@andrei0x309
But you can, I tested both on desktop and mobile. https://frames.flashsoft.eu/ ( mini app index demo - check mobile gesture navigation) Source: https://github.com/andrei0x309/frames.flashsoft.eu/blob/main/src/routes/(index)/mobile-gestures-navigation/%2Bpage.svelte
1 reply
0 recast
1 reaction
Haole
@haole
wow cool! what if you navigate to a third party website?
1 reply
0 recast
1 reaction
Andrei O.
@andrei0x309
To navigate to a third-party app you have 3 ways: 1 use SDK `.actions.openUrl` It will minimize the mini app and open the link in external browser 2 use `window.open` It will behave exactly like using SDK ( don't know why you need SDK for this, as using SDKprobably triggers the same command but from frame host instead of frame client 3 using `window.location.href` should be the only way to stay in your mini app and replace the iframe with another website, you won't be able to navigate back if you don't own the other website too. If you own it replacing the href again should allow you to go back to your mini app even a history back push should allow going back. There's potentially a fourth method where you transform your mini app into an interceptor that is able to load other external websites but that's more complicated, though in theory should be possible. Updated the Demo mini app on the action page with those first 3 examples of navigation.
1 reply
1 recast
1 reaction
Haole
@haole
šš I think 2 is for mobile app.
0 reply
0 recast
1 reaction