Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Help Launch Netflix #8

Closed
Auto-m8r opened this issue Mar 7, 2019 · 1 comment
Closed

Help Launch Netflix #8

Auto-m8r opened this issue Mar 7, 2019 · 1 comment
Labels
question Further information is requested

Comments

@Auto-m8r
Copy link

Auto-m8r commented Mar 7, 2019

Hi eslavnov,

I am trying to use your code to include in my home automation.

I have all the basic commands working, however, I can't seem to follow your instruction for launching apps.

In particular, I am trying Netflix to start with. Your example code for YouTube works perfectly, however, I can't seem to replicate it when I substitute the package and class name for Netflix that I retrieved using the API call.
{"component":{"packageName":"com.netflix.ninja","className":"com.netflix.ninja.MainActivity"}}

Are you able to explain this further for me?

@eslavnov
Copy link
Owner

eslavnov commented Mar 19, 2019

Hi @Auto-m8r ,

Sorry for the late reply - I've only just noticed this issue.

You can launch Netflix with the following command:
--command launch_app --body {"label":"Netflix","intent":{"component":{"packageName":"com.netflix.ninja","className":"com.netflix.ninja.MainActivity"},"action":"Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.netflix.ninja cmp=com.netflix.ninja/.MainActivity }"},"order":0,"id":"com.netflix.ninja.MainActivity-com.netflix.ninja","type":"app"}

You can get the required body through this endpoint. I'll update the docs, thanks for pointing this out!

Let me know if this works for you. Thanks!

@eslavnov eslavnov added the question Further information is requested label May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants