Creating refer a friend feature in BDK

Hello everyone…,

I am creating my first native app with BDK native plugin. I want to create a referral system. where the link of the application will be sent to the user2 by user1.
when the user2 will sign up on the app using that link user1 will get some bonus points.

anyone have any idea how to do that with BDK native plugin??