com.onesignal.unity.ios 5.0.0-beta.3 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Editor/BuildPostProcessor.cs +1 -1
- package/Editor/OneSignaliOSDependencies.xml +1 -1
- package/Editor/PBXProjectExtensions.cs +1 -1
- package/LICENSE.md +1 -1
- package/Runtime/AssemblyInfo.cs +1 -1
- package/Runtime/OneSignaliOS.cs +1 -5
- package/Runtime/OneSignaliOSInit.cs +1 -1
- package/Runtime/Plugins/iOS/OneSignalBridgeUtil.h +1 -1
- package/Runtime/Plugins/iOS/OneSignalBridgeUtil.mm +1 -1
- package/Runtime/Plugins/iOS/OneSignalUnityBridge.mm +1 -5
- package/Runtime/Plugins/iOS/OneSignalUnityBridgeDebug.mm +1 -1
- package/Runtime/Plugins/iOS/OneSignalUnityBridgeInAppMessages.mm +1 -1
- package/Runtime/Plugins/iOS/OneSignalUnityBridgeLiveActivities.mm +1 -1
- package/Runtime/Plugins/iOS/OneSignalUnityBridgeLocation.mm +1 -1
- package/Runtime/Plugins/iOS/OneSignalUnityBridgeNotifications.mm +1 -1
- package/Runtime/Plugins/iOS/OneSignalUnityBridgeSession.mm +1 -1
- package/Runtime/Plugins/iOS/OneSignalUnityBridgeUser.mm +4 -7
- package/Runtime/Plugins/iOS/UIApplication+OneSignalUnity.h +1 -1
- package/Runtime/Plugins/iOS/UIApplication+OneSignalUnity.mm +2 -2
- package/Runtime/Utilities/WaitingProxy.cs +1 -1
- package/Runtime/iOSDebugManager.cs +1 -1
- package/Runtime/iOSDisplayableNotification.cs +1 -1
- package/Runtime/iOSInAppMessagesManager.cs +1 -1
- package/Runtime/iOSLiveActivitiesManager.cs +1 -1
- package/Runtime/iOSLocationManager.cs +2 -3
- package/Runtime/iOSNotificationsManager.cs +1 -1
- package/Runtime/iOSPushSubscription.cs +1 -1
- package/Runtime/iOSSessionManager.cs +1 -1
- package/Runtime/iOSUserManager.cs +1 -1
- package/package.json +2 -2
package/LICENSE.md
CHANGED
package/Runtime/AssemblyInfo.cs
CHANGED
package/Runtime/OneSignaliOS.cs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Modified MIT License
|
|
3
3
|
*
|
|
4
|
-
* Copyright
|
|
4
|
+
* Copyright 2023 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
|
|
@@ -50,7 +50,6 @@ namespace OneSignalSDK.iOS {
|
|
|
50
50
|
public sealed partial class OneSignaliOS : OneSignalPlatform {
|
|
51
51
|
[DllImport("__Internal")] private static extern void _setConsentGiven(bool consent);
|
|
52
52
|
[DllImport("__Internal")] private static extern void _setConsentRequired(bool required);
|
|
53
|
-
[DllImport("__Internal")] private static extern void _setLaunchURLsInApp(bool launchInApp);
|
|
54
53
|
[DllImport("__Internal")] private static extern void _initialize(string appId);
|
|
55
54
|
[DllImport("__Internal")] private static extern void _login(string externalId);
|
|
56
55
|
[DllImport("__Internal")] private static extern void _loginWithJwtBearerToken(string externalId, string jwtBearerToken);
|
|
@@ -113,9 +112,6 @@ namespace OneSignalSDK.iOS {
|
|
|
113
112
|
set => _setConsentRequired(value);
|
|
114
113
|
}
|
|
115
114
|
|
|
116
|
-
public override void SetLaunchURLsInApp(bool launchInApp)
|
|
117
|
-
=> _setLaunchURLsInApp(launchInApp);
|
|
118
|
-
|
|
119
115
|
public override void Initialize(string appId) {
|
|
120
116
|
_initialize(appId);
|
|
121
117
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Modified MIT License
|
|
3
3
|
*
|
|
4
|
-
* Copyright
|
|
4
|
+
* Copyright 2023 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
|
|
@@ -64,8 +64,4 @@ extern "C" {
|
|
|
64
64
|
void _setConsentRequired(bool required) {
|
|
65
65
|
[OneSignal setConsentRequired:required];
|
|
66
66
|
}
|
|
67
|
-
|
|
68
|
-
void _setLaunchURLsInApp(bool launchInApp) {
|
|
69
|
-
[OneSignal setLaunchURLsInApp:launchInApp];
|
|
70
|
-
}
|
|
71
67
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Modified MIT License
|
|
3
3
|
*
|
|
4
|
-
* Copyright
|
|
4
|
+
* Copyright 2023 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
|
|
@@ -80,6 +80,7 @@ typedef void (*StateListenerDelegate)(const char* current, const char* previous)
|
|
|
80
80
|
|
|
81
81
|
/*
|
|
82
82
|
* Bridge methods
|
|
83
|
+
* We use strdup because Unity attempts to free the memory after we return the value
|
|
83
84
|
*/
|
|
84
85
|
|
|
85
86
|
extern "C" {
|
|
@@ -87,10 +88,6 @@ extern "C" {
|
|
|
87
88
|
[OneSignal.User setLanguage:TO_NSSTRING(languageCode)];
|
|
88
89
|
}
|
|
89
90
|
|
|
90
|
-
/*id<OSPushSubscription> _userGetPushSubscription() {
|
|
91
|
-
return OneSignal.User.pushSubscription;
|
|
92
|
-
}*/
|
|
93
|
-
|
|
94
91
|
void _userAddAlias(const char* aliasLabel, const char* aliasId) {
|
|
95
92
|
[OneSignal.User addAliasWithLabel:TO_NSSTRING(aliasLabel)
|
|
96
93
|
id:TO_NSSTRING(aliasId)];
|
|
@@ -160,11 +157,11 @@ extern "C" {
|
|
|
160
157
|
}
|
|
161
158
|
|
|
162
159
|
const char* _pushSubscriptionGetId() {
|
|
163
|
-
return [OneSignal.User.pushSubscription.id UTF8String];
|
|
160
|
+
return strdup([OneSignal.User.pushSubscription.id UTF8String]);
|
|
164
161
|
}
|
|
165
162
|
|
|
166
163
|
const char* _pushSubscriptionGetToken() {
|
|
167
|
-
return [OneSignal.User.pushSubscription.token UTF8String];
|
|
164
|
+
return strdup([OneSignal.User.pushSubscription.token UTF8String]);
|
|
168
165
|
}
|
|
169
166
|
|
|
170
167
|
bool _pushSubscriptionGetOptedIn() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Modified MIT License
|
|
3
3
|
*
|
|
4
|
-
* Copyright
|
|
4
|
+
* Copyright 2023 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
|
|
@@ -96,7 +96,7 @@ static bool swizzled = false;
|
|
|
96
96
|
|
|
97
97
|
- (BOOL)oneSignalApplication:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
|
98
98
|
[OneSignalWrapper setSdkType:@"unity"];
|
|
99
|
-
[OneSignalWrapper setSdkVersion:@"
|
|
99
|
+
[OneSignalWrapper setSdkVersion:@"050001"];
|
|
100
100
|
[OneSignal setLaunchOptions:launchOptions];
|
|
101
101
|
|
|
102
102
|
if ([self respondsToSelector:@selector(oneSignalApplication:didFinishLaunchingWithOptions:)])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Modified MIT License
|
|
3
3
|
*
|
|
4
|
-
* Copyright
|
|
4
|
+
* Copyright 2023 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
|
|
@@ -41,9 +41,8 @@ namespace OneSignalSDK.iOS.Location {
|
|
|
41
41
|
set => _locationSetIsShared(value);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
public
|
|
44
|
+
public void RequestPermission() {
|
|
45
45
|
_locationRequestPermission();
|
|
46
|
-
return Task.FromResult(true);
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "com.onesignal.unity.ios",
|
|
3
3
|
"displayName": "OneSignal Unity SDK - iOS",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.1",
|
|
5
5
|
"unity": "2018.4",
|
|
6
6
|
"description": "OneSignal is the market leader in customer engagement, powering mobile push, web push, email, and in-app messages.",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"com.onesignal.unity.core": "5.0.
|
|
8
|
+
"com.onesignal.unity.core": "5.0.1"
|
|
9
9
|
},
|
|
10
10
|
"keywords": [
|
|
11
11
|
"push-notifications",
|