diff --git a/Examples/ObjectiveCExample/OneSignalDemo/Base.lproj/Main.storyboard b/Examples/ObjectiveCExample/OneSignalDemo/Base.lproj/Main.storyboard index 28169778a..65b3a4789 100644 --- a/Examples/ObjectiveCExample/OneSignalDemo/Base.lproj/Main.storyboard +++ b/Examples/ObjectiveCExample/OneSignalDemo/Base.lproj/Main.storyboard @@ -1,9 +1,9 @@ - + - + @@ -19,7 +19,7 @@ - - - - - - - - + @@ -256,7 +257,6 @@ - @@ -278,7 +278,7 @@ - - + diff --git a/Examples/ObjectiveCExample/OneSignalDemo/ViewController.m b/Examples/ObjectiveCExample/OneSignalDemo/ViewController.m index 4f1e53b87..89e910d60 100644 --- a/Examples/ObjectiveCExample/OneSignalDemo/ViewController.m +++ b/Examples/ObjectiveCExample/OneSignalDemo/ViewController.m @@ -51,6 +51,7 @@ -(void)viewDidLoad { self.subscriptionStatusSwitch.userInteractionEnabled = true; self.registerButton.backgroundColor = [UIColor greenColor]; self.registerButton.userInteractionEnabled = false; + self.subscriptionStatusLabel.text = @"OneSignal Push Enabled"; } [OneSignal addPermissionObserver:self]; @@ -237,9 +238,9 @@ - (IBAction)registerButtonPressed:(UIButton *)sender { - (IBAction)subscriptionSwitchValueChanged:(UISwitch *)sender { if (sender.isOn) { - [OneSignal setSubscription:true]; + [OneSignal disablePush:false]; } else { - [OneSignal setSubscription:false]; + [OneSignal disablePush:true]; } } @@ -300,11 +301,11 @@ -(void)onOSPermissionChanged:(OSPermissionStateChanges *)stateChanges { -(void)onOSSubscriptionChanged:(OSSubscriptionStateChanges *)stateChanges { if (stateChanges.from.subscribed && !stateChanges.to.subscribed) { self.subscriptionStatusSwitch.on = false; - self.subscriptionStatusLabel.text = @"Set Subscription OFF"; + self.subscriptionStatusLabel.text = @"OneSignal Push Disabled"; self.registerButton.backgroundColor = [UIColor redColor]; } else if (!stateChanges.from.subscribed && stateChanges.to.subscribed) { self.subscriptionStatusSwitch.on = true; - self.subscriptionStatusLabel.text = @"Set Subscription ON"; + self.subscriptionStatusLabel.text = @"OneSignal Push Enabled"; self.registerButton.backgroundColor = [UIColor greenColor]; } } diff --git a/Examples/SwiftExample/OneSignalDemo/Base.lproj/Main.storyboard b/Examples/SwiftExample/OneSignalDemo/Base.lproj/Main.storyboard index 95d3f2435..bcbceef07 100644 --- a/Examples/SwiftExample/OneSignalDemo/Base.lproj/Main.storyboard +++ b/Examples/SwiftExample/OneSignalDemo/Base.lproj/Main.storyboard @@ -168,7 +168,7 @@ -