Set context in before notify on ios