CD 25 BROWN SPOTTING

Any idea what this could be? I have irregular periods but as per the apps i should get my period in a week. I have a bit of discomfort in my right side..its brown spotting mixed with CM