Search code examples
androidgoogle-app-invites

Google App Invites between different android applications


I have two different android applications with different package names (app ids). These applications are for different user "roles". Is it possible to send invite to install/setup first application from second application using Google App Invites API?


Solution

  • What you are trying to do (send an invite to install app Y from app X) is not possible with the App Invites API. The intent of the API is for users to invite their friends/contacts/colleagues to use apps that they are already using and enjoying. So for that reason you can only recommend the current app.

    However you could include a link to the second app as part of the deep link data. You could then do your own logic to implement something like this:

    1. Bob uses app X and invites Alice to use it.
    2. Alice gets the invite and installs app X.
    3. App X parses the deep link and says to Alice "You may also be interested in App Y, would you like to see it in the Play Store?"
    4. Alice can decide if she also wants App Y.