deprecation-warning

getCurrentPosition() and watchPosition() are deprecated on insecure origins

青春壹個敷衍的年華 提交于 2019-11-26 10:31:39
I am getting this error on my website which requests Geolocation data from the user: getCurrentPosition() and watchPosition() are deprecated on insecure origins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See goo.gl/rStTGz for more details. I mean its basically just a notice, and the google link just says its being deprecated. I have no plans on moving my website to SSL... so is there an alternative for someone like me? Found a likely answer in /jstillwell's posts here: https://github.com/stefanocudini/leaflet

Is `shouldOverrideUrlLoading` really deprecated? What can I use instead?

爷,独闯天下 提交于 2019-11-26 09:18:37
问题 Is \"shouldOverrideUrlLoading\" really deprecated? If so, what can I use instead? It seems like shouldOverrideUrlLoading is deprecated targeting Android N and I need to make an app work since API 19 until the latest right now which is Android N (beta), I use some features that are new in Android N (like Data Saver), so targeting Marshmallow will not help with the issue since I need to use those new features, here is the part of the code I use: public boolean shouldOverrideUrlLoading(WebView

variantOutput.getPackageApplication() is obsolete

試著忘記壹切 提交于 2019-11-26 06:39:39
问题 with Gradle 4.10.1 and the Android Gradle plugin updated to 3.3.0 , I get the following warning: WARNING: API \' variantOutput.getPackageApplication() \' is obsolete and has been replaced with \' variant.getPackageApplicationProvider() \'. the line, with the surrounding context (which is assigning output file-names by build variant): applicationVariants.all { variant -> variant.outputs.all { output -> if (variant.getBuildType().getName() in rootProject.archiveBuildTypes) { def buildType =

getCurrentPosition() and watchPosition() are deprecated on insecure origins

醉酒当歌 提交于 2019-11-26 02:09:55
问题 I am getting this error on my website which requests Geolocation data from the user: getCurrentPosition() and watchPosition() are deprecated on insecure origins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See goo.gl/rStTGz for more details. I mean its basically just a notice, and the google link just says its being deprecated. I have no plans on moving my website to SSL... so is there an alternative for someone