A test of the alert system will take place on every smartphone in the country on October 4.