China and the Philippines have been locked in years of tension over their competing claims in the South China Sea, with friction intensifying in recent months.