-
Recently watched the navigation series from Point Free and was wondering how would deep linking be approached in the composable architecture? Had a look and did not find any examples, also did not see deep linking capabilities in the isowords app... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Deep linking in TCA would happen in much the same way as it did in the last episode of the navigation series (this one). You first need to figure out how you are going to process the incoming deep link URL in order to figure out where the user needs to be routed (we used our parsing library to accomplish this, but you can use anything) and then you construct the app state to represent where you want to navigate to. Although isowords doesn't need deep linking it does need to route push notifications, which is similar. We parse an incoming push notification payload and figure out where to navigate the user here: In particular, if the push notification is the daily challenge report we navigate the user to the daily challenge screen here: Hope that helps a little bit. |
Beta Was this translation helpful? Give feedback.
Deep linking in TCA would happen in much the same way as it did in the last episode of the navigation series (this one). You first need to figure out how you are going to process the incoming deep link URL in order to figure out where the user needs to be routed (we used our parsing library to accomplish this, but you can use anything) and then you construct the app state to represent where you want to navigate to.
Although isowords doesn't need deep linking it does need to route push notifications, which is similar. We parse an incoming push notification payload and figure out where to navigate the user here:
https://github.com/pointfreeco/isowords/blob/b87f4c61c0523564adf17c031f9fa4b88a…