Posts

Showing posts from February 5, 2019

OneSignal: hide bell button on some pages(routes)

Image
0 I have an SPA(angular v.5) application. I'm importing oneSignal by CDN. I have to hide the bell icon from one signal in some routes(pages). I tried something like this: ... const oneSignal = window.OneSignal try{ oneSignal.init({ /* My config */ }).then(() => { this.displayButton$.subscribe(value => { if (value) { oneSignal.notifyButton.launcher.show(); } else { oneSignal.notifyButton.launcher.hide(); } }); }) } catch(err) { ... This solution works perfectly for all browser except Safari(v. 12 MacOS). It happens because on safari oneSignal.notifyButton is equal to null. I didn't find those show and hide methods in docs. I found them in oneSignal code. I thought it could be because some polyfill is missed but I stuck with this idea. If anyone can h...

National Archives and Records Administration

Image
"NARA" redirects here. For the defunct immigration agency of Pakistan, see National Alien Registration Authority. For other uses, see Nara (disambiguation). independent agency of the United States government which preserves and provides access to federal records National Archives and Records Administration NARA Seal National Archives logo Agency overview Formed June 19, 1934 ; 84 years ago  ( 1934-06-19 ) (Independent Agency April 1, 1985) [1] Preceding agency National Archives and Records Service (GSA) Type Independent Jurisdiction U.S. federal government Headquarters National Archives Building 700 Pennsylvania Avenue NW, Washington, D.C., U.S. Employees 3,112 (2014) [2] Annual budget $391 million (FY 2012) [3] Agency executives David Ferriero, Archivist [4] Debra Steidel Wall, Deputy Archivist [5] Child agency Office of the Federal Register Website www.archives.gov The National Archives and Records Admi...