iOS কোড উদাহরণ
iOS-এর জন্য Pushwoosh স্যাম্পলগুলির সাহায্যে, আপনি আপনার প্রোজেক্টে SDK ইন্টিগ্রেট না করেই Pushwoosh-এর কার্যকারিতা অন্বেষণ করতে পারেন, অথবা আমাদের উদাহরণ প্রোজেক্টগুলিতে Pushwoosh SDK কীভাবে প্রয়োগ করা হয়েছে তা পর্যালোচনা করতে পারেন।
পূর্বশর্ত
Anchor link toউদাহরণগুলি ব্যবহার করার আগে, নিশ্চিত করুন যে আপনার নিম্নলিখিতগুলি রয়েছে:
Pushwoosh নমুনা অ্যাপ্লিকেশন
Anchor link toএই প্রোজেক্টটি একটি বেসিক iOS অ্যাপ্লিকেশন যেখানে Pushwoosh SDK ইন্টিগ্রেট করা আছে, যা নিম্নলিখিত মূল বৈশিষ্ট্যগুলি প্রদর্শন করে:
- পুশ নোটিফিকেশন গ্রহণ করা।
- পুশ নোটিফিকেশন ডেলিভারি ট্র্যাক করা।
- ইউজার ট্যাগ পরিচালনা করা।
- ইভেন্ট পাঠানো
- ইউজার রেজিস্ট্রেশন
নমুনা অ্যাপটি শেখার টুল হিসাবে বা আপনার ডেভেলপমেন্টের ভিত্তি হিসাবে ব্যবহার করুন।
১. নমুনা অ্যাপটি ডাউনলোড করুন
Anchor link toরিপোজিটরিটি ক্লোন করুন:
git clone https://github.com/Pushwoosh/pushwoosh-ios-sample.git২. প্রোজেক্টটি কনফিগার করুন
Anchor link to-
Open the project in Xcode.
-
Add
https://github.com/Pushwoosh/Pushwoosh-XCFrameworkas Swift Package Dependency. -
Set the bundle identifier for the main target (PushwooshSampleApp) to match your Pushwoosh project (e.g.,
com.pushwoosh.PushwooshSampleApp). -
Use the same bundle identifier for the NotificationService target, appending
.NotificationService(e.g.,com.pushwoosh.PushwooshSampleApp.NotificationService). -
In
Info.plist, set the:Pushwoosh_APPIDkey to the Pushwoosh Application CodePushwoosh_API_TOKENkey to the Pushwoosh Device API Token
Important: Be sure to give the token access to the right app in your Pushwoosh Control Panel. Learn more
৩. প্রোজেক্টটি চালান
Anchor link to১. প্রোজেক্টটি বিল্ড এবং রান করুন। ২. অ্যাপের সেটিংস ট্যাবে যান। ৩. Register for Pushes বোতামে ট্যাপ করুন। ৪. পুশ নোটিফিকেশনের জন্য অনুমতি দিন। ডিভাইসটি Pushwoosh-এর সাথে রেজিস্টার হয়ে যাবে।
Pushwoosh iOS উদাহরণ
Anchor link toবিভিন্ন SDK বৈশিষ্ট্য কভার করে সম্পূর্ণ ডকুমেন্টেড কোড উদাহরণের জন্য আমাদের pushwoosh-quickstart-ios রিপোজিটরিটি অন্বেষণ করুন। এই নমুনাগুলি আপনার নিজের প্রোজেক্টের জন্য রেফারেন্স বা স্টার্টিং পয়েন্ট হিসাবে ব্যবহারের জন্য প্রস্তুত।