How did Aguinaldo become president when he never won independence?
I've never heard of a commonwealth having a president. Does guam or Puerto Rico have a president? Provincial Governor yes. Having captured cavite does not win independence for the entire territory of Las Islas de Felipinas just because Aguinaldo (Japanese Collaborator/Yellow Tail/Turn Coat) and his fellow cavitenians declared it to be so, there were no treaties or surrender signed by Spain. In the U.S. after the British complete defeat by the colonies, it took years of debate to draft a system of government and elect a president 13 years after U.S. independence. Only the U.S and other formidable countries at the time of spanish american war had the fire power, technology (naval ships/battle group) and tactical know how to expel the spaniard. The only S/E asian country to expel two super Power was Vietnam 1st with France then the U.S next.
Bonifacio captured the hearts of the masses in most provinces except cavite and to steal the thunder away from Bonifacio was to take Bonifacio out of the picture.
Independence was never won on June 12th but granted on July 4th after WWII. Aguinaldo was a master conspirator and opportunist fueled with extreme egotistical arrogance promoting himself into a revered figure without really earning and accomplishing true independence no matter who gets in his way whether it be Antonio Luna or Andres Bonifacio.