/pushwoosh-ios-sample

Pushwoosh iOS Sample

Primary LanguageSwiftMIT LicenseMIT

iOS SAMPLE 🍏

To launch and utilize a sample with Pushwoosh iOS SDK integration, clone or download the repository archive.

SwiftPM compatible

Alt text Alt text

1. In this project, we use the Pushwoosh iOS SDK as a submodule. To fetch the dependency, follow these steps:

Adding Pushwoosh iOS SDK as a source code project

1.1 Navigate to the sample folder via the terminal and enter the following command:

git submodule update --init --recursive

1.2 You can check the status of the submodules to ensure they have been successfully fetched:

git submodule status

1.3 If you have already cloned the repository and want to update the submodules to the latest commits, you can use:

git submodule update --recursive --remote

Adding Pushwoosh iOS SDK via Swift Package Manager

If you don't want to use a submodule, you can add the Pushwoosh iOS SDK as a dependency via Swift Package Manager.

1.1 Add Dependencies via Swift Package Manager. Use this link https://github.com/Pushwoosh/Pushwoosh-XCFramework

Alt text

2. Replace the Bundle Identifier in the main target and in the Notification Service Extension with yours.

Alt text

Alt text

3. Add your Group Name to App Groups (Main Target and Notification Service Extension Target), tied to your Bundle ID.

Alt text

4. Add the group name to the info.plist of the main target and Notification Service Extension.

...
<key>PW_APP_GROUPS_NAME</key>
<string>group.com.example.demo_group</string>
...

5. In the info.plist of the main project, add your Pushwoosh_APPID.

...
<key>Pushwoosh_APPID</key>
<string>XXXXX-XXXXX</string>
...

The guide for SDK integration is available on Pushwoosh website.

Documentation: https://github.com/Pushwoosh/pushwoosh-ios-sdk/tree/master/Documentation

Pushwoosh team http://www.pushwoosh.com