I am using AppInviteInvitation to let users invite other others for my app. Does anyone know if there's a way from the API to prevent users from these two scenarios:
Thanks!
Firebase App Invites does not allow you to get information on the list of users who has been invited before or already have an application in their smartphone.
I would recommend to use combination of "Firebase App Invites" and "Facebook App Invite".
Facebook App Invite take care of both the scenarios you mentioned:
1) Already have the app installed - If the user already have an app installed the users won't see your invite in their notification.
2) Received the invitation previously - If the users already received the invite before they won't receive it further after a threshold time.
But again you don't have any API to access this information, the above scenario is taken care by Facebook itself.