Skip to content

Commit 2784ce4

Browse files
authored
feat: do not get active process information in a new session request (#774)
* fix: improve new session creation performance * Update FBSessionCommands.m
1 parent 5d2bd5f commit 2784ce4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

WebDriverAgentLib/Commands/FBSessionCommands.m

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,10 @@ + (NSString *)buildTimestamp
410410
];
411411
}
412412

413+
/**
414+
Return current session information.
415+
This response does not have any active application information.
416+
*/
413417
+ (NSDictionary *)sessionInformation
414418
{
415419
return
@@ -438,15 +442,10 @@ + (NSString *)deviceNameByUserInterfaceIdiom:(UIUserInterfaceIdiom) userInterfac
438442

439443
+ (NSDictionary *)currentCapabilities
440444
{
441-
FBApplication *application = [FBSession activeSession].activeApplication;
442-
// to log the info in the system
443-
[FBLogger logFmt:@"Current active application bundle id is %@", application.bundleID];
444445
return
445446
@{
446447
@"device": [self.class deviceNameByUserInterfaceIdiom:[UIDevice currentDevice].userInterfaceIdiom],
447-
@"sdkVersion": [[UIDevice currentDevice] systemVersion],
448-
@"browserName": application.label ?: [NSNull null],
449-
@"CFBundleIdentifier": application.bundleID ?: [NSNull null],
448+
@"sdkVersion": [[UIDevice currentDevice] systemVersion]
450449
};
451450
}
452451

0 commit comments

Comments
 (0)