this post was submitted on 14 Feb 2025
8 points (90.0% liked)

Arctic

469 readers
8 users here now

Arctic is a Lemmy client for iOS built on pure Swift. It currently supports iOS 15+ and Lemmy v0.17+

Get the latest version on TestFlight, or check it out on the AppStore.

If you would like to support Arctic’s development, feel free to Buy Me A Coffee

founded 2 years ago
MODERATORS
 

Is there an app URL scheme that can be used with Arctic? Like if I wanted to open a Lemmy post using the address I could do arctic://openURL/lemmypost.com/postUrlID

I recently started using the newly released Tapestry by The Iconfactory and it allows you to follow rss feeds and all kinds of other things (so Lemmy communities as well). It also lets you define your own custom apps to open for the various feeds and would love to have it open Arctic to the post when I tap the item in Tapestry.

Thanks a bunch for building this fantastic app!

By the way, here is Tapestry’s documentation on how to use the URL schemes, in case you wanna take a look.

https://iconfactory.happyfox.com/kb/article/149-opening-tapestry-timeline-items-in-third-party-apps/

top 4 comments
sorted by: hot top controversial new old
[–] CreatureSurvive 3 points 1 week ago (1 children)

Yes, Arctic does support URL schemes. I made it as simple as possible, no need to grab the post_id or comment_id. Just simply pass it the URL to any post, comment, user, or community. This also works for most MBin URLS. The url scheme for Arctic is arctic://open-in?url={content_url} for example to open this post you'd use arctic://open-url?url=https://lemmy.world/post/25543739

Tapestry looks interesting, it's been a while since I've found any rss readers that I actually enjoyed using, I'll have to check that out. I definitely like that it supports URL schemes rather than opening in a browser.

Looking at the Tapestry documentation, you will likely want to use the __URL_ENCODED__ substitution variable for Arctic eg: arctic://open-in?url=__URL_ENCODED__

I should probably add a section in Arctic settings to list the supported URL schemes. Right now they are only listed in the Changelog, and they are all buried.

If you have any issues with it feel free to let me know know and I'll help you out, or add new schemes if needed.

Glad you're enjoying Arctic!!

[–] gashead76 1 points 5 days ago (1 children)

Awesome, that worked exactly the way I was hoping it would work! Thanks for getting back to me and helping out, really dig being able to sort of integrate Arctic and Tapestry in a way that makes it feel seamless. I like being able to pull in new posts from certain communities with Tapestry and browsing Lemmy in general with Arctic. Makes for a cool combination!

I'll mine the changelog for some more possible uses for the URL schemes. I've also been building a lot of shortcuts lately and they're always useful in that context.

By the way, something else that Tapestry can do that's pretty cool is you can build custom connectors for other services and use them to connect to miscellaneous content services. Attempting to dust off the bits of JavaScript I used to know to see about building a Lemmy connector. Would be interesting to pull in messages and replies I think.

[–] CreatureSurvive 2 points 2 days ago (1 children)

That's great, glad that worked as intended!

I pushed an update last night that added a settings page that includes all the URL Schemes for Arctic. I need to clean it up a bit, and I'll probably add some more schemes for things like search, tab selection, post and comments by ID, etc. but at least for now there is a home for displaying the schemes.

The lemmy API is quite easy to use, you could even skip login by copying the JWT from another session to authenticate the custom connector (unless you can prompt for username and password in the connector) either way, it should be achievable.

[–] gashead76 1 points 1 hour ago

Thanks again for that! Being able to use these in Shortcuts and other apps really is super useful for me. I wish more developers would publish info like this.

I did start working on a connector for Lemmy, it's super rudimentary at the moment and doesn't login yet, but I got it pulling whatever community I want. It looks like it'll be pretty simple to prompt for login within Tapestry itself. Hopefully I can find some time this weekend to work on it since more.

While I've got your eyes on these words; how do you prefer feature requests, bug reports, etc... new posts in the Arctic community, TestFlight?