javascript - Unable to call sencha touch function from appdelegate's handleOpenURL -
i trying call sencha touch function named handleopenurl in maincontroller.js appdelegate.m in ios
- (bool)application:(uiapplication *)application handleopenurl:(nsurl *)url { nsstring* jsstring = [nsstring stringwithformat:@"handleopenurl(\"%@\");", url]; [self.viewcontroller.webview stringbyevaluatingjavascriptfromstring:jsstring]; return [super application:application handleopenurl:url]; }
but getting called
maincontroller.js
handleopenurl: function(url) { console.log(url); }
url not string. try using [url absolutestring] instead of url in jsstring.
Comments
Post a Comment