ThePotatoKing55 / FavoritesWidgetizer

Webpage for the Favorites Widgetizer app.
2 stars 0 forks source link

Message action links through the app instead of going directly to Messages.app #5

Closed doubleaykay closed 4 years ago

doubleaykay commented 4 years ago

Compare with behavior in the following app (free version should be fine): https://apps.apple.com/us/app/favorites-widget-pro/id909578530

There, when you tap the widget button to iMessage or SMS someone, the app sends you directly into the relevant Messages.app conversation. Not sure if that API is still accessible, but might be worth looking into to improve the UX here.

doubleaykay commented 4 years ago

Did some research — not sure if this is helpful, but here’s one link I found: https://gist.github.com/cornr/46e14d1e8b160f981dc0fae53ba68b09

ThePotatoKing55 commented 4 years ago

From all the documentation I've seen on WidgetKit, I think the only possible thing a widget can open is its parent app, unfortunately. Currently I'm using "sms://" URLs to open the Messages app from the main Favorites app, which are generated from information passed through a different URL by the widgets. As far as I know, if the widget doesn't pass a URL that's registered with its parent app, it'll just open the parent without any URL rather than opening the associated app. I think passing a URL through to the parent app, then opening the Messages URL from there is the only option.

It kinda sucks on Apple's part but it's not a huge deal imo.

doubleaykay commented 4 years ago

Gotcha, that’s unfortunate. They must have changed that from the old widget API, where I believe it was possible to deep link into non-parent apps. Alas.

ThePotatoKing55 commented 4 years ago

Yeah the old widget API was much more flexible. I think they changed it a bit to keep widgets from killing battery life from the home screen.