|
1 | 1 | /** |
2 | 2 | * Modified MIT License |
3 | 3 | * |
4 | | - * Copyright 2016 OneSignal |
| 4 | + * Copyright 2017 OneSignal |
5 | 5 | * |
6 | 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
7 | 7 | * of this software and associated documentation files (the "Software"), to deal |
|
28 | 28 | /*** |
29 | 29 | |
30 | 30 | ### Setting up the SDK ### |
31 | | - Follow the documentation from https://documentation.onesignal.com/docs/installing-the-onesignal-ios-sdk to setup OneSignal in your app. |
| 31 | + Follow the documentation from https://documentation.onesignal.com/docs/ios-sdk-setupto setup OneSignal in your app. |
32 | 32 | |
33 | 33 | ### API Reference ### |
34 | 34 | Follow the documentation from https://documentation.onesignal.com/docs/ios-sdk-api for a detailed explanation of the API. |
35 | 35 | |
36 | | - ### FAQ & Troubleshoot ### |
37 | | - FAQ: https://documentation.onesignal.com/docs/frequently-asked-questions-1 |
38 | | - Troubleshoot: https://documentation.onesignal.com/docs/common-problems-1 |
| 36 | + ### Troubleshoot ### |
| 37 | + Follow the documentation from https://documentation.onesignal.com/docs/troubleshooting-ios to fix common problems. |
39 | 38 | |
40 | | - For help on how to upgrade your code from 1.* SDK to 2.*: https://documentation.onesignal.com/docs/upgrading-to-sdk-20 |
| 39 | + For help on how to upgrade your code from 1.* SDK to 2.*: https://documentation.onesignal.com/docs/upgrading-to-ios-sdk-20 |
41 | 40 | |
42 | 41 | ### More ### |
43 | | - iOS Configuration: https://documentation.onesignal.com/docs/generating-an-ios-push-certificate |
44 | | - REST API: https://documentation.onesignal.com/docs/server-api-overview |
45 | | - Create Notification API: https://documentation.onesignal.com/docs/notifications-create-notification |
| 42 | + iOS Push Cert: https://documentation.onesignal.com/docs/generating-an-ios-push-certificate |
46 | 43 | |
47 | 44 | ***/ |
48 | 45 |
|
@@ -278,4 +275,13 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) { |
278 | 275 | // Only used for wrapping SDKs, such as Unity, Cordova, Xamarin, etc. |
279 | 276 | + (void)setMSDKType:(NSString*)type; |
280 | 277 |
|
| 278 | + |
| 279 | +#ifdef XC8_AVAILABLE |
| 280 | +// iOS 10 only |
| 281 | +// Process from Notification Service Extension. |
| 282 | +// Used for iOS Media Attachemtns and Action Buttons. |
| 283 | ++ (UNMutableNotificationContent*)didReceiveNotificatioExtensionnRequest:(UNNotificationRequest *)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent; |
| 284 | ++ (UNMutableNotificationContent*)serviceExtensionTimeWillExpireRequest:(UNNotificationRequest *)request withMutableNotificationContent:(UNMutableNotificationContent*)replacementContent; |
| 285 | +#endif |
| 286 | + |
281 | 287 | @end |
0 commit comments