বিশ্বস্ত ওয়েব কার্যকলাপের ওভারভিউ
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
কাস্টম ট্যাবের উপর ভিত্তি করে একটি প্রোটোকল ব্যবহার করে আপনার অ্যান্ড্রয়েড অ্যাপ থেকে আপনার প্রগ্রেসিভ ওয়েব অ্যাপ (PWA) এর মতো আপনার ওয়েব-অ্যাপ সামগ্রী খোলার একটি নতুন উপায় হল বিশ্বস্ত ওয়েব কার্যকলাপ ।
দ্রষ্টব্য : বিশ্বস্ত ওয়েব অ্যাক্টিভিটি অ্যান্ড্রয়েড, 72 এবং তার উপরে সংস্করণে Chrome- এ উপলব্ধ।
কোড খুঁজছেন?
আপনার Android অ্যাপ থেকে ওয়েব কন্টেন্ট খোলার অন্যান্য উপায় থেকে বিশ্বস্ত ওয়েব অ্যাক্টিভিটি আলাদা কিছু জিনিস রয়েছে:
- একটি বিশ্বস্ত ওয়েব কার্যকলাপের বিষয়বস্তু বিশ্বস্ত -- অ্যাপ এবং এটি যে সাইটটি খোলে তা একই বিকাশকারীর কাছ থেকে আসবে বলে আশা করা হচ্ছে৷ (এটি ডিজিটাল সম্পদ লিঙ্ক ব্যবহার করে যাচাই করা হয়।)
- একটি বিশ্বস্ত ওয়েব কার্যকলাপে রেন্ডার করা বিষয়বস্তু ওয়েব থেকে আসে : সেগুলি ব্যবহারকারীর ব্রাউজার দ্বারা রেন্ডার করা হয়, ঠিক একইভাবে যেভাবে একজন ব্যবহারকারী তাদের ব্রাউজারে পূর্ণস্ক্রীনে চালানো ছাড়া এটি দেখতে পায়৷ ওয়েব বিষয়বস্তু প্রথমে ব্রাউজারে অ্যাক্সেসযোগ্য এবং দরকারী হতে হবে।
- ব্রাউজারগুলিও অ্যান্ড্রয়েড এবং আপনার অ্যাপ থেকে স্বাধীনভাবে আপডেট করা হয়। এটি APK আকারে সংরক্ষণ করে এবং নিশ্চিত করে যে আপনি একটি আধুনিক ওয়েব রানটাইম ব্যবহার করতে পারেন। (উল্লেখ্য যে ললিপপ থেকে, ওয়েবভিউও অ্যান্ড্রয়েড থেকে স্বাধীনভাবে আপডেট করা হয়েছে, তবে উল্লেখযোগ্য সংখ্যক প্রি-ললিপপ অ্যান্ড্রয়েড ব্যবহারকারী রয়েছে।)
- হোস্ট অ্যাপের কোনো বিশ্বস্ত ওয়েব কার্যকলাপ বা অন্য কোনো ধরনের ওয়েব স্টেটে যেমন কুকিজ এবং
localStorage
ওয়েব সামগ্রীতে সরাসরি অ্যাক্সেস নেই। তবুও, আপনি URL-এ পৃষ্ঠায় এবং থেকে ডেটা পাস করে ওয়েব সামগ্রীর সাথে সমন্বয় করতে পারেন (যেমন কোয়েরি প্যারামিটার এবং অভিপ্রায় URI-এর মাধ্যমে।) - ওয়েব এবং নেটিভ কন্টেন্টের মধ্যে ট্রানজিশন হল ক্রিয়াকলাপগুলির মধ্যে৷ আপনার অ্যাপের প্রতিটি ক্রিয়াকলাপ (অর্থাৎ স্ক্রিন) হয় সম্পূর্ণভাবে ওয়েব দ্বারা বা একটি Android কার্যকলাপ দ্বারা সরবরাহ করা হয়৷
পরীক্ষা করা সহজ করার জন্য, বিশ্বস্ত ওয়েব কার্যকলাপের পূর্বরূপ খোলা সামগ্রীর জন্য বর্তমানে কোন যোগ্যতা নেই। তবে, আপনি আশা করতে পারেন যে বিশ্বস্ত ওয়েব ক্রিয়াকলাপ হোম স্ক্রীনে যোগ করার জন্য একই প্রয়োজনীয়তা পূরণ করতে হবে। আপনি লাইটহাউস ব্যবহার করে এই প্রয়োজনীয়তার জন্য আপনার সাইট অডিট করতে পারেন " ব্যবহারকারীকে হোম স্ক্রীনে যোগ করার জন্য অনুরোধ করা যেতে পারে " অডিট৷
আজ, বিশ্বস্ত ওয়েব কার্যকলাপ ব্যবহার করে অন্য ব্রাউজারগুলির জন্য একই প্রোটোকল বাস্তবায়ন করা সম্ভব। কোন ব্রাউজারটি খোলা হবে সে বিষয়ে হোস্ট অ্যাপের চূড়ান্ত সিদ্ধান্ত থাকলেও, আমরা কাস্টম ট্যাবগুলির জন্য একই নীতির সুপারিশ করি: ব্যবহারকারীর ডিফল্ট ব্রাউজার ব্যবহার করুন, যতক্ষণ না সেই ব্রাউজারটি প্রয়োজনীয় ক্ষমতা প্রদান করে।
পরের দিকে কোথায় যেতে হবে?
আপনি যদি দ্রুত একটি অ্যান্ড্রয়েড অ্যাপ তৈরি করতে চান যা সবেমাত্র শুরু হয় এবং আপনার PWA খোলে, দ্রুত স্টার্ট গাইড দেখুন।
যদি একটি বিদ্যমান Android অ্যাপে বিশ্বস্ত ওয়েব অ্যাক্টিভিটি সংহত করা হয়, তাহলে ইন্টিগ্রেশন গাইড শুরু করার জন্য একটি ভাল জায়গা।
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Overview of Trusted Web Activities\n\n**Trusted Web Activity** is a new way to open *your* web-app content such as *your* Progressive Web App (PWA) from *your* Android app using a protocol based on Custom Tabs.\n\n**Note** : Trusted Web Activity is available in [Chrome on Android](https://play.google.com/store/apps/details?id=com.android.chrome), version 72 and above.\n\n*Looking for the code?*\n\n- [android-browser-helper library on GitHub](https://github.com/GoogleChrome/android-browser-helper)\n- [Trusted Web Activity demos](https://github.com/GoogleChrome/android-browser-helper/tree/master/demos)\n- [Bubblewrap, a NodeJs library / CLI to generate and build Trusted Web Activity projects](https://github.com/GoogleChromeLabs/bubblewrap)\n\nThere are a few things that make Trusted Web Activity different from other ways to open web content from your Android app:\n\n1. Content in a Trusted Web activity is **trusted** -- the app and the site it opens are expected to come from the same developer. (This is verified using [Digital Asset Links](https://developers.google.com/digital-asset-links/v1/getting-started).)\n2. The content rendered in a Trusted Web Activity comes from the **web**: they're rendered by the user's browser, in exactly the same way as a user would see it in their browser except they are run fullscreen. Web content must be accessible and useful in the browser first.\n3. Browsers are also updated independent of Android and your app. That saves on APK size and ensures you can use a modern web runtime. (Note that since Lollipop, WebView has also been updated independent of Android, but there are a [significant number](/about/dashboards) of pre-Lollipop Android users.)\n4. The host app doesn't have direct access to web content in a Trusted Web Activity or any other kind of web state, like cookies and `localStorage`. Nevertheless, you can coordinate with the web content by passing data to and from the page in URLs (e.g. through query parameters and [intent URIs](https://developer.chrome.com/docs/multidevice/android/intents).)\n5. Transitions between web and native content are between **activities**. Each activity (i.e. screen) of your app is either completely provided by the web, or by an Android activity\n\nTo make it easier to test, there are currently no qualifications for content opened in the preview of Trusted Web activities. You can expect, however, that Trusted Web activities need to meet the same [Add to Home Screen](https://web.dev/customize-install#criteria) requirements. You can audit your site for these requirements using the [Lighthouse](https://web.dev/measure/) \"*user can be prompted to Add to Home screen*\" audit.\n\nToday, it is possible for other browsers to implement the same protocol that Trusted Web activities use. While the host app has the final say on what browser gets opened, we recommend the same policy as for Custom Tabs: use the user's default browser, so long as that browser provides the required capabilities.\n\nWhere to go next?\n-----------------\n\nIf you are looking for quickly building an Android app that just starts and opens your PWA, checkout out the [Quick Start Guide](https://developer.chrome.com/docs/android/trusted-web-activity/quick-start).\n\nIf integrating Trusted Web Activity into an existing Android App, the [Integration Guide](https://developer.chrome.com/docs/android/trusted-web-activity/integration-guide) is a good place to get started."]]