سؤال

Google released nice feature called Over-The-Air Installs. But documentation has example only for google's sign-in button.

Checked Google API PHP Client and it doesn't have anything related. Tried adding apppackagename and app_package_name to authorization url - didn't help. Another problem is that Google doesn't enable this feature for all clients.

Is it possible to use it via oauth triggered on server-side? Does Google somehow indicate that you're allowed to use this feature?

هل كانت مفيدة؟

المحلول

It is currently not possible to trigger Over-The-Air Installs using the server-side flow. It is recommended that you use the client-server flow as described and demonstrated in the quick-start sample apps instead of using a server-side flow.

You can direct users to install the app at the conclusion of your install by linking to your app in the play store. From the play store, the user could still install your app directly to their device, it would just not happen in the sign-in dialog.

نصائح أخرى

Even hybrid client-server flow needs to implement the "sign-in button" to your page... https://developers.google.com/+/web/signin/server-side-flow https://developers.google.com/+/web/signin/client-to-server-flow

Don't know why Google is doing this way!

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top