Yon cannot clear the interrupt on change flag... You need to read the port to clear it.. Create a line that reads the port..
something like this...
if(GPIO);
void interrupt t0intr(void)
{
if(INTCONbits.T0IF) // check the timer0 over flow interrupt flag
{
timerInterruptIsr();// timer0 overflow interrupt has been occur call the isr
INTCONbits.T0IF =0; // clear the timer0 interrupt flag
}
else if (INTCONbits.GPIF) // check the interrupt on change flag
{
LED=1; // to blink the LED when IR signal is received
interruptOnChangeIsr(); // interrupt on change has been detected call the isr
INTCONbits.GPIF =0; // clear the interrupt on chage flag
LED=0; // to blink the LED when IR signal is received
}
}