Sergey Shvets
Sergey Shvets

Reputation: 455

Google Marketplace v2 install flow no notification to application that something was installed

I'm trying to migrate our application from v1 to v2 install flow and crawling through all possible docs wasn't able to find a clear explanation of how install process work.

I setup an application and put a link to 'Universal Navigation extension'. Google Marketplace SDK and Google Marketplace API enabled. Then when I install an app it installs on google side, but there is no callback for my application to understand that application was installed. Then when I click 'Launch App' I redirected to the link I provided, but there are no authorization or signature to verify that this request is actually from google and no clue to understand from which user it came. I assume that I can put some parameter to this URL and then use License API to get info about user, but there are no documentation about this and in old documentation looks like the only parameter available is ${DOMAIN_NAME}.

Can somebody point me to the documentation which describe this process in more details? Are there any call to notify application that someone has installed their application?

Thanks in advance!

Upvotes: 2

Views: 367

Answers (2)

Vinay Sahni
Vinay Sahni

Reputation: 5053

Since there's no notification on installation, you'll need to do a lookup on first access. One thought is to use the ${DOMAIN_NAME} variable in the app launch url to figure out the domain. Then when a request comes in, attempt OAuth2 login using the domain passed in as the "hd" parameter. When complete, you'll now have an authenticated user and know which domain the user is trying to access - enough information to create an account if none exists.

Upvotes: 4

Eric Koleda
Eric Koleda

Reputation: 12673

Unfortunately there are no installation callbacks at the moment. You can query the Google Apps Marketplace API to get a list of license notifications, which include installations, deletions, etc, but at the moment we don't support push notifications on that resource.

Upvotes: 2

Related Questions