How to return value from "eventCallBack" from JS method
see JS function definition:
window.plugins.GCM.register("428641231987", "GCM_Event", this.GCM_Success, this.GCM_Fail);
Here
@param senderId - GCM service identifier
@param eventCallback - {String} - Name of global window function that will handle incoming events from GCM
@param successCallback - {Function} - called on success on registering device
@param failureCallback - {Function} - called on failure on registering device
Now I want to return value generated in "GCM_Event"
var requiredValue = window.plugins.GCM.register("428641231987", "GCM_Event", this.GCM_Success, this.GCM_Fail);
I want value in requiredValue