Fixed issues #85 and #94 (partially)

Fixed issue #85 (No notifications in android when the app is closed) following suggestions of @rihdus and @scotthooker.

Fixed issue with ```coldstart``` flag not being triggered (mentioned in issue #94).