Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Accessing launchArgs in Android #530

Closed
kamal opened this issue Jan 20, 2018 · 1 comment
Closed

Accessing launchArgs in Android #530

kamal opened this issue Jan 20, 2018 · 1 comment

Comments

@kamal
Copy link

kamal commented Jan 20, 2018

Please add documentation on accessing launchArgs on Android. On iOS this is mentioned in passing

The added launchArgs will be passed through the launch command to the device and be accessible via [[NSProcessInfo processInfo] arguments]

It'd be helpful to see how the developer can modify AppDelegate.m and MainActivity.java in order to pass these args to the React Native app.

@LeoNatan
Copy link
Contributor

LeoNatan commented Feb 7, 2018

This is a logic that is beyond the scope of Detox. Each platform is completely different in how it handles command line arguments. I don't think it makes sense to teach users how to write their apps in the Detox documentation. A good place for this question on how to handle launch arguments and possibly pass them to React Native is Stack Overflow and official Facebook documentation.

@LeoNatan LeoNatan closed this as completed Feb 7, 2018
@wix wix locked and limited conversation to collaborators Jul 23, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants