Support cordova online/offline notifications via hash fragment