Skip to content

Commit 4d7fef7

Browse files
committed
2.5.0 Release commit - Native SDK updates
* Updated to latest OneSignal Native SDKs - iOS 2.6.0 and Android 3.7.1 * Updated To Google Jar resolver 1.2.59
1 parent b311853 commit 4d7fef7

File tree

9 files changed

+50
-26
lines changed

9 files changed

+50
-26
lines changed

OneSignalExample/Assets/OneSignal/Example/GameControllerExample.cs

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ private void OneSignal_subscriptionObserver(OSSubscriptionStateChanges stateChan
6767
}
6868

6969
private void OneSignal_permissionObserver(OSPermissionStateChanges stateChanges) {
70+
Debug.Log("stateChanges.from.status: " + stateChanges.from.status);
7071
Debug.Log("stateChanges.to.status: " + stateChanges.to.status);
7172
}
7273

Binary file not shown.

OneSignalExample/Assets/OneSignal/Platforms/iOS/OneSignal.h

+27-2
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,34 @@ typedef NS_ENUM(NSUInteger, OSNotificationDisplayType) {
8787
/* Unique Message Identifier */
8888
@property(readonly)NSString* notificationID;
8989

90-
/* Provide this key with a value of 1 to indicate that new content is available.
91-
Including this key and value means that when your app is launched in the background or resumed application:didReceiveRemoteNotification:fetchCompletionHandler: is called. */
90+
/* Unique Template Identifier */
91+
@property(readonly)NSString* templateID;
92+
93+
/* Name of Template */
94+
@property(readonly)NSString* templateName;
95+
96+
/* True when the key content-available is set to 1 in the aps payload.
97+
content-available is used to wake your app when the payload is received.
98+
See Apple's documenation for more details.
99+
https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623013-application
100+
*/
92101
@property(readonly)BOOL contentAvailable;
93102

103+
/* True when the key mutable-content is set to 1 in the aps payload.
104+
mutable-content is used to wake your Notification Service Extension to modify a notification.
105+
See Apple's documenation for more details.
106+
https://developer.apple.com/documentation/usernotifications/unnotificationserviceextension
107+
*/
108+
@property(readonly)BOOL mutableContent;
109+
110+
/*
111+
Notification category key previously registered to display with.
112+
This overrides OneSignal's actionButtons.
113+
See Apple's documenation for more details.
114+
https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/SupportingNotificationsinYourApp.html#//apple_ref/doc/uid/TP40008194-CH4-SW26
115+
*/
116+
@property(readonly)NSString* category;
117+
94118
/* The badge assigned to the application icon */
95119
@property(readonly)NSUInteger badge;
96120

@@ -121,6 +145,7 @@ typedef NS_ENUM(NSUInteger, OSNotificationDisplayType) {
121145

122146
@end
123147

148+
// ## OneSignal OSNotification
124149
@interface OSNotification : NSObject
125150

126151
/* Notification Payload */
-69.7 KB
Binary file not shown.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.1
1+
2.5.0
Binary file not shown.

OneSignalExample/Assets/PlayServicesResolver/Editor/Google.VersionHandler.dll.meta

+20-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
m_EditorVersion: 2017.1.1f1
1+
m_EditorVersion: 2017.2.0f3

OneSignalSDK.unitypackage

39.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)