We store the sender ID into the Service Worker database whenever an attempt was made at registering. This means that a successful subscribe followed by an unsuccessful subscribe with a different sender ID leaves the SW database in an inconsistent state: we'd be storing the old successful registration ID, but the new unsuccessful sender ID!
This is mainly a problem when unsubscribing from GCM, which requires the correct sender ID on Android.
Comment 1 by joh...@chromium.org
, May 6 2016