I have been struggling with an issue for the past few days.The issue is
TheApp.getAppVersion = function()
var vpbVersion = VestaPhoneBridge.GetUserAgent().version;
if(vpbVersion != null)
The above method is calling a function in another .js file which is as follows:
VestaPhoneBridge.GetUserAgent = function(_callback)
//getting response here from native
The problem is in the function "bridge.callHandler('initiateGetUserAgentFunc','test', function(response) " inside the above function
we are needed to return a value but we need to return the value to VestaPhoneBridge.GetUserAgent instead of "bridge.callHandler('initiateGetUserAgentFunc','test', function(response)"
The problem is we cannot use callback function in js also.The only thing is we have to return a value.
So it would be really great if you could suggest some solution for this problem.
Murli Krishna .V
Thank you very much for your answer.
Yup yup! Happy to help.