-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
501 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,62 @@ | ||
# catapush-ios-swift-sdk-example | ||
Catapush sdk iOS App Example written in Swift | ||
|
||
 | ||
|
||
# Catapush iOS SDK Example | ||
|
||
This project shows how quickly Catapush iOS SDK can be integrated into your current app to receive Catapush messages and display them with a customizable bubble layout. Check out the official website: [Catapush - reliable push notification service](http://www.catapush.com). | ||
|
||
 | ||
|
||
|
||
##Usage | ||
|
||
|
||
1. git clone https://github.com/Catapush/catapush-ios-swift-sdk-example.git | ||
2. cd catapush-ios-sdk-example | ||
3. pod install | ||
4. open catapush-ios-sdk-example.xcworkspace | ||
5. Get your App Key from [Catapush Dashboard](http://www.catapush.com) and insert it together with a couple of credentials of your choice into your application delegate application:didFinishLaunchingWithOption: | ||
```ruby | ||
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | ||
Catapush.setAppKey("YOUR_APP_KEY") | ||
Catapush.startWithIdentifier("test", andPassword: "test") | ||
return true | ||
} | ||
``` | ||
6. Run the app | ||
7. Back to your [Catapush Dashboard](http://www.catapush.com) and send some important message. | ||
|
||
|
||
##Advanced | ||
Read the following documentation to enable push notification: [Catapush - Apple APNs Push Notification setup manual](http://www.catapush.com/docs-ios?__hssc=240266844.6.1447949295248&__hstc=240266844.8906dd1311d28178e3c8bdbb3bf2886a.1447404199228.1447945741012.1447949295248.9&hsCtaTracking=315ccd2b-1bb0-4020-b9f9-8b8dec529f1f|efb89882-78ec-4125-9441-59cdfd6082b2). | ||
|
||
|
||
## UI appearance | ||
Easily configure the UI appearance by changing TextFont, Background color attributes. | ||
|
||
```ruby | ||
.. | ||
|
||
``` | ||
###Example | ||
The following code shows how to change the appearance of the message bubbles and the navigation bar: | ||
```ruby | ||
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | ||
|
||
// ... | ||
|
||
|
||
|
||
|
||
|
||
} | ||
``` | ||
 | ||
|
||
|
||
##Clipboard | ||
Use Long tap to copy a text into clipboard. | ||
|
||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.