ফোনে অনুমতি দিন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
যখন ব্যবহারকারীরা আপনার অ্যাপ খোলার চেষ্টা করে এবং প্রয়োজনীয় অনুমতির অভাব থাকে, তখন তাদের অনুমতি দিতে হবে তা বলার জন্য বার্তা টেমপ্লেট ব্যবহার করুন।
অ্যান্ড্রয়েড অটোতে, আপনি অনুমতির অনুরোধে বর্ণিত পদ্ধতিটি ব্যবহার করলে, ব্যবহারকারী যতক্ষণ না গাড়ি চালাচ্ছেন ততক্ষণ পর্যন্ত অনুমতি ডায়ালগ ফোনে খুলবে (প্রযুক্তিগত বিবরণের জন্য, ব্যবহারকারীর ইনপুট হ্যান্ডেল করুন)। এই ক্ষেত্রে, ফোনে ব্যবহারকারীকে নির্দেশ করে একটি টোস্ট প্রদান করুন। তারপরে, অনুমতি মঞ্জুর করার পরে, গাড়ির স্ক্রীনটি রিফ্রেশ করুন যাতে ব্যবহারকারী বার্তা টেমপ্লেটে ফিরে না আসে।
প্রথমত, অ্যাপটি গাড়ির স্ক্রিনে অনুমতির জন্য অনুরোধ করে...
...এবং তারপর ব্যবহারকারী ড্রাইভিং না করার সময় তাদের ফোনে অনুমতি নিশ্চিত করে৷
নমুনা প্রবাহ
ব্যবহারকারীর কর্ম | যেখানে কর্ম সঞ্চালিত হয় | কর্মের পর ধাপ গণনা |
---|
ব্যবহারকারী অ্যাপটি খোলে। | আপনার ল্যান্ডিং টেমপ্লেটে (দেখানো হয়নি) | 1 |
ব্যবহারকারী অ্যাপের অনুমতি দেওয়ার বিকল্পটি নির্বাচন করে, তারপর নিশ্চিতকরণ টোস্ট পর্যালোচনা করে। | প্রথমে, ব্যবহারকারীদের তাদের প্রয়োজনীয় অনুমতি দেওয়ার সুযোগ দেওয়ার জন্য দুটি বোতাম সহ বার্তা টেমপ্লেটটি ব্যবহার করুন: 
তারপরে, ব্যবহারকারীকে তাদের ফোনে নির্দেশ করতে একই বার্তা টেমপ্লেটে একটি টোস্ট প্রদর্শন করুন: 
| 2 |
ব্যবহারকারী তাদের ফোনে অনুমতি দেয়। | কোনও টেমপ্লেট নেই, কারণ এই ক্রিয়াটি ব্যবহারকারীর ফোনে ঘটে: 
| 2 (গাড়িতে অ্যাপের সাথে কোনো ইন্টারঅ্যাকশন নেই) |
ব্যবহারকারীর অনুমতি দেওয়ার পরে, অ্যাপটি ল্যান্ডিং টেমপ্লেটে ফিরে আসে। | অবতরণ টেমপ্লেট; এই ক্ষেত্রে, স্থান তালিকা (নেভিগেশন) টেমপ্লেট:  | 1 (পদক্ষেপ গণনা পুনরায় সেট) |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eWhen users lack necessary permissions, use the Message template to inform them and provide an option to grant permissions.\u003c/p\u003e\n"],["\u003cp\u003eIn Android Auto, the permission dialog opens on the user's phone when they are not driving, requiring a toast to direct them.\u003c/p\u003e\n"],["\u003cp\u003eAfter permissions are granted, refresh the car screen to transition from the Message template to the intended content, such as the landing template.\u003c/p\u003e\n"],["\u003cp\u003eThe app's flow involves requesting permissions on the car screen, user confirmation on their phone, and returning to the app's landing template.\u003c/p\u003e\n"]]],[],null,["# Grant permissions on phone\n\n\u003cbr /\u003e\n\nWhen users try to open your app and lack necessary permissions, use the Message\ntemplate to tell them they need to grant permissions.\n\nIn Android Auto, if you have used the method described in\n[Request Permissions](https://developer.android.com/training/cars/apps#permissions),\nthe permissions dialog will open on the phone, as long as the user is not\ndriving (for technical details, visit\n[Handle user input](https://developer.android.com/training/cars/apps#handle-user-input)).\nIn this case, provide a toast directing the user to the phone. Then, after\npermissions are granted, refresh the car screen so the user doesn't return to\nthe Message template. \nFirst, the app requests permissions on the car screen... \n...and then the user confirms permissions on their phone when not\ndriving.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nSample flow\n-----------\n\n| User action | Where action is performed | Step count after action |\n|--------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|\n| The user opens the app. | On your landing template (not shown) | 1 |\n| The user selects the option to grant app permissions, then reviews the confirmation toast. | First, use the Message template with two buttons to allow users the chance to grant the permissions that they need: Then, display a toast on that same Message template to direct the user to their phone: | 2 |\n| The user grants permission on their phone. | No template, as this action occurs on the user's phone: | 2 (no interaction with app in car) |\n| After the user grants permissions, the app returns to the landing template. | Landing template; in this case, the Place List (navigation) template: | 1 (step count resets) |"]]