push and state handler for the SpaceState application (Mac and iOS)