You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: BaseActivateApplicationOptions setting does not take effect #2141
I use the most recent available driver/plugin and server versions
Is the component officially supported by the Appium team?
I have verified the component repository is present under the Appium organization in GitHub
Is there an existing issue for this?
I have searched the existing issues
Current Behavior
iosDriver.activateApp(caseContext.getBundleId(), new BaseActivateApplicationOptions() { @Override public Map<String, Object> build() { JSONObject jsonObject = new JSONObject(); jsonObject.put("configEnv", "xxx"); return Map.of("environment", jsonObject); } });
I want to via in some parameters when the app starts to control the status of certain functions in the app, but it does not actually take effect.
I tried the value "xxx" on android, and it worked. adb command "adb shell am start -n ctrip.english/com.ctrip.ibu.myctrip.main.module.home.IBUHomeActivity --es configEnv xxx"
I also searched for other related information, such as through wda.Client().session(cls.package_name, environment={"configEnv": xxx}),and it worked also.
Expected Behavior
I want to know how set this param via appium java(by the way, the "configEnv" is a parameter defined by ourselves )
Minimal Reproducible Example
iosDriver.activateApp(caseContext.getBundleId(), new BaseActivateApplicationOptions() { @OverRide
public Map<String, Object> build() {
JSONObject jsonObject = new JSONObject();
jsonObject.put("configEnv", "xxx");
return Map.of("environment", jsonObject);
}
});
This issue is a duplicate of #2149 @mykola-mokhnach I’d like to start contributing to open source. I can help with issue labeling and any requests related to Java code (fixing tests, bug fixing, or adding new features) - please let me know if you have anything
Activity
jjqi92 commentedon Apr 2, 2024
Can you help me take a look?
vicky-iv commentedon Aug 14, 2025
This issue is a duplicate of #2149
@mykola-mokhnach I’d like to start contributing to open source. I can help with issue labeling and any requests related to Java code (fixing tests, bug fixing, or adding new features) - please let me know if you have anything