3

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?

mente
  • 2,746
  • 1
  • 27
  • 33

2 Answers2

4

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.

class
  • 8,621
  • 29
  • 30
  • Unfortunately I can not do it with mixed style. Why Google doesn't allow it via server-side flow? – mente Mar 04 '13 at 17:57
  • I don't know the details for why OTA isn't supported server-side but I'm sure there are many people out there and within Google who want it. Please add a feature request to the Google+ issue tracker here: https://developers.google.com/+/support – class Mar 04 '13 at 18:08
0

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!