superhero-com / superhero-wallet

Superhero Wallet – More than just a way to receive, store & send tokens on the æternity blockchain
https://wallet.superhero.com
ISC License
39 stars 38 forks source link

aepp browser: implement back button using `history.back()` #3007

Open davidyuk opened 5 months ago

davidyuk commented 5 months ago

Is your feature request related to a problem? Please describe. I'm opening an aepp inside Superhero Wallet (iOS). From aepp's home page I can navigate somewhere. Then I'm pressing back arrow to return to aepp's home page, but instead the whole aepp gets closed.

Describe the solution you'd like Move the view with iframe to a separate page, like /apps-browser/:url. On that page use history.back() when back arrow clicked. This way browser would firstly rewind pages opened in iframe, and at last would navigate to /apps-browser.

Describe alternatives you've considered The is no another way to implement back button in frame because we don't have access to iframe's url.

Additional context

https://github.com/superhero-com/superhero-wallet/assets/9007851/45035d02-0e51-434d-9f6b-8eabf69162c7