# React Native SDK क्विक स्टार्ट

इस त्वरित और सरल उदाहरण का उपयोग करके Pushwoosh React Native SDK के साथ शुरुआत करें।

## पूर्वापेक्षाएँ

अपने ऐप में Pushwoosh React Native SDK को एकीकृत करने के लिए, आपको निम्नलिखित की आवश्यकता होगी:

<TranslatedFragment id="prerequisites-plugins" />

## उदाहरण प्रोजेक्ट डाउनलोड करें

```bash
# SDK रिपॉजिटरी को क्लोन करें और उदाहरण प्रोजेक्ट पर नेविगेट करें
git clone https://github.com/Pushwoosh/pushwoosh-react-native-plugin.git

# उदाहरण डायरेक्टरी पर नेविगेट करें
cd pushwoosh-react-native-plugin/example/demoapp/
```

## प्रोजेक्ट को कॉन्फ़िगर करें

निर्भरताएँ इंस्टॉल करें:

```bash
npm install
```

**Settings.js** खोलें और `Pushwoosh.init` कॉल को अपडेट करें:

```javascript
Pushwoosh.init({ "pw_appid" : "__YOUR_APP_ID__" });
```

`__YOUR_APP_ID__` को अपने **Pushwoosh ऐप कोड** से बदलें।

### iOS

###### 1. निर्भरताएँ इंस्टॉल करें

ios डायरेक्टरी पर नेविगेट करें और निर्भरताएँ इंस्टॉल करें:

```bash
cd ios && pod install --repo-update
```

###### 2. बंडल आइडेंटिफ़ायर सेट करें

Xcode में **ios/Runner.xcworkspace** फ़ाइल खोलें।

प्रत्येक लक्ष्य के लिए **बंडल आइडेंटिफ़ायर** सेट करें:

- `Runner`: आपके ऐप का पैकेज नाम। (उदा. com.example.pushwoosh)
- `NotificationService`: आपके ऐप का पैकेज नाम `.NotificationServiceExtension` के साथ (उदा. com.example.pushwoosh.NotificationServiceExtension)

###### 3. API टोकन सेट करें

अपने `ios/Runner/Info.plist` में `Pushwoosh_API_TOKEN` कुंजी को [Pushwoosh डिवाइस API टोकन](/hi/developer/api-reference/api-access-token/#device-api-token) पर सेट करें।


### Android

###### 1. google-services.json सेटअप करें

अपनी `google-services.json` फ़ाइल को **android/app** डायरेक्टरी में कॉपी करें।

###### 2. पैकेज का नाम सेट करें

**android/app/build.gradle** खोलें और **applicationId** को अपने ऐप के पैकेज नाम पर सेट करें। (उदा. `com.example.pushwoosh`)

###### 3. API टोकन सेट करें

अपनी **android/app/src/main/AndroidManifest.xml** फ़ाइल खोलें और `<application>` टैग के अंदर निम्नलिखित मेटाडेटा जोड़ें:

```xml title="AndroidManifest.xml"
<meta-data android:name="com.pushwoosh.apitoken" android:value="__YOUR_PUSHWOOSH_DEVICE_API_TOKEN__" />
```
`__YOUR_PUSHWOOSH_DEVICE_API_TOKEN__` को अपने [Pushwoosh डिवाइस API टोकन](/hi/developer/api-reference/api-access-token/#device-api-token) से बदलें।


## प्रोजेक्ट चलाएँ

1. प्रोजेक्ट को बिल्ड और रन करें।
2. ऐप में दो टैब होंगे: "एक्शन्स" और "सेटिंग्स"। **सेटिंग्स** टैब पर नेविगेट करें।
3. **Register for Push Notifications** बटन पर टैप करें।
4. पुश नोटिफिकेशन के लिए अनुमति दें। डिवाइस Pushwoosh के साथ पंजीकृत हो जाएगा।

## एक पुश नोटिफिकेशन भेजें

Pushwoosh कंट्रोल पैनल पर वापस जाएँ और अपने पंजीकृत डिवाइस पर [एक पुश नोटिफिकेशन भेजें](/hi/product/messaging-channels/push-notifications/send-push-notifications/one-time-push)।