I’ve created a sample of cordova app and downloaded native tokbox sample app. I’ve carefully integrated the native tokbox sample in cordova app. As both these samples are separate so they work one at a time.
In “AppDelegate.m” file, I have this function:
- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
self.viewController = [MainViewController alloc] init]; //line1
return [super application:application didFinishLaunchingWithOptions:launchOptions]; //line2
//return YES; //line3
}
which automatically created when we create a cordova app. Now, when I run this above code I can see cordova app running. But when I uncomment the line3 and comment the line1 and line2 then I can see the tokbox sample view.
Now, I want to see this tokbox sample view on top of my cordova view on some other function. As all the functions are already been created in tokbox sample so I just want to call that file so that the view automatically changes or comes on top of previous view and the functions run from that file.
In Android, I have done this by using Intent to move from one file to another.
If anyone can tell me the code to achieve this it’ll be a great help.