Pete LePage
Strategy

New in Chrome 88  |  Web  |  Google Developers


Chrome 88 is starting to roll out to stable now.

Here’s what you need to know:

I’m Pete LePage, working, and shooting
from home, let’s dive in and see what’s new for developers in Chrome 88!

Manifest v3

Chrome 88 now supports extensions built with manifest v3, and you
can upload them to the Chrome Web Store. Manifest v3 is a new extension
platform, that makes Chrome extensions more secure, performant, and privacy
respecting, by default.

For example, it disallows remotely hosted code, which helps Chrome Web Store
reviewers better understand what risks an extension poses. And should allow you
to update your extensions faster.

It introduces service workers as a replacement for background pages. Since
service workers are only resident in memory when needed, extensions will use
less system resources.

And to give users greater visibility and control over how extensions use and
share their data, in a future release we will be adopting a new install flow
that allows users to withhold sensitive permissions at install time.

Check out developer.chrome.com
for complete details, and how to migrate your current extension to manifest v3.

CSS aspect-ratio property

Normally, only some elements have an aspect ratio, for example images.
For them, if only the width, or the height, is specified, the other is
automatically computed using the intrinsic aspect ratio.

<!-- Height is auto-computed from width & aspect ratio -->
<img src="..." style="width: 800px;">

In Chrome 88, the aspect-ratio property allows you to explicitly specify an
aspect ratio, enabling a similar behavior.

.square {
  aspect-ratio: 1 / 1;
}

You can also use progressive enhancement to check if it’s supported in the
browser, and apply a fallback if necessary. Then, with the new CSS 4 not
selector, you can make your code a little cleaner!

.square {
  aspect-ratio: 1 / 1;
}

@supports not (aspect-ratio: 1 / 1) {
  .square {
    height: 4rem;
    width: 4rem;
  }
}

Thanks to Jen Simmons
for calling out this is supported in the latest Safari Technical Preview,
so we should see it in Safari soon! And check out
Una’s demo to see it in action.

Heavy throttling of chained JS timers

Chrome 88 will heavily throttle chained JavaScript timers for hidden pages in
particular conditions. This will reduce CPU usage, which will also reduce
battery usage. There are some edge cases where this will change behavior,
but timers are often used where a different API would be more efficient, and
more reliable.

That was pretty jargon heavy, and a bit ambiguous, so check out Jake’s article
Heavy throttling of chained JS timers beginning in Chrome 88
on developer.chrome.com for all the details.

Play billing in Trusted Web Activity

You can now use Play Billing in your Trusted Web Activity to sell digital
goods and subscriptions using the new Digital Goods API. It’s available as an
origin trial in Chrome 88 on Android, and we expect it to expand the origin
trial to Chrome OS in the next release.

Once your accounts are set-up, update your Trusted Web Activity to enable Play
billing, and create your digital goods in the Play Developer Console. Then,
in your PWA, add your origin trial token, and you’re ready to add the code
to check for existing purchases, query for available purchases, and make new
purchases.

// Get list of potential digital goods

const itemService =
  await window.getDigitalGoodsService("https://play.google.com/billing");

const details =
  await itemService.getDetails(['ripe_bananas', 'walnuts', 'pecans' ]);

Adriana and Andre go into more detail in their Chrome Dev Summit talk –
What’s new for web apps in Play,
or check out the docs.

And more

And of course there’s plenty more.

  • To conform to a change in the HTML standard, anchor tags with target="_blank"
    will now imply rel="no-opener" by default, this helps prevent
    tab-napping attacks.
  • Most operating systems enable mouse acceleration by default, but that can be
    a problem for some games. In Chrome 88, the Pointer Lock API allows you to
    disable mouse acceleration.
    That means the same physical motion, slow or fast, results in the same
    rotation, providing a better gaming experience and higher accuracy.
  • And addEventListener now takes an Abort Signal as an option.
    Calling abort() removes that event listener, making it easy to shut down
    event listeners when no longer needed.

Further reading

This covers only some of the key highlights. Check the links below for
additional changes in Chrome 87.

Subscribe

Want to stay up to date with our videos, then subscribe
to our Chrome Developers YouTube channel,
and you’ll get an email notification whenever we launch a new video.

I’m Pete LePage, and as soon as Chrome 89 is released, I’ll be right here to
tell you — what’s new in Chrome!

Feedback

Was this page helpful?

Yes

What was the best thing about this page?

It helped me complete my goal(s)

Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue.

It had the information I needed

Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue.

It had accurate information

Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue.

It was easy to read

Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue.

Something else

Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue.

No

What was the worst thing about this page?

It didn’t help me complete my goal(s)

Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue.

It was missing information I needed

Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue.

It had inaccurate information

Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue.

It was hard to read

Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue.

Something else

Thank you for the feedback. If you have specific ideas on how to improve this page, please
create an issue.





Source link

What do you call this technique? (lines "growing" from a shape)
Strategy

What do you call this technique? (lines "growing" …


What do you call this technique? (lines "growing" from a shape)

submitted by /u/Alolboba
[comments]



Source link

r/web_design - [HELP] Ux/Ui to handle zoom, pan, and click events on Html canvas (Image)
Strategy

[HELP] Ux/Ui to handle zoom, pan, and click events on Html c…


I am developing a coloring book app, (attached screenshot). I have this UI state implemented currently,

  1. Initially, bucket fill is enabled and the user can click on the image to fill the image on the canvas.

  2. To zoom in /out, pan, the user needs to drag the input slider, it enables zoom mode and panning of the image (at the same time disables any click event like fill/brush)

  3. To start painting/filling (ie enabling drawing mode) the user has to click on either bucket/brush icon again.

  4. It’s quite confusing from the user perspective once in pan zoom mode clicking on anywhere will not perform any action until bucket/brush icons are clicked (to enter drawing mode again)

I am all confused about how to handle this scenario in a more effective way.

r/web_design - [HELP] Ux/Ui to handle zoom, pan, and click events on Html canvas (Image)



Source link

r/webdev - Wanna learn how to deploy production grade Django+ ReactJs apps?
Strategy

Wanna learn how to deploy production grade Django+ ReactJs a…


Hey Community,

I am planning to write a detailed guide on how to deploy production grade Django app. To teach this I plan to show my own job board which I recently open sourced https://github.com/TrakBit/fullstackbot-backend. I plan to teach how to deploy :

r/webdev - Wanna learn how to deploy production grade Django+ ReactJs apps?

It is aimed at teaching to deploy for real world and not just side hobby projects. Thus want to teach a way by which its cost effective to run, scalable, and also super easy to push new code by linking to your Github repo.

I have made several commercial and open source project using Django which you can check here: https://github.com/TrakBit/.

if you are interested in such guide sign up here https://harshvardhan.carrd.co/



Source link

Why React Native Can Reduce Your Development Costs
Strategy

Why React Native Can Reduce Your Development Costs


Nowadays, the mobile app industry is consistently stealing the show. So if you want to take over the market, app presence on all platforms is a must. Building a native app for each platform is a costly and time-consuming approach; this is where cross-platform development comes in handy. And React Native is one of those cross-platform solutions. According to the 2020 developer survey by Statista, React Native is the most common cross-platform application framework used by global developers.

And there are excellent reasons for that. React Native offers high performance, cost-efficiency, and faster time-to-market. And the list goes on. In this article, we’ll go through the critical cost-saving benefits of using React Native, and you’ll be convinced of the cost-effectiveness of React Native.

Top 7 Factors That Influence App Development Cost

Before we dive into information on how React Native reduces the cost of development, let’s first consider the main factors that influence app development cost:

  • Type of app development. The most crucial factor influencing your app development cost is the type of app you choose to develop, i.e. native or cross-platform. Using cross-platform development allows you to reduce costs and save engineering time, as you use the same code across both platforms. The native approach can be more costly, as you’d need to design and develop software for each platform separately.
  • App platform. Do you want to create an iOS app, an Android app, or both? Each platform involves different programming languages and various development tools. Moreover, the user experience design of iOS apps varies significantly from Android apps. Determining on which platform your mobile solution will run can help predict development time, size of the team, and, therefore, cost.
  • The complexity of functions and features. The required app features and the complexity of their implementation have a substantial impact on mobile app development costs. For example, if your software has essential functionality like a calculator, it’ll require much less investment and development time. Suppose you’re going to build a large mobile app that contains complex functionality (an immense database, AR/VR features, different integrations, etc.). In that case, you’ll need a bigger team, much more time, and it’ll cost way more to develop such a solution.
  • UI/UX design. Design is an integral part of any mobile app’s development. The cost of your app development may depend on very detailed design specifications. For example, when considering your app user interface, you can choose a native design that contains iOS- and Android-ready templates. This design approach is faster and more cost-effective. Another option is custom design that implies unique architecture for each UI element. In this case, it’ll require more time for designing and prove far more costly.
  • Specific backend. If you want your software to contain features like user accounts or an opportunity to upload images, you’ll need backend development. The backend stores and arranges data and ensures the app on the client-side runs properly. So, your app development costs may significantly depend on the number of variables involved in the backend.
  • Third-party app integrations. If you want to add extra features from other sources, it can drive up app development costs. For example, adding GPS integration, social login, or payment integration, such as Apple Pay, may significantly increase the total cost of app development.
  • App testing. At every stage of development, you should verify that software runs properly and has no bugs and vulnerabilities. To minimize issues and ensure the app’s quality, you need QA engineers. The size of your QA team directly depends on your app’s size.

Now that we know what may influence our app development costs, we can consider how React Native can reduce the cost of mobile app development.

React Native Cost Reduction Benefits

Let’s look at the most convincing reasons to use React Native to develop your next mobile app and see how this framework can significantly reduce your development costs.

Reusable Code and Components

Using React Native, there is no need to develop separate mobile apps for each platform. Reusable code and components are probably the most significant advantage of how React Native reduces costs. This framework allows developers to write code once and share 90-99% of that code between iOS and Android platforms without any technical flaws or glitches.

Reduction in Time and Development Costs

Thanks to reusable code and ready-made components, you can cut the production time and cost in half. Using React Native, developers can easily maintain the same code base between different platforms.

Lower Maintenance Costs

Native apps require regular updates for each mobile device separately. Using React Native, you only have to deal with a single code base; therefore, you can fix bugs more easily. As a result, React Native reduces app development costs and makes maintenance more straightforward.

Lots of Ready-Made Solutions and Libraries

One of the great benefits that reduces the cost of developing React Native apps is its community. Since React Native enjoys enormous popularity among developers, there are many publicly available, ready-made solutions and libraries that allow teams to meet challenges faster. For example, suppose you want your mobile solution to contain social media features, such as a social share button or the ability to send data to social networks. To quickly implement this feature, you can use the react-native-share library.

Great Customer Experience

None of us likes to wait for an app to load. High performance is one more obvious way React Native can cut your development costs. This is because the React Native framework uses native UI elements, and it’s compiled into a native app. As a result, you get a faster and more competitive mobile app that offers an instantaneous loading experience.

Lower UI Cost

React Native allows designers to bring uniformity and a fully optimized UI that works perfectly on numerous devices. This leads to more responsive user interfaces, a smoother feel, and a superb user experience. Therefore, React Native cuts design time and costs by optimizing one mobile app for multiple platforms.

Seamless Integration

Everyone needs a customer-centric app with all-inclusive features. With React Native, you can do just that with minimum effort and cost. Developers need to connect a native or third-party module to the appropriate plugin. You can consider the most well-known React Native third-party plugins such as React Native Router Flux, React Native Modalbox, or  React Native Selectme.

Famous Apps Built With React Native

Nowadays, the biggest companies worldwide recognize React Native’s advantage and potential for business. Let’s look at some well-known projects made with React Native and see why this framework is suitable for mobile app development.

Instagram

Instagram is probably the most popular mobile app globally, with over 1 billion monthly active users. By choosing React Native, Instagram developers managed to substantially improve their velocity and deliver the product much faster, due to the opportunity to share 85-99% of their code between the apps for both Android and iOS mobile devices.

Airbnb

Airbnb is a famous American vacation rental online marketplace. Initially, the company’s goal was to accelerate the development time and quickly penetrate the market. They needed technology that helped them reach that goal. React Native was their choice, and, as a result, they got the famous app out in a short time with a native-like experience. Now Airbnb has 43.3 million users in the United States.

Bloomberg

Bloomberg is a popular mobile application for iOS and Android that provides global business and finance news. The company chose React Native to accelerate the release of new product features and provide users with a streamlined, interactive experience on all platforms.

Facebook Ads

Facebook, which released React Native in 2015, made using this technology a must for the company. Thus, they made their other product, Facebook Ads, using the React Native framework and achieved excellent results. Today, Facebook Ads is a quickly responsive app with clean UI and intuitive UX on both platforms.

UberEats

UberEats is a popular food ordering and delivery app. Initially, the company needed to enhance its built-in restaurant dashboard, and, for this purpose, they chose React Native. The developers were pleasantly surprised by their experience with the framework. Today, their updated restaurant dashboard allows them to attract more clients and significantly increase their consumer base.

Our Experience With React Native

Our client, Fractal Labs, came up with the idea of a self-service platform for financial partners targeting SMEs. The concept was meant to enable financial services to access valuable customer data, enhance risk models, lower loss-ratio through continuous monitoring, engage untapped customers, and intelligently target products.

Fractal Labs was looking for a partner that could help them build a mobile application that serves as a front-end interface for their backend-heavy open banking API.

Our TechMagic team was responsible for building a mobile app and its fast release for both iOS and Android platforms. We chose React Native as a solution, since it accelerates development time by sharing 90-99% of our code between iOS and Android platforms.

As a result, after a few months, we released a properly operating React Native app that feels and looks native on all devices. What’s more, we managed to reach excellent app performance quality, involve only one engineer, and save 45% on our budget.

Final Thoughts

As you can see, React Native can cut costs for many reasons. This framework allows you to build your mobile solution in a more straightforward and faster way, with minimum cost and time commitments. What is more, it does all of this without sacrificing on the quality of the application. 



Source link

Learn How to Create a Messaging App in 2021
Strategy

Learn How to Create a Messaging App in 2021


Look around and tell me what you see; you may find people with smartphones in their hands. What are they doing? Most likely, they are texting. Indeed, messaging has become a modern way of communicating.

If you have a concept of a new chat app for the mass-market or want to get messaging software for your organization, here are some facts and insights on how to create a messaging app.

Is it a Good Idea to Create a Chat App in 2021?

Let’s take a test. Open the app list on your smartphone and check out how many messaging applications you have. Probably, there are more than five of them and dozens of websites you daily visit also have chat support. Pretty impressive, isn’t it? Search the market, and you will find millions of chat apps with active users. Every day the list is updated with new messaging apps. In fact, some surveys and numbers prove, messaging has a huge role in your lives.

To prove the role of chat apps in our daily routine, check out some interesting statistics below:

  • The State of Mobile Internet Connectivity Report 2020 by GSMS states 3,8 billion people are using mobile internet. It is almost half of the population. The number of users increases by 250 million each year.
  • According to Statista, already 6,95 billion people use mobile phones worldwide. By the end of 2021, the number will hit the point of 7,1 billion.
  • The top 3 messaging apps are WhatsApp, Facebook Messenger, and WeChat. Together they have over 4 billion active users worldwide.
  • Another statistic shows that WhatsApp is delivering about 100 billion messages daily.

And, a few more short stats:

  • Over 2,52 billion people are using chat apps. By 2022, the number will reach 3 billion.
  • Over 41 million messages are being sent every minute.
  • 20 billion business messages are sent through mobile apps each month.
  • 5 billion emojis are sent daily.

It is a general and brief survey of years of investigations and statistics. Still, they once again prove the world of messaging is full of opportunities.

Marketing Survey and Platforms

If you had to choose between the phone call and a message, what would you choose? When we look at the phone call, we always wonder whether there was no option to write instead of calling. Yes, this is the new normal. People got used to replacing phone calls and even real conversations with messages. Why not? Isn’t it more comfortable and faster? After all, our life is too busy to be on the phone. Besides being convenient, messengers bring billions of dollars through active users. The statistics show that net income and numbers are increasing every year.

In 2020, research by the Wall Street Journal published data about the average revenue of each user through messaging apps. Thus, each WeChat user generates $7, $4 for each WhatsApp user, and $5 for a Facebook user. But, let’s deep dive into the numbers and learn the multi-million dollar turnover that is happening around us every day.

Facebook apps, including WhatsApp, have more than 3 billion monthly active users. For the first quarter of 2020, the company reported over $17,7 billion in revenue. Every year, the revenue gets 17% registered growth.

According to statistics, WhatsApp is still considered the most popular messaging app. If there was a country called WhatsApp, it would have 1.5 billion people and an economy of over $5 billion. 

With 1,15 billion monthly active users, WeChat has over $12,7 million in revenue. 20 million Chinese companies are using WeChat for business as an integral part of daily business processes. 

Platforms for Chat Apps. The Web Platform, Android and iOS

First, we had computers, and then we started using smartphones that almost replaced computers. Today, we use apps on smartphones, and we can use the same apps on computers. Life will never stop surprising us.

Cross-platform app development is a common practice. A single app can be created to be available on different platforms or individually for each platform. Each of the platforms has its programming language. Outsourcing app development may solve the task for both cross-platform and native app developments. 

Challenges of Building a Chat App

Along with the growing popularity of mobile apps, user requests also increased. They demand a faster connection, new cool features, and better security. Those are the challenges developers face when building a chat app.

With a calculation of potential risks and possible issues, a professional development team will be able to deal with them on time.

Real-Time Features

The functionality of the chat app depends on its real-time features. They should be up-to-date and smooth operating. Here is a shortlist of must-have features:

  • Instant messaging.
  • Custom fonts and stickers.
  • The function to mute chat.
  • Status for each message (sent, received, seen).
  • Voice and video calls.
  • The feature to attach documents and images, send voice and video messages.

Security Issues

When downloading a new app, we think twice about giving permission. Indeed, security is the major concern of choosing a chat app and a challenge for developers. The new messaging app should have a reliable and attractive interface. But, it should also prove to have data protection. Here are top security features that are a must:

  • Reliable end-to-end encryption protocols.
  • Secure data storage.
  • Extra protection features like cryptographic keys.
  • Privacy policy agreement before using the app.

Server Overload

The growing number of users is a plus, but it may also cause server overload. To provide stable and smooth functionality, the app server capacity should be scalable. Thus, the chat app will have a stable performance for peak workload periods.

Constant Updates

Users do love updates and new features. It is an option to keep the app functional and up-to-date. The updates allow us to fix current bugs and, of course, keep connected with users. The most important thing about frequent updates is protecting existing data.

How Much Does it Cost to Develop a Messaging App Like WhatsApp?

An application that brings billions of dollars might be worth a lot to develop. Sill, after all, when it all started, nobody knew about WhatsApp, and it was a mobile app in the app store. 

Are you thinking about how to create a messaging app like WhatsApp and wondering how much it may cost? Before getting to pricing, it is worth understanding how the price is formed.

Since 2013, the prices for developing chat apps have increased by three times. Today, the price for a similar messaging app may cost about $50,000. Undoubtedly, this is a high price, but with market surveys and the growing popularity of similar apps, it is worth investing in a chat app.

Most chat apps have standard functions like instant messages, photo and location sharing, audio, and video calls. Each new feature adds popularity to the chat app and, correspondingly, increases the price.

The process of app development should be structured and planned in detail. The road map for the implementation of app development may be complex, but the key steps are as follows:

  • It should always start with a basic idea of the chat app.
  • The next step decides who will be in charge of creating a messaging app. A popular option is outsourcing mobile app development. 
  • Software development may start from $30,000 for one platform. The price may increase with every new feature. It is important to set a budget and understand needs before proceeding. Thus, the result will be as close to the preliminary plan as possible. 

If you are interested in the technologies of developing messaging software, check out the complete guide on how to create a messaging app.



Source link