Explanation:
Currently, my project involves using VS2022 and Net Core 9.0.
The goal is to implement a feature where users can send SMS to clients by clicking on a button.
Upon checking the device type, the app will select the appropriate syntax for sending the SMS based on whether it's Android or IOS.
However, the challenge lies in dealing with the different syntaxes required for Android and IOS platforms.
Question:
How can I determine if the device is Desktop, Android, or IOS? Are there methods available for this purpose?
Code:
For Android compatibility:
<a href="sms:/* phone number here */?body=/* body text here */">Link</a>
For iOS compatibility:
<a href="sms:/* phone number here */&body=/* body text here */">Link</a>