Swiping not working

When I test the project using the Unity Remote on an actual device it works fine. When I build the project, transfer the .apk file to the device, install it then run it the swipe does not work.

Here is the code for detecting swipes (in c#):

if (Input.touchCount > 0)
	Touch tch = Input.touches[0];
	switch (tch.phase)
		case TouchPhase.Began:
			ready = true;
		case TouchPhase.Ended:

Thanks in advance for the help.


thats not checking if it has moved, all its doing is checking if it has ended.

you could get the position of touch on Began and get another position in Moved and on Ended compare the two position to do something,