Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Countly/countly-sample-ios
Sample iOS projects to demonstrate how to use Countly SDKs. For Android sample, check Android repository and documentation.
https://github.com/Countly/countly-sample-ios
Last synced: about 2 months ago
JSON representation
Sample iOS projects to demonstrate how to use Countly SDKs. For Android sample, check Android repository and documentation.
- Host: GitHub
- URL: https://github.com/Countly/countly-sample-ios
- Owner: Countly
- License: mit
- Created: 2013-12-19T13:51:09.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-08-12T09:28:38.000Z (5 months ago)
- Last Synced: 2024-08-12T10:50:22.248Z (5 months ago)
- Language: Objective-C
- Homepage: http://count.ly
- Size: 833 KB
- Stars: 32
- Watchers: 15
- Forks: 42
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/07906a0d2547493daea6b869736d09ce)](https://app.codacy.com/gh/Countly/countly-sample-ios/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
## Countly iOS SDK test application
This repository includes sample iOS, iOS-Swift, watchOS, tvOS and macOS projects to demonstrate how to use [Countly iOS SDK](https://github.com/Countly/countly-sdk-ios).
## What is Countly?
[Countly](https://count.ly) is a product analytics solution and innovation enabler that helps teams track product performance and customer journey and behavior across [mobile](https://count.ly/mobile-analytics), [web](https://count.ly/web-analytics),
and [desktop](https://count.ly/desktop-analytics) applications. [Ensuring privacy by design](https://count.ly/privacy-by-design), Countly allows you to innovate and enhance your products to provide personalized and customized customer experiences, and meet key business and revenue goals.Track, measure, and take action - all without leaving Countly.
* **Questions or feature requests?** [Join the Countly Community on Discord](https://discord.gg/countly)
* **Looking for the Countly Server?** [Countly Community Edition repository](https://github.com/Countly/countly-server)
* **Looking for other Countly SDKs?** [An overview of all Countly SDKs for mobile, web and desktop](https://support.count.ly/hc/en-us/articles/360037236571-Downloading-and-Installing-SDKs#officially-supported-sdks)## Using the test application
These test applications can be used to:
* Send a sample push notification
* Generate events with values and segmentations with count, sum, duration
* Send a sample user profile
* Send a custom user property
* Send a view (automatic or manual)
* Generate a crash (e.g out of bounds, null pointer, kill, etc or a custom crash log)![iOS-sample-app](https://count.ly/github/countly-ios-sample-app.png)
Countly iOS SDK is added as a git submodule. Hence, you should do:
```shell
git submodule update --init
```after you cloned this repository to get the latest Countly iOS SDK.
## Steps to deploy and send a sample push notification
1. Download demo [here](https://github.com/Countly/countly-sample-ios).
* This repository includes samples for each platform. For iOS, use `ios`
* SDK is added to project as a `git submodule`. You just need to fetch it.2. Change application configuration as follows:
* Change Bundle ID CodeSigning configurations according to your developer account configurations.
* Change Countly server URL and AppID: `config.appKey = @"YOUR_APP_KEY"; config.host = @"https://YOUR_COUNTLY_SERVER";`
* [Objective C only] Enable push notifications: `config.features = @[CLYPushNotifications];`
* [Swift only] Enable push notifications: `config.features = @[CLYFeature.pushNotifications];`3. Create your push notification certificate and upload your Countly server.
4. Run your application. From the list on the screen, choose "Ask for Notification Permission", and confirm.
5. Push token will automatically be sent to Countly server. From this point forward, you will be able to send a push notification to that device.
6. You can also send events, sample crashes, sample user profiles, and many more.
## Security
Security is very important to us. If you discover any issue regarding security, please disclose the information responsibly by sending an email to [email protected] and **not by creating a GitHub issue**.## Badges
If you like Countly, [why not use one of our badges](https://count.ly/brand-assets) and give a link back to us so others know about this wonderful platform?## How can I help you with your efforts?
Glad you asked! For community support, feature requests, and engaging with the Countly Community, please join us at [our Discord Server](https://discord.gg/countly). We're excited to have you there!Also, we are on [Twitter](https://twitter.com/gocountly) and [LinkedIn](https://www.linkedin.com/company/countly) if you would like to keep up with Countly related updates.