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
<p>On Android, you can use <code>CastContext.getPlayServicesState()</code> to check if Google Play Services are installed on the device. You can then call <code>CastContext.showPlayServicesErrorDialog</code> to inform the user and prompt them to install.</p>
<spanclass="hljs-keyword">if</span> (state && state !== PlayServicesState.SUCCESS)
106
106
CastContext.showPlayServicesErrorDialog(state)
107
107
})
108
108
</code></pre>
109
-
</span></div></article></div><divclass="docLastUpdate"><em>Last updated on 3/12/2022 by Petr Bela</em></div><divclass="docs-prevnext"><aclass="docs-prev button" href="/docs/getting-started/setup"><spanclass="arrow-prev">← </span><span>Setup</span></a><aclass="docs-next button" href="/docs/getting-started/troubleshooting"><span>Troubleshooting</span><spanclass="arrow-next"> →</span></a></div></div></div><navclass="onPageNav"></nav></div></div><scripttype="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
109
+
</span></div></article></div><divclass="docLastUpdate"><em>Last updated on 3/12/2022 by Petr Bela</em></div><divclass="docs-prevnext"><aclass="docs-prev button" href="/docs/getting-started/setup"><spanclass="arrow-prev">← </span><span>Setup</span></a><aclass="docs-next button" href="/docs/getting-started/troubleshooting"><span>Troubleshooting</span><spanclass="arrow-next"> →</span></a></div></div></div><navclass="onPageNav"><ulclass="toc-headings"><li><ahref="#android-handle-missing-google-play-services">(Android) Handle missing Google Play Services</a></li></ul></nav></div></div><scripttype="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
<p>On Android, you can use <code>CastContext.getPlayServicesState()</code> to check if Google Play Services are installed on the device. You can then call <code>CastContext.showPlayServicesErrorDialog</code> to inform the user and prompt them to install.</p>
<spanclass="hljs-keyword">if</span> (state && state !== PlayServicesState.SUCCESS)
106
106
CastContext.showPlayServicesErrorDialog(state)
107
107
})
108
108
</code></pre>
109
-
</span></div></article></div><divclass="docLastUpdate"><em>Last updated on 3/12/2022 by Petr Bela</em></div><divclass="docs-prevnext"><aclass="docs-prev button" href="/docs/getting-started/setup"><spanclass="arrow-prev">← </span><span>Setup</span></a><aclass="docs-next button" href="/docs/getting-started/troubleshooting"><span>Troubleshooting</span><spanclass="arrow-next"> →</span></a></div></div></div><navclass="onPageNav"></nav></div></div><scripttype="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
109
+
</span></div></article></div><divclass="docLastUpdate"><em>Last updated on 3/12/2022 by Petr Bela</em></div><divclass="docs-prevnext"><aclass="docs-prev button" href="/docs/getting-started/setup"><spanclass="arrow-prev">← </span><span>Setup</span></a><aclass="docs-next button" href="/docs/getting-started/troubleshooting"><span>Troubleshooting</span><spanclass="arrow-next"> →</span></a></div></div></div><navclass="onPageNav"><ulclass="toc-headings"><li><ahref="#android-handle-missing-google-play-services">(Android) Handle missing Google Play Services</a></li></ul></nav></div></div><scripttype="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
0 commit comments