Service notification - native code.

TODO:
1. Code refactoring
2. Add notification logic (look for task 7 at the TODO file).