Hey, we have some different ways to run our program. Either a slower cheaper way or a fast but more costly way. The costly way doesn’t work well with the older phones.
Is there an easy way to now If a phone is good enough to handle the fast way?
Or do I have to check “sys.get_sys_info” and compare to all models that are out there?
Hmm, no, there’s no sys.is_high_end_device() or anything like that. If we’re talking CPU speed I guess you could do a quick benchmark at startup to determine if the phone is a quick or slow one. You could perhaps measure how many prime number you can find in half a second or something, and based on the number you can give the device a performance rating.