Repository navigation
Pushwoosh Web SDK v3.117.0
refactor(platform-checker): split browser detection into pure functions
PlatformCheckeris split intodetectBrowser,getFormFactor,getPushCapabilitiesandresolvePlatform; the
class stays as a facade for sites that readPushwoosh.platformChecker, its remaining getters marked deprecated.- The Safari driver choice no longer reads the user agent: the legacy path follows
window.safari.pushNotification.
The platform code comes from that path andunifiedPlatform; the user agent only tells Firefox (12) from the rest. - Device type and device model sent with
registerDeviceare unchanged. Legacy EdgeHTML, which no longer exists in
the wild, is reported as11instead of the unrouted150. - The subscription button shows the Safari help images to every Safari, iOS included; iOS Safari used to get Chrome's.
platformCheckerbehaviour changes for sites that read it:isSafarinow meanswindow.safari.pushNotification
exists, where it used to need onlywindow.safariand "Safari" in the user agent;isEdgeis now true for Chromium
Edge.- Breaking for sites that call them: the
isSafariBrowser,isOperaBrowser,isEdgeBrowser,isFirefoxBrowser,
isChromeBrowser,isMacOS,canUseServiceWorkersandcanReceiveNotificationsmethods are removed. Use
browser.name,capabilitiesandisAvailableNotificationsinstead;isMacOShas no replacement.
Changes since v3.116.0.