diff --git a/README.md b/README.md index 75baf7b..cab90f3 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,9 @@ dependencies { - + @@ -146,6 +148,9 @@ if (GcmAndroid.launchNotification) { GcmAndroid.addEventListener('register', function(token){ console.log('send gcm token to server', token); }); + GcmAndroid.addEventListener('registerError', function(error){ + console.log('registerError', error.message); + }); GcmAndroid.addEventListener('notification', function(notification){ console.log('receive gcm notification', notification); var info = JSON.parse(notification.data.info);