Heat the oil in a large skillet and saute the onion over medium heat until softened. Stir in the ginger, mango or papaya, brown sugar, red pepper flakes, salt and water. Bring to a boil, reduce the heat, and simmer for 35 to 40 minutes or until the fruit is very soft. Stir in the scallions and cook for another 5 minutes. Remove from the heat and let cool. Keep refrigerated until ready to serve.;