I am new to angularjs, so this question may seem silly to try, but I really am not able to accomplish this, can any body tell me that how to return to the application from webview after reaching a specific URL, As I open a window in the browser for the payment process, so I need that when the url in the webview comes with msg success, I want to close the webview and return to my application, I should study and find a way that is in $ window. open () we pass three parameters, and in a second I can do it, but I donโt know how to implement it, can anyone provide me with a way to handle this.
I studied this link: - Tracking a child window through page loading
I also tried this function: -
if (!$window.closed){ if($window.location.href =="http://www.magentomobileshop.com/demo/index.php/payu/index/success") { $window.close() } }
thanks
source share