There are applications that allow the use of eye tracking on smartphones.
So far I have not tried or tested any of these applications. Based on my experience with webcam eye trackers I suspect a rather weak accuracy and precision.
Who has experience with eye tracking on smartphones?
What can you expect from eye tracking on smartphones?
Can eye trackers on smartphones be used for practical purposes? (e.g. tracking how a user finds an icon)
In order to have highlights in practice over eye tracking, I suggest you follow https://www.gazept.com/?utm_medium=paid&utm_keyword=eye%20tracker&utm_source=104309413832&utm_campaign=10509798710&utm_network=g&utm_placement&utm_prodid&gclid=CjwKCAiA7939BRBMEiwA-hX5J8OY_RC4Lbeka8e0TaS6tWU3llwpd-1Cqo-V2_TzLYHneU3gms1dEhoCj64QAvD_BwE
Conference Paper Smartphone Eye Tracking Toolbox: Accurate Gaze Recovery on M...
You could employ a haar cascade detector to isolate the pupil and then use a U-net segmentation algorithm to fine-tune the detection. This can be done via the OpenCV python module. But do remember the eye-tracking is as good as the resolution of the camera you are using. Since smartphones now come with 21Mp front cams, I guess the eye-tracking is good enough. But I don't premium eye-tracking features will be available for free. I would advise you to experiment with OpenCV python module and build something from scratch.