OneSignal / OneSignal-iOS-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your native iOS app with OneSignal. https://onesignal.com
Other
496 stars 263 forks source link

Add `OneSignal-Subscription-Id` to Create User request #1372

Closed nan-li closed 8 months ago

nan-li commented 9 months ago

Description

One Line Summary

Add the OneSignal-Subscription-Id header to Create User requests.

Details

Motivation

Scope

Testing

Unit testing

None, we can add in future to make sure headers are included.

Manual testing

  1. Building and running on iPhone 13 with iOS 17.2.
  2. Change SDK version and call login while already logged into an identified user (this will send a Create User request)
  3. With debug on, confirm the subscription ID is added to the request
  4. Checked dashboard that only this subscription is updated

Affected code checklist

Checklist

Overview

Testing

Final pass


This change is Reviewable

nan-li commented 8 months ago

Just tested today with server changes completed that last_active is now only updating the subscription making the request, instead of all subscriptions for the user.