Support for the latest betas (v5.0.36.0+)

Updated method names and becuase refreshFlashButton was removed, use
onCameraStateEvent from now on
Fix for sharing

When Snapchat was already opened and the onCreate method wasn't called,
no media was invoked. Solved by clearing the task.
v2.4.1 release