Heat oil in a wok or large pan over medium-high heat. Working in batches, fry the shredded chicken for 3-4 minutes until golden and cooked through. Transfer to a bowl and set aside.
In the same pan over medium heat, fry the diced onion and crushed garlic for 3-4 minutes until translucent.
Add the cashew nuts and fry for 1-2 minutes over medium heat.
Add the pineapple pieces and chilli pepper and fry for 2 minutes over medium heat.
Deglaze the pan with about 1 tablespoon of pineapple juice over medium heat.
Add the coconut milk and stir well.
Stir in the curry powder, ginger powder, instant chicken broth, and the reserved chicken. Season with salt and pepper to taste.
Simmer over low heat for 10 minutes until the flavors blend and the chicken reaches an internal temperature of 74°C (165°F).