A notification is a message that Android displays outside your app's UI to provide the user with reminders, communication from other people, or other timely information from your app. Users can tap the notification to open your app or take an action directly from the notification.
এই পৃষ্ঠায় নোটিফিকেশনগুলো কোথায় দেখা যায় এবং উপলব্ধ বৈশিষ্ট্যগুলোর একটি সংক্ষিপ্ত বিবরণ দেওয়া হয়েছে।
বাস্তবায়ন নির্দেশিকা
নিম্নলিখিত নির্দেশিকাগুলো আপনাকে দেখাবে কীভাবে আপনার অ্যাপে বিভিন্ন নোটিফিকেশন ফিচার প্রয়োগ করতে হয়:
- নোটিফিকেশন তৈরি করুন : একটি সাধারণ নোটিফিকেশন কীভাবে তৈরি ও জারি করতে হয় তা জানুন।
- নোটিফিকেশন পারমিশন :
POST_NOTIFICATIONSরানটাইম পারমিশনটি কীভাবে পরিচালনা করতে হয় তা জানুন। - নোটিফিকেশন চ্যানেল : ব্যবহারকারীদের নোটিফিকেশনের আচরণ নিয়ন্ত্রণ করতে দেয়।
- সম্প্রসারণযোগ্য নোটিফিকেশন :
BigTextStyleবাMessagingStyleমতো স্টাইল ব্যবহার করে আরও কন্টেন্ট দেখান। - বাবলস : কথোপকথনের জন্য ভাসমান ও সম্প্রসারণযোগ্য ওভারলে ব্যবহার করুন।
- অগ্রগতি-কেন্দ্রিক বিজ্ঞপ্তি : ব্যবহারকারীর শুরু করা যাত্রা, যেমন রাইডশেয়ার এবং ডেলিভারি, ট্র্যাক করুন।
- কল-ধরণের বিজ্ঞপ্তি : আগত এবং চলমান কলগুলোকে অন্যান্য ধরণের বিজ্ঞপ্তি থেকে আলাদা করে।
- সরাসরি হালনাগাদ বিজ্ঞপ্তি : চলমান কার্যক্রমের অগ্রগতি পর্যবেক্ষণ করুন।
- ভিউ-ভিত্তিক নোটিফিকেশন নির্দেশিকা : ভিউ-ভিত্তিক অ্যাপে নোটিফিকেশন বাস্তবায়নের জন্য নির্দেশিকা।
নোটিফিকেশন ডিজাইন এবং ইন্টারঅ্যাকশন প্যাটার্ন সম্পর্কে আরও তথ্যের জন্য, নোটিফিকেশন ডিজাইন গাইড দেখুন।
একটি ডিভাইসে উপস্থিতি
Notifications automatically appear to users in different locations and formats. A notification appears as an icon in the status bar, a more detailed entry in the notification drawer, and a badge on the app's icon.
ডিভাইস জুড়ে আচরণ
Notifications also appear on paired wearables by default. In scenarios where the notification content is only relevant to the source device, use setLocalOnly() . An example is a notification confirming that a media download has completed. For more guidance specific to Wear OS notifications, see Wear OS notifications guidance.
স্ট্যাটাস বার এবং নোটিফিকেশন ড্রয়ার
আপনি যখন কোনো নোটিফিকেশন জারি করেন, তখন সেটি প্রথমে স্ট্যাটাস বারে একটি আইকন হিসেবে প্রদর্শিত হয়।

চিত্র ১. স্ট্যাটাস বারের বাম দিকে নোটিফিকেশন আইকনগুলো দেখা যায়।
ব্যবহারকারীরা স্ট্যাটাস বারে নিচের দিকে সোয়াইপ করে নোটিফিকেশন ড্রয়ার খুলতে পারেন, যেখানে তারা আরও বিস্তারিত তথ্য দেখতে এবং নোটিফিকেশনটির বিষয়ে ব্যবস্থা নিতে পারেন।

চিত্র ২. নোটিফিকেশন ড্রয়ারে থাকা নোটিফিকেশনসমূহ।
Users can drag down on a notification in the drawer to reveal the expanded view, which shows additional content and action buttons, if provided. Starting in Android 13, this expanded view includes a button that lets users stop an app that has ongoing foreground services .
অ্যাপ বা ব্যবহারকারী কর্তৃক বাতিল না করা পর্যন্ত একটি নোটিফিকেশন নোটিফিকেশন ড্রয়ারে দৃশ্যমান থাকে।
আগাম বিজ্ঞপ্তি
Beginning with Android 5.0, notifications can briefly appear in a floating window called a heads-up notification . This behavior is normally for important notifications that the user needs to know about immediately, and it only appears if the device is unlocked.

চিত্র ৩. ফোরগ্রাউন্ড অ্যাপটির সামনে একটি হেডস-আপ নোটিফিকেশন প্রদর্শিত হয়।
আপনার অ্যাপ থেকে নোটিফিকেশন এলে হেডস-আপ নোটিফিকেশনটি দেখা যায়। এটি কিছুক্ষণ পর অদৃশ্য হয়ে যায়, কিন্তু নোটিফিকেশন ড্রয়ারে যথারীতি দৃশ্যমান থাকে।
যেসব পরিস্থিতি হেডস-আপ নোটিফিকেশন চালু করতে পারে, সেগুলো হলো:
ব্যবহারকারীর কার্যকলাপ ফুলস্ক্রিন মোডে থাকে, যেমন যখন অ্যাপটি
fullScreenIntentব্যবহার করে।অ্যান্ড্রয়েড ৭.১ (এপিআই লেভেল ২৫) এবং এর নিচের সংস্করণে চালিত ডিভাইসগুলোতে এই নোটিফিকেশনটির অগ্রাধিকার বেশি এবং এটি রিংটোন বা ভাইব্রেশন ব্যবহার করে।
অ্যান্ড্রয়েড ৮.০ (এপিআই লেভেল ২৬) এবং এর পরবর্তী সংস্করণে চালিত ডিভাইসগুলোতে নোটিফিকেশন চ্যানেলের গুরুত্ব অনেক বেশি।
লক স্ক্রিন
অ্যান্ড্রয়েড ৫.০ থেকে লক স্ক্রিনে নোটিফিকেশন দেখা যেতে পারে।
আপনার অ্যাপ থেকে পোস্ট করা নোটিফিকেশনগুলো সুরক্ষিত লক স্ক্রিনে দেখানো হবে কিনা এবং যদি দেখানো হয়, তবে তার বিস্তারিত বিবরণ কতটুকু হবে, তা আপনি প্রোগ্রামিংয়ের মাধ্যমে নির্ধারণ করতে পারেন।
Users can use the system settings to choose the level of detail visible in lock screen notifications or to disable all lock screen notifications. Starting with Android 8.0, users can disable or enable lock screen notifications for each notification channel.

চিত্র ৪। লক স্ক্রিনে সংবেদনশীল বিষয়বস্তু লুকানো নোটিফিকেশন।
আরও জানতে, ‘লক স্ক্রিনের দৃশ্যমানতা সেট করুন’ দেখুন।
অ্যাপ আইকন ব্যাজ
In supported launchers on devices running Android 8.0 (API level 26) and higher, app icons indicate new notifications with a colored badge known as a notification dot on the corresponding app launcher icon.
ব্যবহারকারীরা কোনো অ্যাপের নোটিফিকেশন দেখতে সেই অ্যাপের আইকনটি স্পর্শ করে ধরে রাখতে পারেন। নোটিফিকেশন ড্রয়ারের মতোই, ব্যবহারকারীরা সেই মেনু থেকে নোটিফিকেশনগুলো খারিজ করতে বা সেগুলোর ওপর ব্যবস্থা নিতে পারেন।

চিত্র ৫. নোটিফিকেশন ব্যাজ এবং টাচ ও হোল্ড মেনু।
To learn more about how badges work, read Modify a notification badge .
Wear OS ডিভাইস
ব্যবহারকারীর যদি একটি পেয়ার করা Wear OS ডিভাইস থাকে, তাহলে আপনার সমস্ত নোটিফিকেশন সেখানে স্বয়ংক্রিয়ভাবে চলে আসবে, যার মধ্যে বিস্তারিত দেখার সুবিধা এবং অ্যাকশন বাটনও অন্তর্ভুক্ত থাকবে।
You can enhance the experience by customizing the appearance of your notifications on wearables and by providing different actions, including suggest replies and voice input replies. For more information, see how to add wearable-specific features to your notification .

চিত্র ৬। পেয়ার করা Wear OS ডিভাইসে নোটিফিকেশনগুলো স্বয়ংক্রিয়ভাবে প্রদর্শিত হয়।
বিজ্ঞপ্তির গঠন
The design of a notification is determined by system templates, and your app defines the contents for each portion of the template. Some details of the notification appear only in the expanded view.

চিত্র ৭. প্রাথমিক বিবরণসহ একটি বিজ্ঞপ্তি।
একটি নোটিফিকেশনের সবচেয়ে সাধারণ অংশগুলো চিত্র ৭-এ নিম্নরূপভাবে নির্দেশ করা হয়েছে:
- ছোট আইকন: আবশ্যক;
setSmallIcon()ব্যবহার করে সেট করা হয়। - অ্যাপের নাম: সিস্টেম কর্তৃক প্রদত্ত।
- টাইম স্ট্যাম্প: এটি সিস্টেম দ্বারা সরবরাহ করা হয়, কিন্তু আপনি
setWhen()ব্যবহার করে এটিকে ওভাররাইড করতে পারেন অথবাsetShowWhen(false)ব্যবহার করে লুকাতে পারেন। - বড় আইকন: ঐচ্ছিক; সাধারণত শুধু কন্ট্যাক্ট ফটোর জন্য ব্যবহৃত হয়। আপনার অ্যাপ আইকন হিসেবে এটি ব্যবহার করবেন না।
setLargeIcon()ব্যবহার করে এটি সেট করুন। - শিরোনাম: ঐচ্ছিক;
setContentTitle()ব্যবহার করে সেট করা যায়। - টেক্সট: ঐচ্ছিক;
setContentText()ব্যবহার করে সেট করা যায়।
সকল ডিভাইসে সঠিক ডিজাইন সামঞ্জস্যের জন্য আমরা সিস্টেম টেমপ্লেট ব্যবহার করার জন্য দৃঢ়ভাবে সুপারিশ করি। প্রয়োজনে, আপনি একটি কাস্টম নোটিফিকেশন লেআউট তৈরি করতে পারেন।
এইসব বৈশিষ্ট্য ও আরও অনেক কিছু সহ কীভাবে একটি নোটিফিকেশন তৈরি করবেন সে সম্পর্কে আরও তথ্যের জন্য, "একটি নোটিফিকেশন তৈরি করুন" পড়ুন।
বিজ্ঞপ্তি কার্যক্রম
Although it's not required, it's a good practice for every notification to open an appropriate app activity when it's tapped. In addition to this default notification action, you can add action buttons that complete an app-related task from the notification—often without opening an activity—as shown in figure 8.

চিত্র ৮. অ্যাকশন বাটনসহ একটি নোটিফিকেশন।
অ্যান্ড্রয়েড ৭.০ (এপিআই লেভেল ২৪) থেকে, আপনি নোটিফিকেশন থেকেই সরাসরি মেসেজের উত্তর দেওয়া বা অন্য কোনো টেক্সট লেখার জন্য একটি অ্যাকশন যোগ করতে পারবেন।
অ্যান্ড্রয়েড ১০ (এপিআই লেভেল ২৯) থেকে, প্ল্যাটফর্মটি স্বয়ংক্রিয়ভাবে ইন্টেন্ট-ভিত্তিক প্রস্তাবিত অ্যাকশনসহ অ্যাকশন বাটন তৈরি করতে পারে।
অ্যাকশন বাটন যোগ করার পদ্ধতি 'একটি নোটিফিকেশন তৈরি করুন' অংশে আরও বিস্তারিতভাবে ব্যাখ্যা করা হয়েছে।
আনলক করা ডিভাইস প্রয়োজন
Users might see notification actions on the device's lock screen. If a notification action causes an app to launch an activity or send a direct reply, users must unlock the device before the app can invoke that notification action.
On Android 12 (API level 31) and higher, you can configure a notification action such that the device must be unlocked for your app to invoke that action, no matter what workflow the action launches. This option adds an extra layer of security to notifications on locked devices.
To require a device to be unlocked before your app invokes a given notification action, pass true into setAuthenticationRequired() when creating your notification action, as shown in the following code snippet:
val moreSecureNotification = Notification.Action.Builder(...)
// This notification always requests authentication when invoked
// from a lock screen.
.setAuthenticationRequired(true)
.build()
সম্প্রসারণযোগ্য বিজ্ঞপ্তি
By default, the notification's text content is truncated to fit on one line. If you want your notification to be longer, you can enable a larger text area that's expandable by applying an additional template, as shown in figure 9.

চিত্র ৯। বড় লেখার জন্য সম্প্রসারণযোগ্য একটি নোটিফিকেশন।
You can also create an expandable notification with an image, in inbox style, with a chat conversation, or with media playback controls. For more information, read Create an expandable notification .
বিজ্ঞপ্তি আপডেট এবং গ্রুপ
To avoid flooding your users with multiple or redundant notifications when you have additional updates, update an existing notification rather than issuing a new one or use the inbox-style notification to show conversation updates.
তবে, একাধিক নোটিফিকেশন পাঠানোর প্রয়োজন হলে, আলাদা নোটিফিকেশনগুলোকে একটি গ্রুপে একত্রিত করার কথা বিবেচনা করতে পারেন, যা অ্যান্ড্রয়েড ৭.০ এবং তার পরবর্তী সংস্করণগুলোতে উপলব্ধ।
A notification group lets you collapse multiple notifications into one post in the notification drawer with a summary. The user can progressively expand the notification group and each notification within it for more details, as shown in figure 10.

চিত্র ১০। একটি সংকুচিত এবং প্রসারিত নোটিফিকেশন গ্রুপ।
একটি গ্রুপে কীভাবে নোটিফিকেশন যোগ করতে হয় তা জানতে, ‘নোটিফিকেশনের একটি গ্রুপ তৈরি করুন’ দেখুন।
বিজ্ঞপ্তি চ্যানেল
অ্যান্ড্রয়েড ৮.০ (এপিআই লেভেল ২৬) থেকে, সমস্ত নোটিফিকেশনকে অবশ্যই একটি চ্যানেলে যুক্ত করতে হবে, নতুবা সেগুলি দেখা যাবে না। এর ফলে ব্যবহারকারীরা সমস্ত নোটিফিকেশন বন্ধ না করে, তাদের অ্যাপের জন্য নির্দিষ্ট নোটিফিকেশন চ্যানেলগুলো নিষ্ক্রিয় করতে পারেন। ব্যবহারকারীরা অ্যান্ড্রয়েড সিস্টেম সেটিংস থেকে প্রতিটি চ্যানেলের জন্য দৃশ্যমান এবং শ্রবণযোগ্য বিকল্পগুলো নিয়ন্ত্রণ করতে পারেন, যেমনটি চিত্র ১১-তে দেখানো হয়েছে। এছাড়াও, ব্যবহারকারীরা কোনো নোটিফিকেশন স্পর্শ করে ধরে রেখে সংশ্লিষ্ট চ্যানেলের আচরণ পরিবর্তন করতে পারেন।
অ্যান্ড্রয়েড ৭.১ (এপিআই লেভেল ২৫) এবং এর নিচের সংস্করণে চালিত ডিভাইসগুলোতে, ব্যবহারকারীরা শুধুমাত্র অ্যাপ-ভিত্তিক নোটিফিকেশন পরিচালনা করতে পারেন। অ্যান্ড্রয়েড ৭.১ এবং এর নিচের সংস্করণগুলোতে প্রতিটি অ্যাপের জন্য কার্যকরভাবে কেবল একটিই চ্যানেল থাকে।

চিত্র ১১। ক্লক অ্যাপ এবং এর একটি চ্যানেলের নোটিফিকেশন সেটিংস।
An app can have separate channels for each type of notification the app issues. An app can also create notification channels in response to choices made by users. For example, you can set up separate notification channels for each conversation group created by a user in a messaging app.
The channel is also where you specify the importance level for your notifications on Android 8.0 and higher, so all notifications posted to the same notification channel have the same behavior. This is described in the following section.
আরও তথ্যের জন্য, নোটিফিকেশন চ্যানেল তৈরি ও পরিচালনা দেখুন।
বিজ্ঞপ্তির গুরুত্ব
Android uses the importance of a notification to determine how much the notification interrupts the user visually and audibly. The higher the importance of a notification, the more interruptive the notification is.
On Android 7.1 (API level 25) and lower, the importance of a notification is determined by the notification's priority .
On Android 8.0 (API level 26) and higher, the importance of a notification is determined by the importance of the channel the notification is posted to. Users can change the importance of a notification channel in the system settings, as shown in figure 12.

চিত্র ১২। ব্যবহারকারীরা অ্যান্ড্রয়েড ৮.০ এবং এর পরবর্তী সংস্করণগুলোতে প্রতিটি চ্যানেলের গুরুত্ব পরিবর্তন করতে পারেন।
সম্ভাব্য গুরুত্বের স্তর এবং সংশ্লিষ্ট বিজ্ঞপ্তির আচরণগুলো নিম্নরূপ:
জরুরি: একটি শব্দ করে এবং আগাম বিজ্ঞপ্তি হিসেবে প্রদর্শিত হয়।
হাই: শব্দ করে।
মাঝারি: কোনো শব্দ করে না।
নিম্ন: কোনো শব্দ হয় না এবং স্ট্যাটাস বারে দেখা যায় না।
All notifications, regardless of importance, appear in non-interruptive system UI locations, such as in the notification drawer and as a badge on the launcher icon. However, you can modify the appearance of the notification badge .
আরও তথ্যের জন্য, গুরুত্ব কীভাবে নির্ধারণ করতে হয় সে সম্পর্কে পড়ুন।
বিরক্ত করবেন না মোড
Starting in Android 5.0 (API level 21), users can enable Do Not Disturb mode , which silences sound and vibration for all notifications. Notifications still appear in the system UI as normal, unless the user specifies otherwise.
ডু নট ডিস্টার্ব মোডে তিনটি স্তর রয়েছে:
- সম্পূর্ণ নীরবতা: অ্যালার্ম, গান, ভিডিও এবং গেম সহ সকল প্রকার শব্দ ও কম্পন রোধ করে।
- শুধুমাত্র অ্যালার্ম: অ্যালার্ম ছাড়া অন্য সব শব্দ ও কম্পন বন্ধ করে দেয়।
- Priority only: users can configure which system-wide categories can interrupt them, such as only alarms, reminders, events, calls, or messages. For messages and calls, users can filter based on sender or caller, as shown in figure 13.

চিত্র ১৩। ব্যবহারকারীরা সিস্টেম-ব্যাপী ক্যাটাগরি (বামে) এবং প্রেরক বা কলারের (ডানে) উপর ভিত্তি করে নোটিফিকেশন অনুমোদন করতে পারেন।
অ্যান্ড্রয়েড ৮.০ (এপিআই লেভেল ২৬) এবং এর পরবর্তী সংস্করণগুলোতে, ব্যবহারকারীরা প্রতিটি চ্যানেলের জন্য আলাদাভাবে 'ডু নট ডিস্টার্ব' মোডকে ওভাররাইড করে অ্যাপ-নির্দিষ্ট ক্যাটাগরি—যা চ্যানেল নামেও পরিচিত—এর জন্য অতিরিক্তভাবে নোটিফিকেশন চালু রাখতে পারেন। উদাহরণস্বরূপ, একটি পেমেন্ট অ্যাপে টাকা তোলা এবং জমা সংক্রান্ত নোটিফিকেশনের জন্য চ্যানেল থাকতে পারে। প্রায়োরিটি মোডে থাকাকালীন ব্যবহারকারী টাকা তোলার নোটিফিকেশন, টাকা জমার নোটিফিকেশন, অথবা উভয়ই চালু রাখতে পারেন।
অ্যান্ড্রয়েড ৭.১ (এপিআই লেভেল ২৫) এবং এর থেকে নিম্নতর সংস্করণে চালিত ডিভাইসগুলিতে, ব্যবহারকারীরা চ্যানেল-ভিত্তিক না করে, অ্যাপ-ভিত্তিক নোটিফিকেশন চালু করতে পারেন।
এই ব্যবহারকারী সেটিংসের জন্য আপনার নোটিফিকেশন কনফিগার করতে, আপনাকে একটি সিস্টেম-ব্যাপী ক্যাটাগরি সেট করতে হবে।
ফোরগ্রাউন্ড পরিষেবাগুলির জন্য বিজ্ঞপ্তি
A notification is required when your app is running a foreground service —a Service running in the background that's long-living and noticeable to the user, such as a media player. This notification can't be dismissed like other notifications. To remove the notification, the service must be stopped or removed from the foreground state.
আরও তথ্যের জন্য, ফোরগ্রাউন্ড সার্ভিসেস পড়ুন। আপনি যদি একটি মিডিয়া প্লেয়ার তৈরি করেন, তাহলে ব্যাকগ্রাউন্ডে মিডিয়া চালানোও পড়ুন।
বিজ্ঞপ্তি আচরণ
অ্যান্ড্রয়েড ১৬.০, এপিআই লেভেল ৩৬
এখন থেকে অ্যাপের পক্ষ থেকে নোটিফিকেশনগুলো স্বয়ংক্রিয়ভাবে গ্রুপ করা হবে।
নিম্নলিখিত বিজ্ঞপ্তিগুলি স্বয়ংক্রিয়ভাবে গ্রুপ করা হয়:
- সারাংশ ছাড়া বিজ্ঞপ্তি
- চাইল্ড নোটিফিকেশন ছাড়া বিজ্ঞপ্তি
- একটি বা অল্প সংখ্যক চাইল্ড নোটিফিকেশন সহ বিজ্ঞপ্তি
অ্যান্ড্রয়েড ১৫.০, এপিআই লেভেল ৩৫
কুলডাউন
Android 15 introduces a notification cooldown feature that aims to improve the experience of notifications that arrive in quick succession. This feature reduces the appearance, sound volume and vibration intensity for repetitive notifications for up to two minutes.
যেসব গুরুত্বপূর্ণ নোটিফিকেশনের মনোযোগ আকর্ষণের জন্য অডিও এবং হ্যাপটিকসের প্রয়োজন হয়, সেগুলো কুলডাউনের আওতাভুক্ত নয়। ব্যবহারকারী সেটিংস থেকে নোটিফিকেশন কুলডাউন বন্ধ করতে পারেন।

চিত্র ৯. নোটিফিকেশন কুলডাউন সেটিংস।