I’ve tried a few different approaches and I can’t get this event to fire.
My high-level process…
-
User clicks the share button in my app
-
User picks from one or more of their contacts
-
Invitations are sent
-
Invitation ID’s are stored in my database
-
The invitee installs the app using the link to the app store (currently a beta release and the invitee is an approved tester)
-
The new user opens the app.
-
This is when I would expect the event below to be triggered. Not alert is shown and adb shows no relevant output.
– FIREBASE INVITES firebaseInvites = require ( “plugin.firebaseInvites” ) firebaseInvites.init() ------------------------------------ – FIREBASE INVITES EVENT ------------------------------------ Runtime:addEventListener( “firebaseInvites”, function (e) print( “FIREBASE INVITES EVENT FIRED” ) native.showAlert(“Response”, glo.DeepPrintString(e), {“ok”}) local i = e.invitationId if(i ~= nil and i ~= “”) then local url = “http://54.213.63.96/api/UserFriendInvitation?fbInvitationId=” … i … “&newUserId=” … glo.userId print( url ) network.request( url, “GET”, handleInviteAcceptResponse ) end end )