Google restricts location in background

New Restrictions On Android

Google narrowing down on Android apps that track your location in background. Google is placing new restrictions on which Android apps can track your location in the background, with a new review process that will check whether an app definitely needs access to the data. The changes were announced in a blog post to Android developers earlier this week.

Google says that from August 3rd all new Google Play apps that ask for background access will need to pass review, expanding to all existing apps on November 3rd. Although location tracking is an essential feature for many apps and services, it can be pretty invasive when apps indiscriminately ask for location access. Background tracking is even worse, because it means that you might be completely unaware of which apps on your phone are tracking you at any moment in time. The new review process will force apps to justify why they need to use the feature, and have them limit their tracking when they can’t.

THE REVIEW PROCESS OFFICIALLY STARTS IN AUGUST

Google says that this review process will look at whether an app’s core functionality actually justifies this background location access. A social networking app that lets users opt in to continuously sharing their location with friends would be okay, Google says. However, it would be harder to justify this for a store locator app, since this would work just as well if it only got location access while the app is in use. Clearly informing the user will help an app’s chances of getting approved, Google adds.

The changes were announced as part of a wider crackdown on location tracking in Android 11, which follows in iOS 13’s footsteps by letting you grant sensitive permissions on a one-time basis. Apple’s operating system also offers reminders that apps are tracking your location in the background. However, these policies seemingly don’t apply to some of Apple’s own apps like Find My, in a move that’s been criticized by some developers.

In contrast, Google says that its policies will apply to its own apps, which is reassuring given the company’s less-than-perfect approach to location tracking in the past. Back in 2018 Associated Press found that turning off Google’s Location History setting wouldn’t stop all location tracking because of an additional Web and App Activity setting that would continue to track you. In response, last year Google introduced a new feature to allow you to automatically delete this location data automatically after a certain amount of time.

The announcement post also reminds developers that they’re responsible for any third-party SDKs and libraries they use in their apps. Last year, one study found that some apps were using these SDKs to track users, even when users had opted out of location tracking. Although the review process isn’t due to officially start until August, Google says that developers can request feedback starting in May to see whether their apps will be able to justify background location tracking.

Which Is Better for Your Business

Kotlin Vs Java

Whenever we hear about the development of an android
 application, the only programming language that comes in our minds is Java. Kotlin became the new official language for programming, as
declared by Google, for Android development back in 2017. Since then, the Android development community is in a state of constant confusion and dilemma. And the question that is troubling them is obvious i.e. should they now use Java or Kotlin for the development of the android apps?
Java has been the go-to language for almost all android
developers but after Google announced Kotlin as the most superior programming language, the dominance of Java over other language is been questioned. Though the development and improvements are still under process, Kotlin sits at the throne and has been considered as a mature ecosystem. Let’s take a deeper dive
into Kotlin vs Java.

Advantages of Kotlin

Kotlin has a tight grip when it comes to android
development. However, it is also used in Back-end projects like Spring 5.
Kotlin can be compiled to almost all kinds of
platforms such as JVM, Android, Native, and JavaScript. Using the Multi platform 
framework of Kotlin you are able to extract a common database that is capable
of targeting all platforms at the same time. Kotlin can be used in Gradle build scripts directly because of its scripting capabilities.

Converting Java into Kotlin is easy. You can do it by just installing the Kotlin plugin, adding it to Gradle build files and
 then select ‘convert’. Modern programming concepts are supported by Kotlin. These include delegates, higher-order functions, extension functions
and much more in order to provide help in building clean APIs. Null safety support that is built-in and an ultimate lifesaver is made available by Kotlin. Especially on android, Kotlin is way more expressive and concise as compared to Java. This means there is very little room left for errors.

New modules can be written in Kotlin which can work alongside your existing Java code. One more added benefit is that it is compatible with, the JVM, Java frameworks and libraries. It can be easily integrated with Maven build systems or with Gradle. Developers can easily benefit from the fast-growing collection of projects on GitHub and are open source, also from various
 learning resources, books, and online courses. The adoption of Kotlin will not cost anything. (Except for training and learning)

Disadvantages of Kotlin

Kotlin’s compilation speed is slower as compared to Java. Though in some cases, Kotlin seemed to be the winner. It has a small community of developers that means greater chances of difficulties in finding answers to important questions and limited learning resources. Kotlin developers are increasing in numbers but finding an experienced professional or an expert for your team can be challenging and will require some extra effort. Kotlin, in corresponding JVM byte-code, sometimes creates a large amount of boilerplate.

The steep learning curve, when the entire team is switched to Kotlin because of the concise syntax of the language, can be both; challenge and a blessing.

Advantages of Java

Java is easy to understand and it is a relatively simpler language. The learning curve is pretty simple and short. For the development of cross-platform applications, Java is the go-to language of many developers. Also, it works very well for native applications. The applications that are built on Java are compact and lightweight which leads to better user experience.

Assembling and handling of projects that are bigger becomes easier and simplified, credit goes to accelerated assembly it has with Gradle. Due to its fast build process, Java allows you to do more coding in less time. It is easier to understand and learn. Can be run it in a virtual machine or in a browser window. It provides great help when you are reusing the code and updating the software. Android is greatly reliant on Java. The Android SDK is full of several Java libraries.

Disadvantages of Java

The limitations in Java cause various problems with the design of the Android API. Being a verbose language, it carries a greater risk of bugs and errors as it requires more code writing. Java is slower as compared to various other programming languages and requires more memory.

Java vs Kotlin – In Terms of Performance

There are no measurable and consistent differences between these two programming languages when it comes to their comparison in terms of performance. But the ‘Kotlin vs Java performance’ debate is ongoing.
Kotlin is known for generating byte-code which is identical to byte-code of Java. Therefore, these two are considered to be delivering a similar performance. The case is different when it comes to partial and full builds. Java is the faster programming language in the case of full builds. It has a 13 percent faster rate of compilation as compared to Kotlin.
In the case of incremental compiling, Kotlin takes the lead.It can be said that Kotlin lags behind Java when it comes to clean complete builds but surpasses Java when it comes to incremental builds.

Why Kotlin is More Popular and Who Is Using It?

Kotlin is being used everywhere Java was being used and sooner it will be used in more places. Currently, it is greatly used for the development of android applications because of Google’s valuable support. Organizations are now adopting Kotlin to stay more updated and competitive including Google, Pinterest, Trello, Uber, Kickstarter, etc.

Benefits of Kotlin vs Java

  • It Is Concise.
  • It Is Safer.
  • It Is Better At Supporting Functional Programming.
  • It Speeds Up Everyday Tasks.
  • It Reduces Bugs and Errors.
  • The Code Base’s Quality and Appearance.
  • Developers’ Favorite.
  • Leveling Up the Skills.
  • Support for Developers.

At AIMOB, we have developed Kotlin Apps for all sorts of projects, websites, and applications. We offer full consultations for Kotlin Apps. Are you interested in developing your Kotlin Mobile app with us? Do have any questions on how to make an Kotlin Mobile app? Don’t hesitate to get in touch. Meanwhile, you can explore more examples of great Kotlin Mobile apps and read about best practices.