Retrieving a deep link when the app isn't inst

2019-06-17 23:42发布

问题:

In the iOS docs for Google App Invites, under Receiving Invitations, it is suggested that a deep link can be retrieved on first launch if the app wasn't installed in advance:

If the user has not yet installed the app, the user can choose to install the app from the iTunes App Store. When the app opens for the first time, the App Invites SDK will supply a deeplink if one is available.

I've looked through the reference docs for GINInvite and GINReceivedInvite but I don't see any way to instantiate GINReceivedInvite outside of an application openURL call. Anybody know how to actually have the SDK retrieve the deep link in this scenario?

回答1:

What you are trying I will say is not the correct way. You have to check in Safari web browser if app is install or not. If not navigate to App store

You can find your solution in here How to check if an app is installed from a web-page on an iPhone?