![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
dvhb-badbrowser
Advanced tools
The library checks user client and shows a warning if the browser version does not meet minimal requirements
bower install dvhb-badbrowser
http://dvhbru.github.io/dvhb-badbrowser/
Put html for your alert windows in /alerts/
with this pattern:
alerts/
ru.html
ru.mobile.html
en.html
en.mobile.html
...
<script src="bower_components/dvhb-badbrowser/badbrowser.js"></script>
Call badbrowser.init
badbrowser.init({
// path to your html alerts
// could be a function:
// function (ua) {
// return '/alerts/' + lang + '.html'
// }
path: '/alerts/en.html',
// if `false` then user's choice will be saved in the cookies
// and alert window will not be showen next time
ignoreChoice: false,
// Min version of browser that will be supported
supported: {
// user of chrome v.39 will see an alert winodw
chrome: 42,
firefox: 38,
ie: 9,
opera: 26,
opera_mini: 7,
safari_mobile: 7,
android: 10,
safari: 6,
// if `false`, will show alert for any mobile browser
mobile: false
}
})
Instead of specifying supported property you can specify unsupported browsers:
badbrowser.init({
unsupported: {
// the same as supported.chrome = 40
chrome: 39,
// the same as supported.firefox = 34
firefox: 33,
// will show alert for any mobile browser
mobile: true
}
})
FAQs
The library checks user client and shows a warning if the browser version does not meet minimal requirements
We found that dvhb-badbrowser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.