Season chicken pieces with salt and pepper.
In a large skillet, heat olive oil over medium heat. Add the chicken and cook until lightly browned, about 4-5 minutes.
Add diced onion and garlic. Sauté for 2 minutes until softened.
Stir in the uncooked rice, chicken broth, pineapple chunks with juice, soy sauce, ginger, and red pepper flakes if using.
Bring the mixture to a gentle boil, then reduce heat to low. Cover and simmer for 18-20 minutes, or until the rice is cooked and liquid is absorbed.
Remove from heat and let it sit covered for 5 minutes. Fluff with a fork, garnish with parsley or green onions, and serve warm.