Updating main from staging#164
Merged
Merged
Conversation
Expose setPushIdentifier on Android and iOS so Flutter apps can register a push notification token directly through the Dart API without dropping down to native code. - Dart: MobileCore.setPushIdentifier(String? token) - Android: handleSetPushIdentifier follows handleSetAdvertisingIdentifier pattern - iOS: converts NSString token to NSData via NSUTF8StringEncoding before calling [AEPMobileCore setPushIdentifier:] - Tests: added group covering token and null cases - Docs: CHANGELOG 5.0.2 entry and README API section
Add a second method that accepts Uint8List? and passes the bytes directly to [AEPMobileCore setPushIdentifier:] as NSData on iOS, without any UTF-8 or hex encoding — which is the correct behaviour for raw APNs device tokens. On Android the method is a no-op with a debug log; developers should use setPushIdentifier(String?) with the FCM token there. - Dart: import dart:typed_data, add setPushIdentifierWithData(Uint8List?) - iOS: handleSetPushIdentifierWithData uses FlutterStandardTypedData.data - Android: no-op handler with debug log - Tests: 25/25 passing
…ersion - Remove setPushIdentifierWithData; a single setPushIdentifier(String?) now handles both Android (FCM token) and iOS (APNs hex token) - Fix iOS bridge: convert hex string to NSData internally instead of UTF-8 encoding, which was registering wrong bytes with the AEP SDK - Fix corrupted .gitignore line that merged two entries into one - Update CHANGELOG, README and tests accordingly
…f clearing identifier
feat(core): add MobileCore.setPushIdentifier API
[MOB-24978] refresh InApp bug fix
release versions update
Mac os fix
Dev -> Staging [5.1.0]
Harjot1508
approved these changes
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: