News for hackers. Stuff that matters.
Re:Svelte Native: The Svelte Mobile Development Experience by woahitsraj on Monday January 29, 2024 @01:43PM (#39180454)
While I'm a huge Svelte fan, this project hasn't really gotten very much care and attention over the last few years.

Which is honestly fine. React and React Native I think do a much better job of filling the niche of people who want to build native apps with web tech.

That being said, I think with the progress that Safari has made in implementing PWA support, the increased hostility of Apple toward native developers, and browser improvements like WebGPU coming out soon, I really hope that we no longer have to build native apps for like 95% of use cases. The only major hurdle to this is Apple continuing to treat web apps as second class citizens on iOS and only begrudgingly adding APIs to Safari to make good native experiences.

Re:Svelte Native: The Svelte Mobile Development Experience by sacrosanct on Monday January 29, 2024 @01:58PM (#39180721)
> The only major hurdle to this is Apple continuing to treat web apps as second class citizens on iOS

If you add a site to iOS' homescreen it automatically becomes a PWA. The best example I found of a site fully leveraging this feature is Cryptee[0]. They talk about the PWA thing here: https://crypt.ee/download

[0] https://crypt.ee/

Re:Svelte Native: The Svelte Mobile Development Experience by throwitaway1123 on Monday January 29, 2024 @02:54PM (#39181567)
The whole add to home screen process is needlessly convoluted. It would be nice if there was something similar to Smart Banners for PWAs: https://developer.apple.com/documentation/webkit/promoting_a...
Re:Svelte Native: The Svelte Mobile Development Experience by ezfe on Monday January 29, 2024 @04:47PM (#39183163)
You just click "Share -> Add To Home Screen." I understand that that's technically more clicks than a smart banner but hardly "convoluted"
Re:Svelte Native: The Svelte Mobile Development Experience by throwitaway1123 on Monday January 29, 2024 @05:35PM (#39183715)
I think it's convoluted relative to a Smart Banner. Smart Banners give users a clear call to action, and they're not buried in a menu somewhere.

It's hard to make this point without linking to a screenshot, but the share menu is incredibly bloated. To get to the add to home screen button a user has to know it's in the share menu (which is just an unlabeled icon), and then scroll past the following menu items:

- An options button (which leads to another menu)

- Air Drop

- Share via text message (with several different contacts listed individually to share with)

- Copy

- Add to Reading List

- Add Bookmark

- Add to Favorites

- Add to Quick Note

- Find on Page

Re:Svelte Native: The Svelte Mobile Development Experience by oh_sigh on Monday January 29, 2024 @08:39PM (#39185359)
Adding to your own home screen under a "share" menu is something probably 90% of users would never think of.
Re:Svelte Native: The Svelte Mobile Development Experience by dangerlibrary on Monday January 29, 2024 @07:10PM (#39184589)
Fastmail does this too, and it works extremely well.
Re:Svelte Native: The Svelte Mobile Development Experience by woahitsraj on Monday January 29, 2024 @08:13PM (#39185152)
I agree it's MUCH better than it used to be (and huge credit to Jen Simmons and her team for making this possible). However Safari APIs are still WAY behind Chrome/Android and I think this is probably intentional to push developers into using the App Store so Apple can collect their 30% tax

https://fugu-tracker.web.app/

Re:Svelte Native: The Svelte Mobile Development Experience by willsmith72 on Monday January 29, 2024 @08:57PM (#39185497)
It's absolutely intentional, but going to slowly get better even as they drag their feet
Re:Svelte Native: The Svelte Mobile Development Experience by bsaul on Tuesday January 30, 2024 @05:02PM (#39196495)
i wonder when someone is going to sue apple over this absurd limit. There's 0 justification for it, it's almost the definition of racket.
Re:Svelte Native: The Svelte Mobile Development Experience by dickersnoodle on Monday January 29, 2024 @04:23PM (#39182838)
> increased hostility of Apple toward native developers

Chortle.

Re:Svelte Native: The Svelte Mobile Development Experience by tootie on Monday January 29, 2024 @02:15PM (#39180995)
We've been working with Capacitor recently which is the current iteration of webview-to-native. Basically you just build a website and run it through a compile step to output iOS and Android. The ergonomics of the build process and integration with native features is definitely a bit lumpy, but we've been very successful at building an all-in-one codebase that will power web, ios and android with minimal drift.
Re:Svelte Native: The Svelte Mobile Development Experience by kevinak on Monday January 29, 2024 @02:46PM (#39181448)
Not sure what you built but for anyone interested in going down this venue there's a blog post by a Svelte Ambassador that you can read here: https://khromov.se/how-i-published-a-gratitude-journaling-ap...
Re:Svelte Native: The Svelte Mobile Development Experience by roldyclark on Monday January 29, 2024 @03:48PM (#39182348)
Capacitor is great! Did Svelte + Capacitor for my last app. Highly recommend.