I don’t think any campaigning is allowed from the White House. Why would Air Force One be any different?
I think this is an election violation.
Just found out the Hatch Act excludes the President and Vice President from the Act.
“Hatch Act of 1939, officially An Act to Prevent Pernicious Political Activities, is a United States federal law whose main provision is to prohibit employees (civil servants) in the executive branch of the federal government, except the President, Vice-President, and certain designated high-level officials of the executive branch, from engaging in partisan political activity.”