shutdown cleanup
Added WP8 support
Added amazon-fireos platform.
Updated readme file with Fire OS details.

Added server script and readme for Amazon Device Messaging.
Fixed couple of issues - 1. permission denied when launching the app from notification. 2. Message is not downloaded when resumed after hitting hoem button.
Config options are persisted now. When app is forced stopped, we read config options from sharedPreferences.
Also, fixes error message not being shown properly.
Update error message for Otter1 where ADM is not supported

JIRA: https://issues.labcollab.net/browse/ATLS-1064

cr https://cr.amazon.com/r/2292352/
HTML decoding the message before adding it to notification.
Updated event names for the callback so existing sample code works with both android and amazon-fireos
Added amazon-fireos platform.
Updated readme file with Fire OS details.

Added server script and readme for Amazon Device Messaging.
Fixed couple of issues - 1. permission denied when launching the app from notification. 2. Message is not downloaded when resumed after hitting hoem button.
Config options are persisted now. When app is forced stopped, we read config options from sharedPreferences.
Also, fixes error message not being shown properly.
Update error message for Otter1 where ADM is not supported

JIRA: https://issues.labcollab.net/browse/ATLS-1064

cr https://cr.amazon.com/r/2292352/
HTML decoding the message before adding it to notification.
Updated event names for the callback so existing sample code works with both android and amazon-fireos
typo
Take deserialization outside the methods as it can be reused.

Adding TryCast method improves readability and decreases the code nesting.
One channel per application and js callback functions.

It appears that MPNS opens only one channel per application and defines it by name.
Sometimes the channeluriupdate is called with delay and it looks like the channel has no Uri. Handle this by adding urichangedcallback js function.
Added js error callback to handle errors.
Added error to notify the user if they try to open new channel but already have opened one as this is throwing argument exception.
Extract the js function execution in separate method as it is reused.
Add unregister channel

If user want to open new channel they have to have the option to close the current one.
Update the error text.
Remove the channel field as it is not necessary.