File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
OneSignalExample/Assets/OneSignal Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,13 @@ To resume receiving of push notifications (driving the native permission prompt
119
119
120
120
pushSubscription.OptIn();
121
121
122
+ To observe changes to the push subscription you can add a custom method to the event:
123
+
124
+ OneSignal.User.PushSubscription.Changed += yourOnPushSubscriptionChangedMethod;
125
+
126
+ public void yourOnPushSubscriptionChangedMethod(object sender, PushSubscriptionChangedEventArgs e) {
127
+ ...
128
+ }
122
129
123
130
** Email/SMS Subscriptions**
124
131
Email and/or SMS subscriptions can be added or removed via:
Original file line number Diff line number Diff line change @@ -119,6 +119,13 @@ To resume receiving of push notifications (driving the native permission prompt
119
119
120
120
pushSubscription.OptIn();
121
121
122
+ To observe changes to the push subscription you can add a custom method to the event:
123
+
124
+ OneSignal.User.PushSubscription.Changed += yourOnPushSubscriptionChangedMethod;
125
+
126
+ public void yourOnPushSubscriptionChangedMethod(object sender, PushSubscriptionChangedEventArgs e) {
127
+ ...
128
+ }
122
129
123
130
** Email/SMS Subscriptions**
124
131
Email and/or SMS subscriptions can be added or removed via:
You can’t perform that action at this time.
0 commit comments