Refactoring - Improving the Design of Existing Code
Chapter 7 - Moving Features Between Objects
Sometimes we have do some process in server side web page via the browser in Mobile App.
But, how do we handle the callback when we finish the process in server side?
•How to retrieve the data which user finish the process in Server Page by using WebView in Android App?
–Extracting HTML from a WebView
–Security issue in data transfer.
–App stored the encrypted Token(including identity info)
•Encrypted Data Directly
–Encrypt callback data(confidential data) by AES.
Server Page (asp.net)
–Server Page response the data with specific tag
–We can define a specific URI schema, such as “testcallback” and listen in shouldStartLoadWithRequest event.
–And define the Host name or Parameters of URI to assign different functions.