সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
মূল বৈশিষ্ট্য
প্রমাণীকরণের জন্য অনন্য আইডি প্রদানের পাশাপাশি, ইনস্ট্যান্স আইডি অন্যান্য পরিষেবার সাথে ব্যবহারের জন্য নিরাপত্তা টোকেন তৈরি করতে পারে। অন্যান্য বৈশিষ্ট্য অন্তর্ভুক্ত:
নিরাপত্তা টোকেন তৈরি করুন
ইনস্ট্যান্স আইডি নিরাপত্তা টোকেন তৈরি করার জন্য একটি সাধারণ API প্রদান করে যা তৃতীয় পক্ষকে আপনার অ্যাপের সার্ভার সাইড পরিচালিত সংস্থান অ্যাক্সেস করার অনুমতি দেয়।
অ্যাপের সত্যতা যাচাই করুন
আপনার সার্ভারে ইন্সট্যান্স আইডি টোকেন পাস করুন এবং অ্যাপ প্যাকেজের নাম যাচাই করতে ইনস্ট্যান্স আইডি পরিষেবা ব্যবহার করুন এবং এটির একটি বৈধ স্বাক্ষর আছে কিনা তা পরীক্ষা করুন। ইন্সট্যান্স আইডি ক্লাউড সার্ভিসের মাধ্যমে টোকেন যাচাই করা পরিচিত অ্যাপ শনাক্ত করতে সাহায্য করে। খরচ এবং অপ্রয়োজনীয় রাউন্ড ট্রিপ যোগাযোগ কমাতে, এই টোকেনগুলি সংরক্ষণ করার জন্য আপনার সার্ভার কনফিগার করুন যাতে চেক শুধুমাত্র একবার প্রয়োজন হয়। নিরাপত্তা উদ্বেগের ক্ষেত্রে, আপনার অ্যাপ টোকেন বা ইনস্ট্যান্স আইডি নিজেই মুছে ফেলতে পারে এবং নতুন তৈরি করতে পারে। এছাড়াও, ইনস্ট্যান্স আইডি সার্ভার টোকেন বা ইনস্ট্যান্স আইডি রিফ্রেশ শুরু করে যদি এটি বাগ বা নিরাপত্তা সমস্যা সনাক্ত করে।
অ্যাপ ডিভাইস সক্রিয় আছে তা নিশ্চিত করুন
ইনস্ট্যান্স আইডি সার্ভার আপনাকে বলতে পারে যে ডিভাইসটিতে আপনার অ্যাপ ইনস্টল করা হয়েছে সেটি শেষবার কখন ব্যবহার করা হয়েছিল। আপনার অ্যাপ থেকে ডেটা রাখা বা আপনার ব্যবহারকারীদের সাথে পুনরায় যুক্ত হওয়ার জন্য একটি পুশ মেসেজ পাঠানোর সিদ্ধান্ত নিতে এটি ব্যবহার করুন।
অ্যাপ্লিকেশানগুলি সনাক্ত করুন এবং ট্র্যাক করুন৷
ইন্সট্যান্স আইডি বিশ্বজুড়ে সমস্ত অ্যাপের ক্ষেত্রে অনন্য, তাই আপনার ডাটাবেস এটিকে অনন্যভাবে সনাক্ত করতে এবং অ্যাপের উদাহরণগুলি ট্র্যাক করতে ব্যবহার করতে পারে। আপনার সার্ভার-সাইড কোড ইনস্ট্যান্স আইডি ক্লাউড পরিষেবার মাধ্যমে যাচাই করতে পারে যে একটি ইন্সট্যান্স আইডি আসল এবং আপনার সার্ভারের সাথে নিবন্ধিত আসল অ্যাপের মতো একই আইডি। গোপনীয়তার জন্য, আপনার অ্যাপ একটি ইন্সট্যান্স আইডি মুছে ফেলতে পারে যাতে এটি আর ডাটাবেসের কোনো ইতিহাসের সাথে যুক্ত থাকে না। পরের বার আপনার অ্যাপ ইনস্ট্যান্স আইডিতে কল করলে এটি একটি সম্পূর্ণ নতুন ইন্সট্যান্স আইডি পাবে যার সাথে আগেরটির কোনো সম্পর্ক নেই।
ইনস্ট্যান্স আইডি জীবনচক্র
যখন আপনার অ্যাপ অনলাইনে আসে তখন ইনস্ট্যান্স আইডি পরিষেবা একটি InstanceID ইস্যু করে। InstanceID স্থানীয় ডিভাইসে সংরক্ষিত ব্যক্তিগত কী এবং Instance ID পরিষেবার সাথে নিবন্ধিত সর্বজনীন কী সহ একটি পাবলিক/প্রাইভেট কী জোড়া দ্বারা সমর্থিত।
getID() পদ্ধতি ব্যবহার করে যখনই প্রয়োজন হয় তখনই আপনার অ্যাপ একটি নতুন InstanceID অনুরোধ করতে পারে। আপনার অ্যাপটি আপনার সার্ভারে সঞ্চয় করতে পারে যদি আপনার কাছে এমন একটি থাকে যা আপনার অ্যাপকে সমর্থন করে।
আপনার অ্যাপ getToken() পদ্ধতি ব্যবহার করে প্রয়োজন অনুযায়ী ইন্সট্যান্স আইডি পরিষেবা থেকে টোকেন অনুরোধ করতে পারে এবং InstanceID মতো, আপনার অ্যাপটিও আপনার নিজের সার্ভারে টোকেন সংরক্ষণ করতে পারে। আপনার অ্যাপে জারি করা সমস্ত টোকেন অ্যাপের InstanceID এর অন্তর্গত।
টোকেনগুলি অনন্য এবং সুরক্ষিত, তবে আপনার অ্যাপ বা ইন্সট্যান্স আইডি পরিষেবাকে কোনও সুরক্ষা সমস্যার ক্ষেত্রে বা ডিভাইস পুনরুদ্ধারের সময় কোনও ব্যবহারকারী আপনার অ্যাপ আনইনস্টল এবং পুনরায় ইনস্টল করার সময় টোকেনগুলি রিফ্রেশ করতে হতে পারে৷ ইনস্ট্যান্স আইডি পরিষেবা থেকে টোকেন রিফ্রেশ অনুরোধের প্রতিক্রিয়া জানাতে আপনার অ্যাপটিকে অবশ্যই একজন শ্রোতাকে প্রয়োগ করতে হবে।
ক্লায়েন্ট বাস্তবায়ন
ইনস্ট্যান্স আইডি অ্যান্ড্রয়েড এবং আইওএস উভয়েই চলে। প্রতিটির জন্য আপনাকে আপনার ক্লায়েন্ট অ্যাপে উপযুক্ত লাইব্রেরি অন্তর্ভুক্ত করতে হবে। অ্যান্ড্রয়েডের জন্য Google Play পরিষেবা প্রয়োজন। আপনি যদি টোকেন তৈরি করতে চান তাহলে আপনার Google Developers Console দ্বারা জেনারেট করা একটি প্রজেক্ট আইডির প্রয়োজন হবে।
বিস্তারিত নির্দেশাবলীর জন্য, Android এবং iOS বাস্তবায়ন নির্দেশিকা দেখুন।
[[["সহজে বোঝা যায়","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-09-04 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003cstrong\u003eWarning:\u003c/strong\u003e The Instance ID API is deprecated; for unique app installation identifiers, use the Firebase installations API instead.\u003c/p\u003e\n"],["\u003cp\u003eInstance ID offers key features like generating security tokens, verifying app authenticity, confirming app device activity, and identifying/tracking apps.\u003c/p\u003e\n"],["\u003cp\u003eInstance ID has a lifecycle involving issuing an ID, requesting fresh IDs and tokens, storing them on the server (optional), and handling token refreshes.\u003c/p\u003e\n"],["\u003cp\u003eClient implementation requires including the appropriate library and potentially a Project ID for token generation.\u003c/p\u003e\n"],["\u003cp\u003eFor detailed instructions, refer to the Android and iOS implementation guides.\u003c/p\u003e\n"]]],[],null,["# What is Instance ID?\n\n| **Warning:** The Instance ID API is deprecated. If you need to access unique app installation identifiers, use the [Firebase installations](//firebase.google.com/docs/projects/manage-installations) API. See also [Firebase installations and Instance ID](//firebase.google.com/docs/projects/manage-installations#fid-iid). The [server-side topic management API](https://developers.google.com/instance-id/reference/server#create_relationship_maps_for_app_instances) is still available.\n\nKey features\n------------\n\nIn addition to providing unique IDs for authentication, Instance ID\ncan generate security tokens for use with other services. Other features\ninclude:\n\n### Generate Security Tokens\n\n: Instance ID provides a simple API to generate security tokens that\n authorize third parties to access your app's server side managed resources.\n\n### Verify app authenticity\n\n: Pass Instance ID tokens to your server and use the Instance ID\n service to verify the app package name and check if it has a valid signature.\n Verifying tokens with the Instance ID Cloud Service helps identify known\n apps. To reduce cost and redundant round trip communications, configure your\n server to store these tokens so the check is needed only once.\n In the event of a security concern, your app can delete tokens, or\n Instance ID itself, and generate new ones. In addition, the\n Instance ID server initiates token or Instance ID refresh if it\n detects bugs or security issues.\n\n### Confirm app device is active\n\n: The Instance ID server can tell you when the device on which your app\n is installed was last used. Use this to decide whether to keep data from your\n app or send a push message to reengage with your users.\n\n### Identify and track apps\n\n: Instance ID is unique across all app instances across the world, so\n your database can use it to uniquely identify and track app instances. Your\n server-side code can verify, via the Instance ID cloud service, that an\n Instance ID is genuine and is the same ID as the original app that\n registered with your server. For privacy, your app can delete an Instance ID so\n it is no longer associated with any history in the database. The next time your\n app calls Instance ID it will get an entirely new Instance ID with no\n relationship to its previous one.\n\nInstance ID lifecycle\n---------------------\n\n1. The Instance ID service issues an `InstanceID` when your app comes online. The `InstanceID` is backed by a public/private key pair with the private key stored on the local device and the public key registered with the Instance ID service.\n2. Your app can request a fresh `InstanceID` whenever needed using the `getID()` method. Your app can store it on your server if you have one that supports your app.\n3. Your app can request tokens from the Instance ID service as needed using the `getToken()` method, and like `InstanceID`, your app can also store tokens on your own server. All tokens issued to your app belong to the app's `InstanceID`.\n4. Tokens are unique and secure, but your app or the Instance ID service may need to refresh tokens in the event of a security issue or when a user uninstalls and reinstalls your app during device restoration. Your app must implement a listener to respond to token refresh requests from the Instance ID service.\n\nClient implementation\n---------------------\n\nInstance ID runs on both Android and iOS. Each requires you to include\nthe appropriate library in your client app. Android requires\n[Google Play Services](https://developer.android.com/google/play-services/index.html). You will need a Project ID generated\nby the [](/console/help/new)[Google Developers Console](https://console.developers.google.com/project) if you intend\nto generate tokens.\n\nFor detailed instructions, see the [Android](/instance-id/guides/android-implementation)\nand [iOS](/instance-id/guides/ios-implementation) implementation guides."]]