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
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?
The text was updated successfully, but these errors were encountered:
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!
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?
The text was updated successfully, but these errors were encountered: