Unfortunately Android Beam has been Deprecated in Android 10 replaced by google nearby, because it was unreliable as Bluetooth and Wifi Direct are better.
If you real want to use NFC (which not every phone has) then one Android device could use Host Card Emulation (HCE) and emulate a real NFC card https://developer.android.com/guide/topics/connectivity/nfc/hce.
You would get it to emulate a card with an NDEF message with a custom mime type data on it and if you App was installed on the receiving Android Device with the correct Intent Filter https://developer.android.com/guide/topics/connectivity/nfc/nfc#filter-intents for the custom mime type, you App would be launched and passed the custom data or if your App was already running and it enableForegroundDispatch
https://developer.android.com/guide/topics/connectivity/nfc/advanced-nfc#foreground-dispatch it would just pass it the data.
If you App was not installed on the receiving Android Device you could also put and AAR record on the emulated card https://developer.android.com/guide/topics/connectivity/nfc/nfc#aar which would send the user to the App store to get your App.
Programming HCE is not the easiest to do and you would need to emulate the NDEF AID (you are basically emulating a type 4 tag which spec is at http://apps4android.org/nfc-specifications/NFCForum-TS-Type-4-Tag_2.0.pdf)
Probably easiest to get a real NFC tag, and play around with NDEF messages on it to make sure you can get it to do what you want (the real card would be simulating the phone doing HCE) before you dive in to programming the HCE part. This is because there are many Apps to write the NDEF message you need to send between devices to a real card.