7
LLAMS
6y

Ok, bug 2.
Another iOS one. I was handed an app that was built half-assedly by another team in a couple of days for a demo, And I had to maintain it and get it into a release-able state.
Someone had implemented deep linking in the app, so you could open a record by using a url from Safari/email etc. Worked fine. Problem was, the app had a login/pin screen, and if you werent authenticated and you tried to link from a url, it would just bring you to the login screen and once you logged in it would take you to the main menu rather than where you wanted to go.
So I added some logic to the linking code that if the app wasnt authenticated it would save the link in a kind of global variable. Then once you logged in and the app entered the authenticated state, it would check for a saved link and execute it if present, then clear it so that it wouldnt try to open every time you log in.
That was an interesting one to try and solve.

Comments
Add Comment