Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fetch registered device token #171

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

mrehan27
Copy link
Contributor

part of: MBL-661

Changes

  • Added method to fetch registered device token aligning with other SDKs
  • Introduced CustomerIOMessagingPush iOS class to enable iOS Flutter apps to communicate using customer_io_messaging_push push channel
  • Sample app fixes to fetch and display registered device token

Public API

Fetch registered device token:

CustomerIO.pushMessaging.getRegisteredDeviceToken() // Nullable String

@mrehan27 mrehan27 requested a review from Shahroz16 November 13, 2024 13:33
@mrehan27 mrehan27 self-assigned this Nov 13, 2024
Copy link

github-actions bot commented Nov 13, 2024

Sample app builds 📱

Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.


  • amiapp_flutter: 171.1.0 (28858414)

@@ -48,7 +49,7 @@ class _SettingsScreenState extends State<SettingsScreen> {

@override
void initState() {
widget._customerIOSDK.getDeviceToken().then((value) =>
CustomerIO.instance.pushMessaging.getRegisteredDeviceToken().then((value) =>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In later PRs, I'll refactor this to remove instance requirement here and make pushMessaging static to align with API described in PR summary.

Copy link
Collaborator

@Shahroz16 Shahroz16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@mrehan27 mrehan27 merged commit 8197413 into feature/data-pipelines-support Nov 14, 2024
6 checks passed
@mrehan27 mrehan27 deleted the rehan/mbl-661-get-token branch November 14, 2024 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants