Refactored android side to use last SDK and receive notifications on foreground