We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cbf0e6c + 3e64983 commit 4984928Copy full SHA for 4984928
iOS_SDK/OneSignalSDK/OneSignalUser/Source/OSSubscriptionModel.swift
@@ -218,6 +218,11 @@ class OSSubscriptionModel: OSModel {
218
// Set test_type if subscription model is PUSH
219
if type == .push {
220
let releaseMode: OSUIApplicationReleaseMode = OneSignalMobileProvision.releaseMode()
221
+ #if targetEnvironment(simulator)
222
+ if (releaseMode == OSUIApplicationReleaseMode.UIApplicationReleaseUnknown) {
223
+ self.testType = OSUIApplicationReleaseMode.UIApplicationReleaseDev.rawValue
224
+ }
225
+ #endif
226
// Workaround to unsure how to extract the Int value in 1 step...
227
if releaseMode == .UIApplicationReleaseDev {
228
self.testType = OSUIApplicationReleaseMode.UIApplicationReleaseDev.rawValue
0 commit comments